What are RAG evaluation metrics?
RAG evaluation metrics are a set of measures, such as context precision, context recall, answer relevance and faithfulness, that assess a RAG system's retrieval and answer generation steps separately.
They differ from faithfulness in scope: faithfulness is a single metric for whether an answer rests on the retrieved context, while RAG metrics cover retrieval and generation together. Measuring separately matters: a bad answer may come from fetching the wrong chunks or from misusing the right context.
- Topic
- Evaluation and quality
- Also known as
- RAG metrics
- Origin
- 2023, Es et al.
How RAG evaluation metrics work
- For retrieval, context precision measures how much of the retrieved content is relevant and how high the relevant pieces rank and context recall how much of the needed information was found.
- Classic retrieval metrics such as MRR and nDCG measure how high the right chunk ranks.
- For the answer, faithfulness measures how far statements are supported by context and answer relevance whether the question is answered.
- Most metrics are computed automatically by a judge model on an evaluation dataset; a sample is checked by people.
In more detail
Reference-based versus reference-free metrics
RAG metrics split into reference-free metrics (such as faithfulness and answer relevance), which need only the query, retrieved context and answer and reference-based metrics (such as context recall, MRR and nDCG), which require ground-truth answers or relevance labels. Mixing them up leads teams to trust scores without realising where human annotation is needed.
Model judge biases and calibration
Judge models suffer from position bias, verbosity bias (preferring longer answers) and self-preference when evaluating outputs from the same model family. Calibrating automatic scores against human annotations using correlation or agreement metrics such as Cohen's kappa or Spearman rank correlation keeps evaluation trustworthy.
Abstention accuracy and end-to-end answer correctness
In enterprise RAG, answering wrongly when the knowledge base lacks the answer is often riskier than saying 'I do not know'. Evaluating abstention accuracy (correct refusal on unanswerable queries) and semantic answer correctness against reference answers prevents false confidence from high faithfulness scores on partial context.
Operational metrics and citation accuracy
Offline quality scores must be paired with operational metrics such as retrieval latency, end-to-end token cost, context utilisation rate and citation span accuracy. Tracking how each metric responds when chunk size, top-k or reranking changes lets teams balance quality against GPU budget.
Commonly confused terms
| Term | How it differs |
|---|---|
| AI guardrails | RAG evaluation metrics measure system quality offline or online across retrieval and generation, whereas LLM guardrails are runtime policy filters that block or redact unsafe, off-topic or ungrounded responses in real time. |
Why RAG evaluation metrics matter for on-premises AI
In in-house RAG, quality shifts as documents are added or chunking or the embedding model changes; metrics show which step changed. Weak retrieval points to chunking, embeddings or reranking; weak generation to the prompt or model. An evaluation set built from the organisation's real questions and documents is what makes results meaningful; it stays in-house. Automated scores do not replace human review.
An insurer measures retrieval and answer steps separately for every version of its policy Q&A system; when context precision drops, it reviews chunking settings first.
Common questions
Should RAG metrics be backed by human evaluation?
Yes. Most are computed by a judge model and can be wrong. Expert scoring of a sample confirms how reliable the metrics are.
Why measure retrieval and generation separately?
A bad answer may come from irrelevant chunks or from misusing the right context. Separate measurement shows which step to fix.
Related terms
- Faithfulness
- Answer relevance
- Retrieval-Augmented Generation
- Evaluation dataset
- Retrieval
- LLM-as-a-judge
- Grounding
Sources
- Es et al., Ragas: Automated Evaluation of Retrieval Augmented Generation, 2023
- Saad-Falcon et al., ARES: An Automated Evaluation Framework for Retrieval-Augmented Generation Systems, 2023
- Järvelin and Kekäläinen, Cumulated gain-based evaluation of IR techniques, 2002
Related page on this site: Related FAQ · In the glossary: Glossary, R to Z