RAG Evaluation Explained: Faithfulness, Relevance and Metrics

RAG evaluation explained: faithfulness, answer relevancy, context precision, and context recall. What each metric measures and how RAGAS computes it.

By Galactic News Editorial · Published 2026-11-28T07:41:12+00:00 · Updated 2026-11-28T07:41:12+00:00

RAG evaluation explained with faithfulness, relevance, and metrics

RAG evaluation measures whether a retrieval-augmented generation system finds the right documents and answers from them without inventing facts. Four metrics do most of the work: faithfulness, answer relevancy, context precision, and context recall. Two diagnose the generator, two diagnose the retriever. This guide explains each one, how it is computed, and which tools implement it.

A RAG pipeline has two halves that fail in different ways. Retrieval can fetch the wrong chunks or miss the right ones. Generation can ignore the retrieved context and hallucinate. End-to-end quality scores cannot tell these failures apart. Splitting the evaluation into retrieval metrics and generation metrics is what makes debugging possible.

RAG evaluation explained: the four core metrics

The four metrics come from RAGAS, the open-source Retrieval-Augmented Generation Assessment framework. All four score from 0 to 1, with higher being better, and all four use a judge language model. They split cleanly into two pairs.

Faithfulness asks whether the generated answer stays grounded in the retrieved context. RAGAS splits the answer into individual statements and asks the judge whether each statement can be inferred from the context. The score is the fraction of supported statements. A faithfulness of 0.85 means roughly 85 percent of the answer's claims are backed by retrieved context. It catches hallucinations from the generator.

Answer relevancy asks whether the response actually addresses the question. The judge generates questions that the answer would answer, then measures the embedding similarity between those questions and the original question. It catches a common failure: an answer that is perfectly grounded but answers a different question, which happens when prompts drift or the generator latches onto the wrong chunk. Note that relevancy does not check factual accuracy. A wrong answer can be highly relevant.

Context precision asks whether the retrieved chunks were useful and ranked well. A judge scores each chunk for usefulness, and the metric uses average precision, a ranking-aware measure that penalizes systems that bury relevant chunks at the bottom. It catches retrieval noise and bad ranking.

Context recall asks whether retrieval missed anything. It compares the retrieved context against a reference answer and measures how much of the needed information was actually fetched. It is the only core metric that always needs a reference answer. It catches retrieval gaps.

Comparison: the four metrics side by side

MetricQuestion it answersNeeds a reference?Failure it catchesDiagnoses
FaithfulnessIs every claim backed by the context?NoHallucinationGenerator
Answer relevancyDoes the answer address the question?NoOff-topic or padded answersGenerator
Context precisionAre the useful chunks ranked at the top?Yes, for the reference variantRetrieval noise and bad rankingRetriever
Context recallWas anything needed left out?YesRetrieval gapsRetriever

The split matters in practice. Low faithfulness with high context precision means the retriever did its job and the generator ignored it. High faithfulness with low context recall means the answer is grounded but incomplete. Fix the half the metrics point at, not the whole pipeline.

How RAGAS works in practice

RAGAS is an open-source Python framework, published by Shahul Es and colleagues and presented at EACL 2024. Most of its metrics need no human-labeled ground truth, which is the design choice that makes it practical. You supply a dataset of questions, retrieved contexts, and generated answers, and the framework scores each row with a judge model.

The current API is RAGAS 0.4.x. Metrics live in ragas.metrics.collections and are called with keyword arguments, such as Faithfulness(llm=judge) followed by an async score call with user_input, response, and retrieved_contexts. The project moved on GitHub from explodinggradients/ragas to vibrantlabsai/ragas, and the docs remain at docs.ragas.io. Older tutorials that import from ragas.metrics directly use a deprecated API.

Judge choice matters. A cheap, fast judge model keeps evaluation costs below the cost of the system itself, but scores inherit the judge's biases. Scores also drift when the judge changes, so keep the judge fixed across comparisons. If you change the judge, rerun the baseline. RAGAS collects minimal anonymized usage analytics by default; set the RAGAS_DO_NOT_TRACK environment variable to true to opt out.

NVIDIA's NeMo Helix documentation lists the same RAGAS metrics for its evaluation SDK, including faithfulness, response groundedness, context precision, context recall, context relevance, and noise sensitivity. Noise sensitivity measures robustness to irrelevant context, and response groundedness checks whether the response is grounded without hallucinations. These extra metrics are useful once the core four are stable.

Setting thresholds and building a test set

Start with sensible thresholds and adjust from your own data. Common starting points are faithfulness above 0.80, answer relevancy above 0.85, context precision above 0.75, and context recall above 0.80. Regulated domains such as finance and healthcare should demand higher faithfulness, around 0.90 or above.

The test set decides what the scores mean. Build it from real user questions, not from questions written to suit the system. Include edge cases: questions with no answer in the corpus, questions that need two documents combined, and questions phrased differently from the source text. A test set of 50 to 100 well-chosen questions beats 1,000 easy ones.

Track scores per question category, not just overall. Averages hide the worst cases. A system that scores 0.9 overall but 0.4 on multi-document questions has a specific retrieval problem worth fixing.

Beyond RAGAS: other evaluation options

RAGAS is the most common open-source choice, but it is not the only one. Hosted observability platforms such as LangSmith, TruLens, and Arize Phoenix offer RAG evaluation alongside tracing and monitoring, which suits teams that already run those platforms. Red Hat's OpenShift AI integrates RAGAS through its Llama Stack evaluation API, in both inline mode for development and remote mode for production-scale runs.

Exact-match metrics such as BLEU and ROUGE still appear in older evaluation setups. They compare generated text to a reference answer word by word. They are a poor fit for RAG, because a correct answer phrased differently scores badly. Use them only when the expected answer has one exact form, such as a number or a code.

Human review remains the final check. Sample low-scoring and high-scoring answers each week and read them. Automated metrics catch patterns. Humans catch the cases where the metric and the truth disagree.

Common mistakes

Bottom line

Evaluate RAG with four metrics: faithfulness and answer relevancy for the generator, context precision and context recall for the retriever. RAGAS implements all four with an LLM judge and needs no labeled ground truth for most of them. Start with thresholds around 0.80 for faithfulness and recall, build a test set from real questions, and fix the half the metrics point at. A RAG system you cannot measure is a system you cannot improve.