Output accuracy
Accuracy evaluators measure how well the AI’s outputs match ground truth or expert consensus. This is the foundation of most evaluation suites.Classification accuracy evaluator
Assesses whether the AI assigned the correct label or level to each case. Supports multi-class classification with configurable ordered levels, for example the priority a support assistant assigns to incoming tickets.classification_accuracy.py
Asymmetric weighting: The severity_weights configuration reflects real risk: under-rating an outage report is far worse than over-rating a minor complaint. Configure weights based on your risk tolerance. The same pattern applies to any ordered-severity domain, including healthcare triage as an optional vertical.
Label matching evaluator
Evaluates AI-suggested labels against confirmed labels or expert consensus. Supports ranked suggestions and hierarchical taxonomy matching, for example intent classification or product categorization.Safety
Safety evaluators detect potentially harmful AI behaviors, missed red flags, prohibited advice, or failure to escalate critical cases.Red flag detection evaluator
Checks whether the AI correctly identified red flags that require immediate attention.red_flag_evaluator.py
Escalation appropriateness evaluator
Evaluates whether the AI appropriately escalated or de-escalated based on the case at hand.Hallucination detection
AI systems must not fabricate information. The hallucination detector identifies invented product features, non-existent APIs, fabricated citations, or unsupported claims.hallucination_evaluator.py
Common hallucination patterns
Completeness and coverage
Ensures the AI captured all relevant information and addressed necessary concerns.completeness_evaluator.py
Custom evaluators
For specialized use cases, you can define custom evaluators with your own scoring logic:custom_evaluator.py
Combining evaluators
Most production evaluations use multiple evaluators to get a comprehensive view:Fail conditions: Use fail_conditions to define hard gates. An evaluation that misses critical red flags should fail regardless of other scores.

