RAG Evaluation Metrics Explained - The 2026 Practical Guide
RAG breaks in two places - retrieval and generation - so you measure both. Here are the metrics that matter (context relevancy, faithfulness, answer relevancy), why the RAG triad works, and the tools that ship these scores.
Published:
RAG feels simple until you have to prove it works. You retrieve some context, you generate an answer, and somewhere in that chain it goes wrong - but where? The retriever? The prompt? The model? RAG evaluation metrics exist to answer exactly that question.
This guide explains the metrics that matter, why they are split the way they are, and which tools ship them. Concept first, tools second.
Why RAG needs its own metrics
A plain LLM answer has one thing to judge: the output. A RAG answer has two stages, and each can fail on its own. First the retriever pulls context from your knowledge base. Then the model generates an answer from that context. A perfect model still fails if the retriever hands it garbage. A perfect retriever still fails if the model ignores what it got.
So you cannot score RAG with one number. You measure retrieval and generation separately, then read the two together to find the break. That split is the whole idea behind RAG-specific metrics.
The metrics that matter
There are four you will meet first, and they map cleanly onto the two stages.
Retrieval metrics:
- Context relevancy (or context precision). Of the chunks the retriever pulled, how many are actually relevant to the question. Low score means your retriever is pulling noise.
- Context recall. Of all the relevant chunks that exist, how many did the retriever find. Low score means it is missing information the answer needs.
Generation metrics:
- Faithfulness (or groundedness). Is every claim in the answer supported by the retrieved context. This is your hallucination check - anything the model asserts that is not in the context is invented. Reference-free, so it works in production.
- Answer relevancy. Does the answer actually address the question, regardless of whether it is correct.
The rule to remember: retrieval metrics judge the search, generation metrics judge the writing. Keep them separate and each failure points at a specific fix.
The RAG triad - reading the scores together
The reason to run three of these at once is diagnostic. It is often called the RAG triad - context relevancy, faithfulness, and answer relevancy - and the pattern of scores tells you exactly what to fix.
- Context relevancy low - your retriever is the problem. Tune chunking, embeddings or the top-k.
- Faithfulness low - the model is going past its context. Tighten the prompt or the model is over-answering.
- Answer relevancy low - the generation prompt is off, even if the facts are fine.
That is the value of measuring all three. One number tells you quality dropped. The triad tells you which stage to open up. If hallucination is your specific worry, we go deeper in how to measure LLM hallucination.
Where the tools fit
You do not write these metrics by hand. Three platforms ship them, with different strengths.
For depth, Arize Phoenix. Reviewers single out its RAG evaluation as the best in the category - it ships 50+ pre-built eval metrics with serious retrieval and answer scoring, and no judge prompts to write. It runs locally on your laptop in under a minute and is OpenTelemetry-native, so it fits any framework. The one thing to know: the server repo is Elastic License 2.0, source-available rather than OSI open source, which only matters if you plan to resell it as a hosted service. For internal RAG eval, that restriction never comes up.
For pytest-style RAG tests, DeepEval. It ships RAG metrics - faithfulness, answer relevancy and contextual scores - inside its 50+ research-backed metric library, and you run them with deepeval test run in CI. The framework is Apache-2.0 and free. The catch is that nearly all its metrics are LLM-as-judge, so a big RAG suite fires a lot of inference calls - runs take minutes and API bills add up. Cost-model it before you scale the suite.
For RAG scoring in CI gates, Braintrust. Its autoevals library ships working scorers and you add custom RAG scorers as plain functions, then its CI/CD quality gates block a merge on a statistically significant regression. If your goal is to stop a retrieval or prompt change from silently degrading answers, this is the turnkey path. Watch the processed-data billing meter - big RAG contexts stuffed into every call are exactly what burns the GB allowance fastest, and there is no hard cap.
So which one?
- You want the deepest RAG metrics and the fastest start - Arize Phoenix.
- You want RAG tests that run in CI like pytest - DeepEval, with an eye on the judge-call cost.
- You want to block merges that hurt RAG quality - Braintrust, with billing alerts on.
The takeaway: never score RAG with a single number. Measure retrieval and generation separately, read the triad together, and you will know which stage to fix instead of guessing. For the full field of platforms, see best RAG evaluation tools, and for metrics beyond RAG, LLM evaluation metrics explained.
Frequently Asked Questions
What are the main RAG evaluation metrics?
RAG splits into two stages, so the metrics do too. On the retrieval side you measure context relevancy or precision - did the retriever pull the right chunks - and context recall, did it pull all of them. On the generation side you measure faithfulness, is the answer grounded in the retrieved context, and answer relevancy, does it address the question. Together these three or four scores are often called the RAG triad. Arize Phoenix and DeepEval both ship them as pre-built metrics.
What is the RAG triad?
The RAG triad is a three-part check that isolates where a RAG pipeline breaks - context relevancy (is the retrieved context relevant to the question), faithfulness or groundedness (is the answer supported by that context), and answer relevancy (does the answer address the question). If context relevancy is low your retriever is the problem. If faithfulness is low the model is hallucinating past its context. If answer relevancy is low the generation prompt is off. It tells you which stage to fix.
How do I measure hallucination in RAG?
With a faithfulness or groundedness metric. It checks whether every claim in the answer is supported by the retrieved context - anything the model asserts that is not in the context is a hallucination. It is reference-free, so it works in production where you have no ground-truth answer. DeepEval, Arize Phoenix and Braintrust all provide faithfulness-style scorers, most of them LLM-as-judge, which is why they cost API calls to run.
Which tool is best for RAG evaluation?
For depth, Arize Phoenix - reviewers single out its RAG evaluation as the best in the category, and it runs locally in under a minute. If you want pytest-style RAG tests in CI, DeepEval ships RAG metrics including faithfulness and answer relevancy in its Apache-2.0 framework. If you want RAG scoring wired into CI quality gates that block bad merges, Braintrust's autoevals library plus custom scorers does that. All three are grounded picks - check each tool page for the license and billing catch.
Explore More
Related Articles
- Context Precision vs Recall Explained - Diagnosing RAG Retrieval in 2026
- LLM Evaluation Metrics Explained - A Practical 2026 Guide
- How to Reduce LLM Hallucinations in 2026 - Techniques That Actually Work
- The Best RAG Evaluation Tools in 2026, Ranked by an Engineer Who Scores Retrieval for a Living
- How to Evaluate a RAG System in 2026 - A Practical Step-by-Step Guide
Free Newsletter
Get the LLM Evals Newsletter
Platform comparisons, pricing changes and eval technique deep-dives. No spam.
Related Articles
Evaluation of LLM Applications: A Practical 2026 Guide
A vendor-neutral guide to evaluation of LLM applications: metric selection, dataset sizing math, judge calibration, cost models and a tool comparison.
August 9, 2026
guideBLEU vs ROUGE vs BERTScore - Which to Use and Why All Three Fail on Chat
BLEU counts precision, ROUGE counts recall, BERTScore compares embeddings. Here is how each one actually computes a score, a worked example on the same sentence, and why none of them can grade an open-ended LLM answer.
July 28, 2026
guideContext Precision vs Recall Explained - Diagnosing RAG Retrieval in 2026
Context precision punishes noise, context recall punishes gaps. Here is how each retrieval metric is computed, a worked example, and how the two scores together tell you whether your retriever is over-fetching or missing documents.
July 28, 2026
Arize Phoenix Review
Confident AI (DeepEval) Review
Braintrust Review