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 question_completeness eval #681

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions uptrain/framework/evalllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
CodeHallucinationScore,
CustomPromptEvalScore,
MultiQueryAccuracy,
ValidQuestionScore
)

from uptrain.framework.rca_templates import RcaTemplate
Expand All @@ -72,6 +73,7 @@
Evals.SUB_QUERY_COMPLETENESS: SubQueryCompleteness(),
Evals.CODE_HALLUCINATION: CodeHallucinationScore(),
Evals.MULTI_QUERY_ACCURACY: MultiQueryAccuracy(),
Evals.QUESTION_COMPLETENESS: ValidQuestionScore(),
}

PARAMETRIC_EVAL_TO_OPERATOR_MAPPING = {
Expand Down
1 change: 1 addition & 0 deletions uptrain/framework/evals.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Evals(enum.Enum):
CONTEXT_RERANKING = "context_reranking"
CONTEXT_CONCISENESS = "context_conciseness"
MULTI_QUERY_ACCURACY = "multi_query_accuracy"
QUESTION_COMPLETENESS = "question_completeness"


class ParametricEval(BaseModel):
Expand Down