Skip to content

Commit

Permalink
Merge pull request #2062 from Giskard-AI/feature/gsk-3914-fix-ragasme…
Browse files Browse the repository at this point in the history
…tric-outdated-error-message

[GSK-3914] Fix RagasMetric outdated message
  • Loading branch information
kevinmessiaen authored Nov 18, 2024
2 parents 91c5e5e + 276b9ab commit 285fd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion giskard/rag/metrics/ragas_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __call__(self, question_sample: dict, answer: AgentAnswer) -> dict:
if self.requires_context and answer.documents is None:
logger.warning(
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}

Expand Down

0 comments on commit 285fd6c

Please sign in to comment.