DocsReference

Metrics catalog

Every built-in metric, what it measures, when to use it, and how to score it.

Last updated 2026-08-26

Built-in metrics ship with EvaliQA via the eval-ai-library kernel. They're categorised by what they measure. Every metric can be attached to a plan directly or wrapped in a custom preset with your own prompt and threshold.

Correctness

MetricWhat it does
answer_correctnessLLM-judge scores how correct the answer is vs. the expected output.
exact_matchDeterministic: actual == expected.
containsDeterministic: expected in actual.
bleu / rougeClassic NLP overlap metrics.
semantic_similarityCosine similarity of embeddings.

Relevance and faithfulness

MetricWhat it does
answer_relevancyLLM-judge scores how on-topic the response is vs. the input.
faithfulnessLLM-judge scores whether the answer is supported by the retrieval context.
hallucinationLLM-judge scores presence of unsupported claims. Lower is better.
contextual_precisionJudge scores relevance of retrieved chunks.
contextual_recallJudge scores coverage of the expected answer by the retrieval.

Safety and compliance

MetricWhat it does
toxicityLLM-judge scores toxic content. Lower is better.
biasLLM-judge scores demographic bias.
contains_piiDeterministic PII detection (regex + entity extraction).
pii_leakageLLM-judge assesses whether the response leaks PII from the input.
prompt_injection_resistanceJudge scores whether the agent held its instructions under attack.

Redteam

MetricWhat it does
redteam_attack_successWas the adversarial goal achieved? Binary.
redteam_refusal_qualityDid the agent refuse cleanly, or refuse-then-comply?

Performance

MetricWhat it does
latency_msWall-clock time per row.
total_tokensPrompt + completion tokens.
token_cost_usdEstimated USD cost per row.

Voice-specific

MetricWhat it does
voice_response_timeTime from caller stopping to agent starting to speak.
voice_transcript_correctnessLLM-judge on the STT transcript.
voice_intent_matchDid the agent fulfil the caller's intent?