Right answer, low overlap
Reference: “The invoice is due on 14 March.” Output: “Payment deadline: March 14.” Almost no shared words; a person marks it correct.
- Different words
- Same meaning
- Same date
Every metric answers one narrow question. Picking the right ones means knowing the question your users actually care about.
There are dozens of LLM evaluation metrics, from word-overlap scores built for machine translation to judges that read an answer against a rubric. This guide sorts them into families, works through what each one rewards and where it misleads, and ends with a decision guide that maps your kind of output to the metrics worth reporting.
Updated · 15 sources
LLM evaluation metrics are the measures used to score a language model’s output: exact match and F1 for answers with one right value, word-overlap scores such as BLEU and ROUGE, embedding similarity such as BERTScore, model-graded scores from an LLM judge, grounding metrics such as faithfulness for RAG, and reliability measures such as pass^k, calibration, latency and cost. No single metric is enough; you pick the ones that match what your users would call a correct answer.
Two questions place every metric. Do you need a known right answer to compute it? And is the grade computed by code, or read by a model? The answer decides what the metric costs to run and how far you can trust it.
BLEU was built in 2002 to score machine translation by shared word sequences; ROUGE, in 2004, to score summaries by recall of a reference’s words. Both reward saying it the same way as the reference. A language model often words a right answer differently, so both can mark it down — and can score a wrong answer well when it reuses the reference’s words.
Reference: “The invoice is due on 14 March.” Output: “Payment deadline: March 14.” Almost no shared words; a person marks it correct.
Reference: “The invoice is due on 14 March.” Output: “The invoice is not due on 14 March.” Nearly every word matches; the meaning is reversed.
Use them as a tripwire. OpenAI’s evaluation guidance lists relying solely on academic metrics like perplexity or BLEU as an anti-pattern. A sudden drop in overlap is worth a look; a stable score proves little.
When an answer can be checked — a field, a label, code that must run — check it directly. Then measure the thing average accuracy hides: a model can be right on a case some of the time.
The HumanEval paper (Chen et al., 2021) made it the standard code metric. Useful when one success is enough, such as a developer picking one of several suggestions. With 75% per try, pass@3 is 1 − 0.25³ ≈ 98%.
Introduced with τ-bench (Yao et al., 2024). Useful when a customer sees each run. With 75% per try, pass^3 is 0.75³ ≈ 42% — Anthropic’s worked example.
A retrieval-augmented answer can fail in two places: the wrong passages were fetched, or the right ones were ignored. Scoring them separately tells you which half to fix. The Ragas paper (Es et al., 2023) defined three reference-free scores — faithfulness, answer relevance and context relevance; the Ragas library now ships context precision and context recall for the retrieval side.
What the person asked.
Were the relevant passages ranked above the irrelevant ones? The Ragas library’s name; the paper’s nearest score, context relevance, penalises retrieved text the answer does not need.
Of the facts the answer needs, how many appear in what was retrieved? Always needs a reference to compare against.
Of the claims in the answer, how many are supported by the retrieved passages?
Does the answer address the question that was asked, without padding?
The RAG answer was wrong. Which score dropped?
Tone, completeness, whether a summary is faithful — no rule computes these. A judge model can, with a written rubric. G-Eval, which has the judge reason through criteria before filling in a score, reached a Spearman correlation of 0.514 with human ratings on summarization — better than earlier automatic metrics, and still far from perfect.
Ask “is every claim supported — yes or no?” rather than for an open opinion. Anthropic’s grading advice is to have the judge output only “correct” or “incorrect”, or a short fixed scale, and to reason before it scores.
In a small test on 10 MT-Bench math questions, giving GPT-4 a reference answer cut how often it passed a wrong answer from 70% to 15% (Zheng et al., 2023).
Score a sample by hand and measure agreement before trusting the judge at scale. See LLM as a judge.
Start from what a correct answer looks like to the person who receives it. Then add the metrics that say whether it stays correct — and what it costs.
What does your system produce?
Botminds scores agents, workflows and meshes on your golden datasets, with the metrics that show whether an agent is right, right every time and still right after a change — and puts cost beside quality.
Per field and overall, with precision, recall and F1 — so you know which field is weak.
The fields that must never be wrong, on their own line.
A case counts when every repeated run passes — the number a customer feels.
Schema breaks, time per case, and model cost per case for agents.
Read the full design in AI agent evaluation, and try it in the Academy lesson crew and evaluations.
The ones that match your output. For structured fields: field accuracy and critical-field accuracy. For RAG: context recall and faithfulness. For code: tests passed and pass@k. For agents: outcome checks and pass^k. Always add cost and time per case, and calibration if you route on confidence.
Rarely on its own. BLEU counts shared word sequences with a reference, so it penalises correct paraphrases and can reward a fluent answer with one wrong word. Use it as a tripwire for sudden drops, with task checks or a judge for correctness.
BLEU measures precision of shared n-grams and was designed for translation. ROUGE measures recall of the reference’s n-grams or longest common subsequence and was designed for summaries. Both measure overlap of words, not correctness of meaning.
pass@k, the standard code metric since HumanEval, is the chance that at least one of k attempts succeeds; pass^k, introduced with τ-bench, is the chance that all k succeed. With 75% per attempt, pass@3 is about 98% while pass^3 is about 42%. Use pass^k when every run reaches a user.
The share of claims in an answer that are supported by the retrieved passages. Low faithfulness means the model added things the sources do not say, even when retrieval was correct.
Run the model on a golden dataset of real cases with verified answers, score each output with a rule suited to it — exact, fuzzy, numeric tolerance, or a judge for free text — repeat runs to measure consistency, and report the margin of error with the score.
A method from 2023 in which a strong model reasons through evaluation criteria and then fills in a score form. It correlated better with human ratings than earlier automatic metrics, and its authors noted a bias toward text written by language models.
HELM reports seven: accuracy, calibration, robustness, fairness, bias, toxicity and efficiency, across many scenarios, so models are compared on the same cases and on more than accuracy.
Bring one process and its documents. We’ll show you the agents, the controls and the record, running on your data.