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: experimental/ragas_examples/rag_eval/evals.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,8 @@ def load_dataset():
33
33
34
34
my_metric=DiscreteMetric(
35
35
name="correctness",
36
-
prompt="Check if the response contains points mentioned from the grading notes and return 'pass' or 'fail'.\nResponse: {response} Grading Notes: {grading_notes}",
37
-
values=["pass", "fail"],
36
+
prompt="Check if the response contains points mentioned from the grading notes and return 'pass' or 'fail'.\nResponse: {response} Grading Notes: {grading_notes}",
Copy file name to clipboardExpand all lines: experimental/ragas_examples/workflow_eval/evals.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ def load_dataset():
80
80
my_metric=DiscreteMetric(
81
81
name="response_quality",
82
82
prompt="Evaluate the response based on the pass criteria: {pass_criteria}. Does the response meet the criteria? Return 'pass' or 'fail'.\nResponse: {response}",
0 commit comments