Short answer. There is no single metric for evaluating an LLM. Each one answers a different question: factual accuracy measures whether what it says is true, groundedness whether what it says is supported by the documents, contextual relevance whether the system retrieved the right information, and ROUGE how closely a text resembles a reference text. Choosing the wrong metric gives a high score to a system that fails.
Want to see how these metrics are measured in your assistant or agent?
How to choose a metric
Before opening the glossary, ask three questions:
- Which error costs the most? An invented answer, an off-topic answer and a correct but badly written answer do not have the same cost.
- Is there a reference answer? Some metrics compare against a known correct text; others evaluate the answer without a reference, against the source or against criteria.
- Who scores? A formula, an LLM acting as a judge, or a person. Each option has a different cost and level of reliability.
Metrics glossary
| Metric | What it measures | Needs a reference | Main limit |
|---|---|---|---|
| Factual accuracy | Whether the claims in the answer are true | Yes, or a reliable source | Checking a fact requires knowing it |
| Groundedness | Whether each claim is supported by the documents provided | No, only the source | An answer faithful to a wrong document is still wrong |
| Contextual relevance | Whether what was retrieved is what is needed to answer | No | Measures retrieval, not the final answer |
| Answer relevance | Whether the answer addresses what was asked | No | A relevant answer can be false |
| ROUGE | Word overlap with a reference text | Yes | Measures form, not meaning |
| BLEU | N-gram overlap with a reference translation | Yes | Penalizes correct paraphrases |
| Correct refusal rate | Whether it says it does not know when the source does not answer | No | Requires cases designed on purpose |
Factual accuracy
Measures whether what the system states is true. It is calculated by breaking the answer into claims and checking each one against a reliable source or a reference answer. It is the most requested metric and the hardest to automate well: to score it at scale an LLM is used as a judge, which must be calibrated against human reviewers. We explain it in LLM-as-a-judge: the complete guide.
Groundedness
Measures whether each claim in the answer is supported by the documents the system had available. It does not say whether the document is correct, only whether the answer invented something outside it. It is the central metric for assistants that answer from their own documents, and the basis for measuring hallucinations: the detail is in AI hallucinations: what they are, types and how to measure.
Contextual relevance
In a system with document retrieval (RAG), it measures whether the retrieved fragments contain what is needed to answer. A failure here explains errors that look like the model's fault and are not: if the right document does not arrive, the model answers without it. It is evaluated separately from the answer to know where to fix things. More in Production RAG evaluation.
Answer relevance
Measures whether the answer addresses the question asked, regardless of whether it is true. It detects answers that circle the topic, reply to something else or get lost in explanations. Combined with factual accuracy, it separates a false answer from an off-topic one.
ROUGE
ROUGE compares the generated text with one or more reference texts by counting word overlaps. Its best-known variants are ROUGE-1 (single words), ROUGE-2 (pairs of consecutive words) and ROUGE-L (the longest common sequence). It was created to evaluate automatic summaries. It is cheap, deterministic and reproducible, but it measures similarity of form and not of meaning: a correct paraphrase scores low and an answer with the same words and a changed meaning can score high. It works as an auxiliary signal, not as a release criterion for a conversational assistant.
BLEU
BLEU works on a similar logic, designed for machine translation: it compares n-grams with a reference translation. It shares ROUGE's limit: it favors literal similarity.
Correct refusal rate
Measures whether the system abstains and hands over when the source does not contain the answer. It requires questions designed so that there is no answer, and it is among the hardest to cover with generic automatic metrics.
What to combine depending on the system
| System | Minimum metrics |
|---|---|
| Assistant that answers from documents (RAG) | Contextual relevance, groundedness, correct refusal |
| Customer service assistant with open answers | Factual accuracy, answer relevance, escalation to a person |
| Summaries or translations | ROUGE or BLEU as support, plus factual accuracy with a judge and human review |
| Agent that executes actions | Action claimed vs executed, in addition to the above |
Measure every metric in every version of your assistant
We show you how.
How to score: formulas, judges and people
- Formulas (ROUGE, BLEU): fast and reproducible, blind to meaning.
- LLM as a judge: scores criteria such as factual accuracy or relevance at scale. An uncalibrated judge is an opinion with decimals: it must be checked against human reviewers and its criterion written down. There are templates in LLM-as-a-judge prompts, templates, rubrics and best practices.
- People: the reference for calibration. Reserved for samples and hard cases.
Results should be stored per model version, instructions and sources, to know whether a change improves or worsens each metric.
An example: choosing metrics for a fees assistant
Illustrative scenario, not a customer case. A bank prepares an assistant that answers questions about fees from its terms. The team rules out ROUGE as the main criterion, because the answers are open-ended. It picks groundedness and correct refusal as release metrics, contextual relevance to diagnose retrieval, and factual accuracy on a sample reviewed by people.
When the model changes, groundedness holds but contextual relevance drops on card fee questions. The cause was in retrieval, not in the model, and the team fixes it without switching provider.
Checklist: ten questions about your metrics
- Do you know which error costs the most in your use case?
- Do you measure groundedness and not just overall perceived quality?
- Do you evaluate retrieval separately from the answer?
- Are there cases where the source does not answer, to measure correct refusal?
- Do you use ROUGE or BLEU only as support and not as a release criterion?
- Is your LLM judge calibrated against human reviewers?
- Is the criterion of each metric written down and the same for everyone?
- Do you store results per model version, instructions and sources?
- Do you repeat the measurement when anything in the system changes?
- Could an external evaluator reproduce your numbers?
How many of these ten questions can your team answer today? Review them with us.
Frequently asked questions
Which metrics are used to evaluate an LLM?
The most common are factual accuracy, groundedness, contextual relevance, answer relevance and correct refusal rate. ROUGE and BLEU are used as support for summaries and translations.
What is ROUGE and what is it for?
It is a metric that compares generated text with a reference text by counting word overlaps. It is mainly used for automatic summaries and as an auxiliary signal, because it measures similarity of form and not of meaning.
What is the difference between factual accuracy and groundedness?
Factual accuracy asks whether what is stated is true. Groundedness asks whether what is stated is supported by the documents provided. An answer can be faithful to a wrong document.
What is contextual relevance?
It is the metric that measures whether the fragments retrieved by a RAG system contain what is needed to answer. It shows whether a failure comes from retrieval or from the model.
Is one metric enough to decide whether an LLM is ready?
No. Each metric covers one type of error, and a high score on one can hide failures in another. The usual approach is to combine several and set a threshold for each.
Can these metrics be automated?
Yes, with formulas for the overlap metrics and an LLM as a judge for the rest, as long as the judge is calibrated against human reviewers and results are stored per version.