Skip to content
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: 1 addition & 1 deletion openagent_eval/metrics/nli/evidence_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def score_faithfulness(
Tuple of (faithfulness_score, list_of_matches).
"""
if not claims:
return 0.0, []
return 1.0, []

matches = self.find_evidence_batch(claims, contexts)
supported = sum(
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_metrics/test_nli.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def test_score_faithfulness_none_supported(self):

def test_score_faithfulness_empty_claims(self):
score, matches = self.finder.score_faithfulness([], ["context"])
assert score == 0.0
assert score == 1.0
assert matches == []


Expand Down
Loading