Skip to content

Commit

Permalink
Merge branch 'main' into docstrings-linting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista authored Apr 23, 2024
2 parents 71a6d30 + 9c56dbe commit b06c5fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/components/evaluators/test_context_relevance_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def test_live_run(self):

evaluator = ContextRelevanceEvaluator()
result = evaluator.run(questions=questions, contexts=contexts)
assert result["score"] == 1.0
assert result["individual_scores"] == [1.0]
assert result["results"][0]["score"] == 1.0
assert result["results"][0]["statement_scores"] == [1.0]
assert "Guido van Rossum" in result["results"][0]["statements"][0]

required_fields = {"individual_scores", "results", "score"}
assert all(field in result for field in required_fields)
nested_required_fields = {"score", "statement_scores", "statements"}
assert all(field in result["results"][0] for field in nested_required_fields)

0 comments on commit b06c5fa

Please sign in to comment.