-
Notifications
You must be signed in to change notification settings - Fork 745
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
feat: make general purpose metrics more general #1666
Conversation
|
MetricType.SINGLE_TURN: { | ||
"user_input", | ||
"response", | ||
"user_input:optional", | ||
"response:optional", | ||
"retrieved_contexts:optional", | ||
"reference:optional", | ||
"reference_contexts:optional", | ||
}, |
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.
you can change it here - user control
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.
Reflect changes in docs.
) | ||
reference: t.Optional[str] = Field( | ||
description="The reference answer for evaluation", default=None | ||
) | ||
criteria: str = Field(description="The criteria to evaluate the response") |
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.
We discussed that both here and with simple criteria this should be removed. If not with this PR, I can make another PR after this is merged.
Metrics Converted
a few different examples
Aspect Critic
with reference
Note: this only works for multi-turn metrics for now