From cbe29b2218159bf8d537b3a46c811a15bc7da547 Mon Sep 17 00:00:00 2001 From: Henrique Chaves Date: Thu, 31 Oct 2024 16:43:41 -0300 Subject: [PATCH] Fix outdated message --- giskard/rag/metrics/ragas_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giskard/rag/metrics/ragas_metrics.py b/giskard/rag/metrics/ragas_metrics.py index 211e8eb4bf..6349764f8e 100644 --- a/giskard/rag/metrics/ragas_metrics.py +++ b/giskard/rag/metrics/ragas_metrics.py @@ -106,7 +106,7 @@ def __call__(self, question_sample: dict, answer: AgentAnswer) -> dict: if self.requires_context and answer.documents is None: logger.warn( f"No retrieved documents are passed to the evaluation function, computation of {self.name} cannot be done without it." - "Make sure you pass 'retrieved_documents' to the evaluate function or that the 'answer_fn' return documents alongside the answer." + "Make sure that the 'answer_fn' return documents alongside the answer, wrapped by the 'AgentAnswer' class." ) return {self.name: 0}