diff --git a/src/ragas/metrics/_faithfulness.py b/src/ragas/metrics/_faithfulness.py index 2938c468b4..f025c5e4dc 100644 --- a/src/ragas/metrics/_faithfulness.py +++ b/src/ragas/metrics/_faithfulness.py @@ -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