evaluate() method is used to evaluate the performance of a RAG app. You can find the signature below:
Parameters
Union[str, list[str]]
A question or a list of questions to evaluate your app on.
Optional[list[Union[BaseMetric, str]]]
The metrics to evaluate your app on. Defaults to all metrics:
["context_relevancy", "answer_relevancy", "groundedness"]int
Specify the number of threads to use for parallel processing.
Returns
dict
Returns the metrics you have chosen to evaluate your app on as a dictionary.