Skip to content

Commit 285fd6c

Browse files
Merge pull request #2062 from Giskard-AI/feature/gsk-3914-fix-ragasmetric-outdated-error-message
[GSK-3914] Fix RagasMetric outdated message
2 parents 91c5e5e + 276b9ab commit 285fd6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎giskard/rag/metrics/ragas_metrics.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __call__(self, question_sample: dict, answer: AgentAnswer) -> dict:
108108
if self.requires_context and answer.documents is None:
109109
logger.warning(
110110
f"No retrieved documents are passed to the evaluation function, computation of {self.name} cannot be done without it."
111-
"Make sure you pass 'retrieved_documents' to the evaluate function or that the 'answer_fn' return documents alongside the answer."
111+
"Make sure that the 'answer_fn' return documents alongside the answer, wrapped by the 'AgentAnswer' class."
112112
)
113113
return {self.name: 0}
114114

0 commit comments

Comments
 (0)