RAG Evaluation: The Metrics Nobody Talks About
Back to all articles
AI Engineering
16 min read6 min read

RAG Evaluation: The Metrics Nobody Talks About

Beyond basic accuracy - the metrics that actually matter for production RAG systems. Includes evaluation framework and benchmark results.

Debasish Maji
Debasish Maji
AI Engineering Lead
April 2, 2026
RAGEvaluationMetricsQualityBenchmarks

The Evaluation Problem

You built a RAG system. It retrieves documents. It generates answers. But how do you know if it is actually good?

Most teams measure retrieval precision and call it a day. But retrieval is only half the story. A RAG system can retrieve perfect documents and still generate terrible answers.

We learned this the hard way when our "high-precision" RAG system started confidently making up facts that were nowhere in the retrieved context.

•••

The RAG Evaluation Framework

We evaluate RAG systems across four dimensions:

DimensionWhat It MeasuresKey Metrics
Retrieval QualityAre we finding the right documents?Precision, Recall, MRR, NDCG
Context RelevanceIs the context useful for answering?Context Precision, Context Recall
FaithfulnessDoes the answer stick to the context?Hallucination Rate, Attribution Score
Answer QualityIs the answer actually correct and helpful?Correctness, Completeness, Coherence
•••

Dimension 1: Retrieval Quality

The foundation. If retrieval fails, everything else fails.

Standard Metrics

These are well-known but worth implementing correctly:

MetricFormulaWhat It Tells You
Precision@KRelevant in top K / KQuality of top results
Recall@KRelevant in top K / Total relevantCoverage of relevant docs
MRR1 / Rank of first relevantHow quickly you find something relevant
NDCGNormalized discounted cumulative gainRanking quality with graded relevance

Implementation

Our retrieval evaluator:

MetricOur ScoreIndustry Benchmark
Precision@50.820.70-0.85
Recall@100.890.75-0.90
MRR0.790.65-0.80
NDCG@100.840.70-0.85
•••

Dimension 2: Context Relevance

Retrieved documents might match the query but not help answer it.

Context Precision

What fraction of retrieved context is actually useful?

We found that 23% of our retrieved chunks were topically related but did not contain information needed to answer the question. High retrieval precision, low context precision.

Context Recall

Does the retrieved context contain all the information needed to fully answer the question?

This requires ground-truth annotations of what information should be present.

•••

Dimension 3: Faithfulness (The Hallucination Problem)

This is where most RAG systems fail silently. The model generates fluent, confident text that contradicts or extends beyond the context.

Types of Unfaithfulness

TypeDescriptionExample
ContradictionAnswer contradicts contextContext: "Released in 2023" Answer: "Released in 2022"
FabricationAnswer adds unsupported factsContext mentions X, answer adds detail Y not in context
ExtrapolationAnswer extends beyond contextContext has partial info, answer fills gaps with assumptions

Measuring Faithfulness

We use an LLM-as-judge approach with careful prompting:

Our prompt template for faithfulness evaluation asks the evaluator to check if every claim in the answer is supported by the context, identify any claims not in the context, and check for contradictions.

Faithfulness Results

CategoryFaithfulness ScoreNotes
Factual queries94%High faithfulness
Analytical queries82%More extrapolation
Comparison queries78%Often adds unsupported comparisons
Creative queries65%Highest hallucination risk
We added specific prompting for comparison and creative queries to improve faithfulness.

•••

Dimension 4: Answer Quality

Even faithful answers can be unhelpful. We evaluate three aspects:

Correctness

Does the answer correctly convey the information from the context?

This catches cases where the model misinterprets correct context.

Completeness

Does the answer address all aspects of the question?

We found our system often answered the first part of multi-part questions and ignored the rest.

Coherence

Is the answer well-structured and easy to understand?

A correct, complete answer can still be confusing if poorly organized.

Quality Rubric

ScoreCorrectnessCompletenessCoherence
5Fully correctAll aspects addressedClear and well-organized
4Minor errorsMost aspects addressedGenerally clear
3Some errorsHalf addressedSomewhat confusing
2Significant errorsFew aspects addressedHard to follow
1Mostly incorrectQuestion not addressedIncoherent
•••

Automated Evaluation Pipeline

Manual evaluation does not scale. Here is our automated pipeline:

The pipeline runs on every RAG change with a test set of 500 queries with ground-truth answers. It evaluates all four dimensions and compares against baseline. Changes that regress any metric by more than 2% are flagged for review.

Continuous Monitoring

In production, we sample 1% of queries for evaluation and track metrics over time, alerting on metric degradation.

•••

Building Your Evaluation Dataset

The hardest part of RAG evaluation is creating good test data.

Dataset Requirements

RequirementWhy It Matters
Representative queriesCover real usage patterns
Ground-truth answersKnow what correct looks like
Relevance judgmentsKnow which docs should be retrieved
Edge casesTest failure modes

Our Dataset Composition

Category% of DatasetExamples
Simple factual30%"What is the API rate limit?"
Multi-hop20%"How does X compare to Y?"
Analytical15%"Why did we choose this approach?"
Temporal10%"What changed in version 2.0?"
Negative10%Questions with no answer in corpus
Adversarial15%Edge cases, ambiguous queries

Creating Ground Truth

For each query, we annotate:

  • Relevant documents (with relevance grades 0-3)
  • Ideal answer (written by domain expert)
  • Key facts that must be present
  • Facts that must NOT be hallucinated
•••

Key Metrics Dashboard

What we track daily:

MetricTargetCurrentTrend
Retrieval Precision@5>0.800.82Stable
Context Relevance>0.750.77Improving
Faithfulness>0.900.88Watch
Answer Correctness>0.850.86Stable
Answer Completeness>0.800.79Improving
•••

Lessons Learned

  1. 1Retrieval metrics are necessary but not sufficient - Good retrieval does not guarantee good answers.
  1. 2Faithfulness is your biggest risk - Users trust your system. Hallucinations destroy that trust.
  1. 3Automate evaluation early - Manual evaluation does not scale. Build the pipeline before you need it.
  1. 4Test negative cases - Knowing when NOT to answer is as important as answering correctly.
  1. 5Track metrics over time - Point-in-time evaluation misses degradation.
  1. 6Human evaluation for calibration - Periodically validate automated metrics against human judgment.

RAG evaluation is not glamorous, but it is the difference between a demo and a production system. Measure what matters, catch problems early, and iterate continuously.

Found this helpful?

Share it with others who might benefit

TweetShare

Related articles