Coherence
# Add tests with custom data
evaluator.add_test(
test_names=["coherence_test"],
data={
"prompt": ["Can you explain the process of photosynthesis in detail?"],
"response": ["Photosynthesis is a complex biochemical process in which plants convert light energy into chemical energy, utilizing water, carbon dioxide, chlorophyll, and enzymes."]
},
arguments={"model": "gpt-4", "threshold": 0.6},
).run()
evaluator.print_results()Last updated
Was this helpful?

