Skip to content

Commit

Permalink
feat: LLM-based Evaluators have raise_on_Failure=False by default (#16
Browse files Browse the repository at this point in the history
)

* initial import

* adding partial
  • Loading branch information
davidsbatista authored Jun 20, 2024
1 parent e208798 commit 252e9d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def default_rag_evaluation_pipeline(
RAGEvaluationMetric.SEMANTIC_ANSWER_SIMILARITY: partial(
SASEvaluator, model="sentence-transformers/all-MiniLM-L6-v2"
),
RAGEvaluationMetric.ANSWER_FAITHFULNESS: FaithfulnessEvaluator,
RAGEvaluationMetric.CONTEXT_RELEVANCE: ContextRelevanceEvaluator,
RAGEvaluationMetric.ANSWER_FAITHFULNESS: partial(FaithfulnessEvaluator, raise_on_failure=False),
RAGEvaluationMetric.CONTEXT_RELEVANCE: partial(ContextRelevanceEvaluator, raise_on_failure=False),
}

for metric in metrics:
Expand Down

0 comments on commit 252e9d1

Please sign in to comment.