Skip to content

Commit

Permalink
Merge branch 'main' into template/remove-hub-version
Browse files Browse the repository at this point in the history
  • Loading branch information
henchaves authored Aug 30, 2024
2 parents 63d0d22 + 5c88698 commit 6456a72
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 200 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The results of your metrics will be displayed in the report object as histograms
To include RAGAS metrics in evaluation, make sure to have installed the `ragas>=0.1.5` library. Some of the RAGAS metrics need access to the contexts retrieved by the RAG agent for each question. These can be returned by the `get_answer_fn` function along with the answer to the question:

```python
from giskard.rag import AgentAnwer
from giskard.rag import AgentAnswer

def get_answer_fn(question: str, history=None) -> str:
"""A function representing your RAG agent."""
Expand Down
Loading

0 comments on commit 6456a72

Please sign in to comment.