You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/howtos/integrations/_opik.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,11 +188,33 @@ rag_pipeline("What is the capital of France?")
188
188
189
189
190
190
191
-
#### Evaluating datasets
191
+
from datasets import load_dataset
192
192
193
-
If you looking at evaluating a dataset, you can use the Ragas `evaluate` function. When using this function, the Ragas library will compute the metrics on all the rows of the dataset and return a summary of the results.
193
+
from ragas import evaluate
194
+
from ragas.metrics import answer_relevancy, context_precision, faithfulness
194
195
195
-
You can use the OpikTracer callback to log the results of the evaluation to the Opik platform. For this we will configure the OpikTracer
0 commit comments