Home / Blogs & Insights / How to Evaluate RAG Systems for Retrieval Quality, Faithfulness, and Citation Accuracy

How to Evaluate RAG Systems for Retrieval Quality, Faithfulness, and Citation Accuracy

RAG system evaluation dashboard showing retrieval quality, groundedness, faithfulness, answer relevance, score trends, and evaluation

Table of Contents

RAG evaluation matters because a retrieval-augmented generation system can sound completely convincing and still be wrong. The model writes in clean paragraphs, it cites something that looks like a source, and nobody can tell from the output alone whether the retriever pulled the right document or whether the generator invented the number in the third sentence.

So teams shipping RAG into legal review, claims processing, clinical support and internal knowledge search keep hitting the same wall. The demo passed, production did not, and the dashboard still shows a healthy score. Evidently the one number they tracked was never the one that broke.

This RAG evaluation guide stays on measurement: what to score, how to score it, and what each number is allowed to mean. If you are still deciding how evaluation, gating and ownership fit together across a programme, start with our RAG evaluation framework and treat this piece as the scoring layer underneath it.

RAG evaluation scorecard covering retrieval quality, faithfulness and citation accuracy as three separate measurements

Before the detail, here is the shape of the problem any RAG evaluation has to solve. A pipeline fails in three different places, and each place needs a measurement of its own.

The Same System, Two Very Different Numbers

One legal research assistant, three weeks after launch. Its generation scores look healthy, and one answer in six still misses a relevant statute.

RETRIEVAL STAGE 0.62

Context recall. The retriever surfaced one of two required statutes, so the evidence for the second never reached the model at all.

GENERATION STAGE 0.91

Faithfulness on that same system. The answer stayed inside the evidence it was given, which is exactly why nobody noticed anything was missing.

3Failure zones, each needing its own measurement
200Annotated questions in a golden set that actually works
80%Minimum judge-to-human agreement before quoting a score

01The short answer

RAG Evaluation Starts With Three Separate Zones

A RAG evaluation run answers three questions in order. Context recall tells you whether the evidence arrived. Faithfulness tells you whether the answer stayed inside it. Citation precision tells you whether the reference under each sentence actually supports it.

Zones 1 and 3

Evidence And Attribution

Zone 1 sits in the retriever. Zone 3 sits between the finished answer and the source it points at. Both are invisible in the text itself.

  • The required chunk never reached the model
  • The citation points near the answer, not at it
  • Neither produces an error message
Zone 2

Faithfulness To The Evidence

The evidence arrived and the model wrote past it anyway. This is the zone most teams measure, and the one that stays green while the others fail.

  • Claims the retrieved context does not entail
  • Stylistically identical to grounded claims
  • Moves on prompt and model version changes
Worth pinning down first

A blended accuracy number is worse than useless in RAG evaluation, because it moves for reasons you cannot trace back to a component.

Splitting the retriever from the generator is not a new idea either. The original RAG paper treated them as two learned components rather than one black box, and evaluation has to follow that seam.

02Why one number fails

No Single RAG Evaluation Score Covers All Three Zones

This is the whole problem in one grid. Read across a row to see what that score can and cannot see.

Coverage of each score across the four failure modes
ScoreMissed evidenceZone 1Fabricated claimsZone 2Wrong citationZone 3Off-topic answerEnd to end
Context recall
Context precision
Faithfulness
Answer relevance
Citation precision

catches it reliably catches it sometimes blind to it

Every column needs at least one filled square, yet no single row provides them. That is why a dashboard built on one headline number moves late, and moves for reasons nobody can attribute.

Retrieval audit

Not Sure Where Your Retrieval Is Losing Evidence?

Send us your corpus profile, your question mix and your current numbers. Our engineers audit chunking, embeddings and reranking against a real golden set, then hand you the scores and the fix list.

Book a retrieval audit

03Interactive

RAG Evaluation Calculator For Your Release Gates

Move the sliders to model a RAG evaluation run of your own. The calculator compares your three scores against the release floor for the risk tier you pick, then reports the weakest zone and whether the system would ship.

Check Your Scores Against A Release Floor

Planning thresholds set by the cost of a wrong answer in each deployment context.

Your run
Result
Blended average, the dashboard number0.90
Weakest zone, the number that decides0.86
Floor for this tier0.90 / 0.95 / 0.95
Zones below floor2
Hold Context recall sits below the floor for this tier.

The floors are the same ones in the threshold table further down. Notice how often a blended average clears a gate that at least one zone fails.

04Zone 1 of 3

Zone 1: Measuring Retrieval Quality

Retrieval quality is where RAG evaluation begins, and the retriever fills a fixed number of slots. Everything that matters shows up in which slots got filled with what.

Take one query against a contract corpus, a top-k of four, and three chunks that genuinely bear on the answer. The diagram below scores that single retrieval three ways, and the three numbers disagree sharply.

Five ranked retrieval slots for one query, two relevant, two noise, one required amendment never returned
A perfect rank score and a failed answer, from the same retrieval.

The highest of those three numbers is the one that lies. Rank-based scoring rewards a retriever for getting something useful into position one, while staying silent about the superseding document it never surfaced at all.

What Each Score Is Actually Counting

Retrieval scores, what each one measures and how much weight it deserves
ScoreFormulaDrops whenWeight
Recall at kRelevant chunks retrieved, over all relevant chunks that existThe retriever cannot find the evidence at allWatch first
Precision at kRelevant chunks retrieved, over all chunks retrievedNoise crowds the context window and raises costSofter failure
Mean reciprocal rankOne, over the rank of the first relevant chunkThe first hit lands low, and never otherwiseReads high

Two More Scores Worth Adding

NDCG at k accounts for graded relevance and rank order, which matters when chunks are partially useful. Context recall, the variant defined in the RAGAS paper, checks whether the retrieved context contains everything the reference answer needed. Overall it remains the best early-warning signal for retrieval regressions.

When recall drops, the fixes live in chunking strategy, embedding model choice, hybrid sparse-plus-dense retrieval, query rewriting and reranking. If you would rather label relevance automatically than by hand, eRAG feeds each retrieved document to the model individually and uses downstream performance as that document's relevance label.

05Zone 2 of 3

Zone 2: Measuring Faithfulness

The second stage of RAG evaluation scores faithfulness. Break the answer into claims and check each one against the retrieved evidence. Here is one answer, scored claim by claim.

One generated answer, four atomic claims

The notice period is 30 days.

Supported, chunk 1

Notice must be served in writing.

Supported, chunk 3

Either party may waive the notice period by mutual consent.

No source

Notice takes effect on receipt.

Supported, chunk 3

Three of four claims hold up. The model invented the waiver clause. It reads plausibly, yet it appears nowhere in the retrieved context.

0.75

Read that answer as a paragraph and nothing looks wrong. That is precisely the point. Fabricated claims are stylistically identical to grounded ones, so nobody catches them by reading. Someone has to score them.

Three Generation Scores, Three Different Jobs

What Each One Catches

  • Faithfulness is the proportion of claims the context entails, so it catches outright fabrication
  • Groundedness is a stricter sentence-level variant, so it catches the drift claim-level scoring smooths over
  • Answer relevance checks whether the response addresses the question that was actually asked

Why All Three Belong In The Run

  • Faithfulness alone will pass a hallucination-free answer to the wrong question
  • Answer relevance alone will pass a beautifully targeted fabrication
  • Groundedness alone is expensive to annotate at volume
  • Together they close the generation stage without gaps

ARES shows how far this can be automated. It trains lightweight judges on synthetic data, then corrects their output against a small human-labelled set, which is a useful pattern once manual scoring stops scaling.

Faithfulness, groundedness and answer relevance compared as three separate generation-stage checks
Three generation-stage scores, three distinct failure modes.

06Zone 3 of 3

Zone 3: Measuring Citation Accuracy

Citation accuracy is the part of RAG evaluation reviewers assume is already handled. A citation is correct only when the span it points to supports that exact sentence. Not the document. Not the topic. The sentence.

  • Citation precision asks what share of the citations genuinely support the sentence they sit under.
  • Citation recall asks what share of the sentences that required a citation actually got one.
  • Attribution correctness asks whether each claim maps to the source it came from when an answer merges several. Systems that cite everything on every sentence score well on recall and badly here.

These definitions are not improvised. The ALCE benchmark formalised citation precision and recall at sentence level, and showed that models citing fluently still leave a large share of statements unsupported.

An answer sentence with citation marker one linked to the highlighted supporting clause inside the source document
Attribution is a sentence-to-span relationship, not a document reference.

Most Of This Is Decided Before Evaluation Begins

Systems that cite the chunk identifiers they were actually shown, rather than reconstructing references from memory, score dramatically better.

So carry chunk metadata such as title, section, page and effective date through the prompt and back into the response, then validate the returned identifiers programmatically. Attribution then becomes lookup instead of generation.

07Symptom to fix

Your Score Dropped. Now What?

Find the number that moved, read what it means, then work the fixes in the order given.

Diagnostic path from a dropped score to the fixes worth trying first
Score that droppedWhat the drop meansFixes in order
Context recallRequired evidence is not reaching the model at all, so no prompt change can rescue the answer.1. Review chunk size and overlap. 2. Add hybrid sparse and dense retrieval. 3. Raise top-k, then rerank. 4. Add query rewriting for vague inputs.
Context precisionNoise is crowding the window, which dilutes attention and raises cost before it hurts accuracy.1. Add a reranker. 2. Lower top-k. 3. Tighten chunk boundaries to whole clauses. 4. Filter by metadata such as document type and date.
FaithfulnessThe evidence arrived and the model wrote past it, usually after a prompt, context length or model version change.1. Re-check the model version. 2. Tighten the grounding instruction. 3. Shorten the context. 4. Add an explicit abstention path.
Citation precisionReferences are being reconstructed rather than reported, so they point near the answer instead of at it.1. Pass explicit chunk identifiers. 2. Carry document metadata through the prompt. 3. Fix chunk boundaries. 4. Validate returned identifiers in code.
Answer relevanceThe system is answering a nearby question, often because rewriting changed the intent of the query.1. Inspect rewritten queries. 2. Review the system prompt. 3. Segment scores by question type. 4. Read the failing traces individually.
The rule above the table

If two rows move together and nothing shipped, suspect the corpus rather than the code.

The usual cause is a re-index, a bulk document update, or a silent provider-side model change. Check all three before touching the retriever.

SDLC Corp engineering session on RAG evaluation harnesses and release gates
Build and harness

Shipping A RAG System You Need To Defend?

Our AI teams build retrieval pipelines with evaluation harnesses, citation grounding and release gates wired in from the first sprint, rather than bolted on after the first incident.

Talk to an AI solution architect

08Ground truth

What A Good RAG Evaluation Set Is Made Of

Around 200 expert-annotated questions is enough, but only if the mix is right. Most sets sit entirely in the first band, which is why they report a system healthier than it is.

Recommended composition of a 200-question golden set
Question bandShareWhy it belongsStatus
Single-hop, well-formed35%One document answers it. Necessary, though it proves almost nothing on its own.Baseline
Multi-hop25%Two or more documents required. Where recall failures surface, and where most complaints originate.Highest value
Post-update questions15%The answer changed after a policy revision. Catches systems quoting superseded documents confidently.Often missing
Adversarial phrasing15%Ambiguous wording, unusual synonyms, and questions carrying a false premise inside them.Often missing
Unanswerable10%Nothing in the corpus answers these. Refusal is the only correct behaviour.Rarely tested

Annotate Both Stages, Or Retrieval Stays Unmeasurable

For every question, record the reference answer and the chunk identifiers that genuinely support it. Without that second field, nothing can compute a retrieval score at all. Consequently many teams end up with generation-only dashboards by accident rather than by choice.

Subject matter experts should do this work, because it is the highest-leverage hour anyone on the project will spend. Finally, freeze a holdout slice that nobody uses for prompt tuning, then version the whole set alongside the corpus.

Composition of a 200-question golden set: 35 percent single-hop, 25 percent multi-hop, 15 percent post-update, 15 percent adversarial and 10 percent unanswerable
Two thirds of a useful evaluation set should be deliberately hard.

09Tooling

Which Framework Runs Your RAG Evaluation

RAG evaluation tooling has matured. Pick by what you want it to do, because the harness around it is where the real work sits.

Pre-launch

RAGAS And DeepEval

RAGAS is the reference implementation of faithfulness, answer relevance, context precision and context recall, with minimal setup.

  • Pick RAGAS for a first credible baseline in an afternoon
  • DeepEval adds pytest-style assertions and component scoring
  • Pick DeepEval when evaluation should fail a build
Post-launch

TruLens, Phoenix And Opik

TruLens covers context relevance, groundedness and answer relevance with per-record tracing.

  • Pick TruLens to debug one specific bad answer
  • Phoenix and Opik capture traces over live traffic
  • Pick those for monitoring and drift, not for gating

Whichever You Pick, Calibrate The Judge Behind It

An LLM produces almost every number above, since n-gram measures cannot recognise a correct answer phrased differently from the reference. An uncalibrated judge is therefore an unmeasured component sitting in the middle of your measurement system.

01

Have humans score 50 to 100 examples, then measure judge-to-human agreement. Below roughly 80 percent, fix the judge before anyone quotes its output.

02

Use binary or three-point scales. Asking a model for a score out of ten produces confident-looking noise clustered at 7 and 8.

03

Put the rubric and two or three worked examples in the judge prompt, because judges drift badly without anchors.

04

Watch for position and verbosity bias. Longer answers win, and options presented first win, so shuffle and re-run to detect it.

05

Pin the judge model version. A silent provider-side update moves every number you hold, and the regression will look like a system change.

10Release gates

What Good Enough Means Depends On The Cost Of Being Wrong

There is no universal RAG evaluation threshold. Find your column and read down it. These are the same floors the calculator uses.

Suggested release thresholds, five scores across three risk tiers
ScoreInternal searcha wrong answer costs minutesCustomer facinga wrong answer costs trustRegulateda wrong answer costs a filing
Context recall0.750.900.97
Context precision0.600.750.85
Faithfulness0.850.950.99
Answer relevance0.800.850.92
Citation precision0.800.950.99

Add one more gate beside these five: correct refusal on unanswerable questions, at roughly 0.60 internally, 0.80 for customer-facing systems and 0.95 in regulated work. It is the only gate that measures what the system does when the corpus has nothing to offer.

Two things follow. A threshold is a business decision rather than a technical one, so whoever owns the consequence of a wrong answer should set it. And prompt tuning alone will never reach the regulated column, because at those levels you need human review routing for anything scoring below the floor.

11Cadence

Where Each RAG Evaluation Check Runs

A RAG evaluation done once, a week before launch, has a shelf life of about a week. Documents change, indexes rebuild and providers update models, none of which touches your code.

Timeline of evaluation gates at pull request, staging deploy, release and continuous production monitoring
A smoke set on every pull request, the full golden set on staging, sampled traces continuously.

Offline sets cannot anticipate what real users will ask. So in production, score a sample of live traces on the same measures, then segment by question type, by document source and by tenant. Aggregate numbers hide the failing segment, and the failing segment produces the complaints.

Meanwhile every user correction, thumbs-down and escalation is a labelled example waiting for collection. Feeding those back turns evaluation into a system that improves rather than a report that gets archived.

12Green boards

What The Dashboard Shows Versus What Is Happening

Five failures that never produce an error message. Instead, they produce a healthy-looking board.

Reported numbers, the reality underneath, and the correction
Dashboard saysActually happeningCorrection
Mean faithfulness 0.93, stable for six weeksScanned PDF answers score 0.41, while everything else carries the averageReport distributions and worst segments, not means
Faithfulness 0.95, citation precision 0.96, every gate greenThe system is faithfully citing a policy that expired last quarterGive corpus freshness a check of its own
Scores improved every sprint for two monthsPrompts were tuned against the full eval set, so the numbers measure memorisationHold a slice back and touch it only at release
Citations appear on every answer and reviewers trust itNobody scores the citations, so they drift while still looking authoritativePut citation precision on the release scorecard
Answer relevance 0.89, the system answers everythingIt also answers questions the corpus cannot supportAdd unanswerable cases and score refusal

13Summary

The Short Version

Six RAG evaluation rules to carry into your next planning session.

01

Three failure zones need three separate measurements, since nothing covers more than one column of that grid.

02

Context recall warns you first about missing evidence, faithfulness about fabrication, citation precision about bad attribution.

03

A 200-question set only works if two thirds of it is deliberately hard: multi-hop, updated, adversarial and unanswerable.

04

Thresholds are a business decision, so set them against the cost of a wrong answer rather than today's numbers.

05

Calibrate the LLM judge against human labels, then pin its version.

06

Put the gates in CI and score sampled production traces, because the corpus and the model change without you.

14Getting started

Where To Start, And Where Our Teams Fit

First, pull thirty real questions from your logs, making sure a third are multi-hop and a few are unanswerable. Have a subject matter expert annotate the supporting chunks and reference answers, then run RAGAS or DeepEval over them. The first numbers will be uncomfortable, and they will point straight at whichever zone needs the work.

From there the loop is simple. Expand the set as production surfaces new failure shapes, calibrate the judge, set thresholds against the cost of a wrong answer, then put the whole thing in CI so RAG evaluation runs whether or not anyone remembers to.

How Our Teams Help

When a build is the right call, retrieval architecture, chunking and reranking are delivered alongside the RAG evaluation harness through our AI development services.

Citation-grounded answering over sensitive corpora runs as private large language model development, while risk tiers, release gates and review routing are agreed with the business through our AI consulting practice.

Production tracing, drift dashboards and feedback capture sit inside AI and ML implementation for document-heavy workflows.

Evaluation plan

Bring Your Corpus, We Will Bring The Scorecard

Share your question mix, your document sources and your compliance constraints. You will receive a mapped golden set, the measures that fit your pipeline, and release thresholds set against the cost of a wrong answer in your domain.

Request your evaluation plan

15Common questions

Frequently Asked Questions

What Is The Difference Between Faithfulness And Answer Correctness?

Faithfulness checks whether the answer stays inside the retrieved context, whereas answer correctness checks whether the answer is true.

An answer can be perfectly faithful to a context that was itself the wrong document. Consequently you read retrieval scores alongside faithfulness rather than in place of it.

How Many Examples Does A RAG Evaluation Dataset Need?

Between 150 and 300 carefully annotated examples is enough for most production systems, provided the mix includes multi-hop questions, updated documents, unanswerable questions and adversarial phrasings.

Annotation quality matters far more than volume, since thousands of auto-generated questions will report a system healthier than it is.

Can BLEU Or ROUGE Be Used To Evaluate RAG Output?

Not on their own. Both compare surface n-grams against a reference, so a correct answer worded differently loses points while a fluent fabrication reusing reference vocabulary gains them.

LLM-as-a-judge scoring against a rubric handles semantic equivalence far better, as long as the judge itself matches human labels.

How Often Should A RAG System Be Re-Evaluated?

A fast smoke set should run on every pull request, the full golden set on every staging deploy, and sampled production traces continuously.

Any corpus re-index, embedding model change or provider model update should also trigger a full run, because all three shift behaviour without a line of your code changing.

What Causes Low Citation Precision Even When Faithfulness Is High?

Usually the model is reconstructing references rather than reporting the chunk identifiers it received. Chunk boundaries that cut through a clause, missing document metadata, and prompts that request citations without supplying stable identifiers all contribute.

Passing explicit chunk identifiers through the prompt, then validating the returned ones programmatically, resolves most of it.

Should Retrieval Be Evaluated Separately If End-To-End Answers Look Fine?

Yes. Answers frequently look fine while recall is degrading, because a capable generator writes coherently from partial evidence.

By the time end-to-end quality visibly drops, the retrieval problem has usually been present for weeks.

Which Score Should A Team Track First If They Can Only Track One?

Context recall. Since no downstream component can recover a missing chunk, recall failures are both the most damaging and the most invisible.

Faithfulness should follow immediately after, because together they cover the two stages of the pipeline.

Do RAG Evaluation Measures Work For Multilingual Or Multimodal Systems?

The retrieval measures transfer directly, since they only depend on relevance labels. The generation measures need a judge that performs reliably in the target language, so measure agreement with human labels separately per language.

Multimodal systems add a further failure point, because images converted to text by a vision model can introduce errors before the generator ever sees them.

ABOUT THE AUTHOR

Scott edwards

Scott Edwards is an ERP expert with 11 years of experience helping organizations improve how they work. At SDLC Corp, he designs and implements ERP systems that streamline operations, reduce costs, and support better decision-making. With deep knowledge across industries, Scott focuses on making complex systems simple and effective, ensuring each solution fits the business’s real needs.
PLAN YOUR SOLUTION

More Insights
You Might Find Useful

Explore expert perspectives, practical strategies, and real-world solutions related to this topic.

ERP testing lifecycle showing test strategy, UAT, regression testing, automation, quality assurance, and go-live readiness.

ERP Testing Guide: From Strategy and UAT to Go-Live Readiness

ERP testing checks whether your ERP can support real business

HCM migration checklist showing legacy HCM moving to a new system through data migration, payroll validation, integrations, testing, and user adoption.

HCM Migration Checklist: A Complete Guide

Human Capital Management (HCM) migration moves critical HR, payroll, and

Big Bang vs phased ERP implementation comparison to determine which rollout strategy is better for your business.

Big Bang vs Phased ERP Implementation: Which Is Best?

ERP Migration StrategyChoosing an ERP rollout model affects risk, cost,

Let’s Talk About Your Product

Get expert guidance on scope, architecture, timelines, and delivery approach so you can move forward with confidence.

What happens next?