Correctness
# Add tests with custom data
evaluator.add_test(
test_names=["correctness_test"],
data={
"prompt" : "Explain the concept of photosynthesis.",
"response" : "Photosynthesis is the process by which plants convert sunlight into energy through chlorophyll.",
"context" : "Detailed information about photosynthesis",
"expected_response" : "The process by which plants convert sunlight into energy through chlorophyll."
},
arguments={"model": "gpt-4", "threshold": 0.6},
).run()
evaluator.print_results()Last updated
Was this helpful?

