-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add inline evaluation results for summary evaluators #1348
base: main
Are you sure you want to change the base?
Conversation
evaluationResults: Array<ExperimentResultRow> | ||
) => EvaluationResult | EvaluationResults; | ||
|
||
type AsyncSummaryEvaluator = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this different from SummaryEvaluatorT
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what we wrap the evaluator to internally, I do not believe it is user facing.
@@ -133,13 +145,17 @@ interface _ExperimentManagerArgs { | |||
runs?: AsyncGenerator<Run>; | |||
evaluationResults?: AsyncGenerator<EvaluationResults>; | |||
summaryResults?: AsyncGenerator< | |||
(runsArray: Run[]) => AsyncGenerator<EvaluationResults, any, unknown>, | |||
( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a weird typing - isn't it breaking since you now have to specify evaluationResults
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah - can I just make evaluationResults an optional param? Or is there a better solution to make this non breaking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is allowing people to pass results into an evaluator then?
I don't quite understand the use case
No description provided.