Skip to content

Commit

Permalink
add question_completeness eval (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-1600 committed Apr 8, 2024
1 parent d6673e6 commit 0d19551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit 0d19551

Please sign in to comment.