-
Notifications
You must be signed in to change notification settings - Fork 826
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
[Evals API][8/n] AnswerParsingScoringFn for MMLU #352
Conversation
@@ -40,14 +73,13 @@ class ScoringFnDef(BaseModel): | |||
default_factory=dict, | |||
description="Any additional metadata for this definition", | |||
) | |||
parameters: List[Parameter] = Field( |
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.
Removing parameters
field as we can just use context
for defining parameters associated with the scoring function.
|
||
FIXED_FNS = [EqualityScoringFn, SubsetOfScoringFn] | ||
|
||
LLM_JUDGE_FNS = [LlmAsJudgeScoringFn] | ||
# Scoring functions with context that can be registered | ||
REGISTERABLE_SCORING_FNS = { |
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.
Each Registerable ScoringFn is mapped to a ScoringContextType, So that we are able to register a scoring function with custom judge_prompt/answer_extraction regex.
rebasing in #392 |
--continuation of #333
TL;DR
Test
App