Skip to content

Commit

Permalink
fix: faithfulness (#787)
Browse files Browse the repository at this point in the history
fixes : #785
  • Loading branch information
shahules786 committed Mar 20, 2024
1 parent 7f79435 commit 4c31c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ragas/metrics/_faithfulness.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _compute_score(self, output: t.Any):
output = output if isinstance(output, list) else [output]
faithful_statements = sum(
verdict_score_map.get(
statement_with_validation.get("verdict", "").lower(), np.nan
str(statement_with_validation.get("verdict", "")), np.nan
)
if isinstance(statement_with_validation, dict)
else np.nan
Expand Down

0 comments on commit 4c31c0f

Please sign in to comment.