use praisonai::CriteriaEvaluator;
let evaluator = CriteriaEvaluator::new()
.criterion("clarity", "Is the response clear and easy to understand?")
.criterion("accuracy", "Is the information factually correct?")
.criterion("completeness", "Does it fully answer the question?")
.build();
let scores = evaluator.evaluate(&response);
for (name, score) in scores {
println!("{}: {:.0}%", name, score * 100.0);
}