Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

isahers1
Copy link
Contributor

No description provided.

evaluationResults: Array<ExperimentResultRow>
) => EvaluationResult | EvaluationResults;

type AsyncSummaryEvaluator = (
Copy link
Collaborator

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?

Copy link
Contributor Author

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>,
(
Copy link
Collaborator

@jacoblee93 jacoblee93 Dec 21, 2024

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?

Copy link
Contributor Author

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?

Copy link
Collaborator

@jacoblee93 jacoblee93 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants