Skip to content

Commit 4c31c0f

Browse files
authored
fix: faithfulness (#787)
fixes : #785
1 parent 7f79435 commit 4c31c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ragas/metrics/_faithfulness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _compute_score(self, output: t.Any):
144144
output = output if isinstance(output, list) else [output]
145145
faithful_statements = sum(
146146
verdict_score_map.get(
147-
statement_with_validation.get("verdict", "").lower(), np.nan
147+
str(statement_with_validation.get("verdict", "")), np.nan
148148
)
149149
if isinstance(statement_with_validation, dict)
150150
else np.nan

0 commit comments

Comments
 (0)