giskard
giskard copied to clipboard
[GSK-3513] Fix RAGAS metric computation
According to this issue, some RAGAS metrics are not properly computed by RAGAS (this includes context recall, context precision and faithfulness).
To fix it:
- added a
retrieved_documents
argument to the evaluate method - allowed the
answer_fn
to return retrieved documents alongside the answer to a question