esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

Faithfulness and Answer Relevance in RAG?

How RAG answers are scored for faithfulness and answer relevance, what each one misses, and how to explain both for your AI interview.

In short

Faithfulness checks that every claim in a RAG answer is supported by the retrieved text. Answer relevance checks that the answer addresses the question asked. Teams can score both with a judge model, then check that judge against people.

10 min readIntermediateVery common · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

RAG means the app searches documents first, then the model answers from what it found. I measure two things. Faithfulness asks whether every claim in the answer is supported by the retrieved text. Answer relevance asks whether the answer addresses what the user asked. A judge model can score both, and I check the judge against people before I trust the numbers.

What are faithfulness and answer relevance, in plain words?

A RAG app searches your documents first, then asks a language model to write the answer from the passages it found. Both steps can go wrong. This page is about the last one: the written answer.

Picture a new hire at a mid-size bank who answers calls from the policy binder on the desk. A good hire says only what the binder says. That is faithfulness. A good hire also answers the caller's actual question. That is answer relevance.

In a RAG app for a bank's card support, the retrieved passages are the binder, and the model's written reply is what the customer hears.

Key words

RAG
Retrieval-augmented generation: search your documents first, then answer from what was found.
Context
The passages the search returned and gave the model to read.
Faithfulness
Every claim in the answer can be backed by the context.
Answer relevance
The answer addresses what the user actually asked.
LLM judge
A second language model that grades an answer against a rule.

RAGAS, a framework from a 2023 paper, defines both scores so they can run without ground truth human annotations. The authors call it a framework for reference-free evaluation of RAG pipelines.

How is faithfulness measured?

Faithfulness is judged against the context only. An answer can be true in the real world and still score low if the passages do not back it up. RAGAS calls an answer faithful when the claims it makes can be inferred from the context.

  1. 1

    Split the answer into statements

    A model breaks the answer into short statements, so each one can be checked alone.

  2. 2

    Check each statement against the context

    A judge marks each statement as supported or not supported by the retrieved passages.

  3. 3

    Divide

    The score is the supported statements divided by all the statements.

Here is a worked example with made-up numbers. A customer asks about the Platinum card. The policy passage says the annual fee of $95 is waived in the first year. The bot's answer makes three claims. The fee is waived in year one: the policy backs it. After that it costs $95 a year: the policy backs that too. You get a waiver with $10,000 spent in a year: the policy says nothing like that, so the claim is not supported.

Two of three claims are backed, so the score is 0.67. The invented waiver rule is exactly the failure faithfulness exists to catch. Here is the same sum in plain Python, with the judge's verdicts typed in by hand:

Python
# A made-up judge's verdicts on one fee answer. A real judge is a language model; the counting is the same.
CLAIMS = [
    ("The annual fee is waived in the first year.", True),
    ("After that, the fee is $95 a year.", True),
    ("A waiver is granted if you spend $10,000 in a year.", False),
]

def faithfulness(claims):
    supported = sum(1 for _, ok in claims if ok)
    return supported / len(claims)

for text, ok in CLAIMS:
    print(("supported:     " if ok else "not in policy: ") + text)
print("faithfulness =", round(faithfulness(CLAIMS), 2))

Output

supported:     The annual fee is waived in the first year.
supported:     After that, the fee is $95 a year.
not in policy: A waiver is granted if you spend $10,000 in a year.
faithfulness = 0.67

How is answer relevance measured?

Answer relevance asks whether the answer addresses the question. RAGAS does this by asking a model to write questions based on the answer, then compares those questions with the user's real question. The comparison uses embeddings, which are lists of numbers that stand for meaning. The closer they are, the more relevant the answer.

The RAGAS paper says the check does not look at factuality, but it does penalise answers that are incomplete or contain redundant information. So an answer can be relevant and still wrong, which is why relevance and faithfulness are scored apart.

Worked example. A customer asks whether the Platinum fee can be waived after year one. The bot answers how to open a Platinum account. The text is fluent and faithful to the policy about accounts, yet its implied questions are about opening, not waivers, so the relevance score is low.

Tip

Definitions differ between vendors. Microsoft's relevance check also measures accuracy, while RAGAS leaves factuality out. Name the definition you use before you compare two scores.

Why measure both, and what do they miss?

  • Faithful, not relevant

    Accurate but off topic

    Every claim is backed, but the answer describes the wrong product. Relevance catches it.

  • Relevant, not faithful

    On topic but invented

    The answer addresses the question, then makes up a waiver rule. Faithfulness catches it.

  • Both pass

    Still check retrieval

    A faithful, relevant answer built on the wrong passage is still wrong. Test retrieval on its own.

Two checks on one answer

Retrieved policy

the only passages the bot may use

Model's answer

written from the policy passages

Customer question

what the customer actually asked

Faithfulness

Claims vs policy

is each claim backed by the policy?

Answer relevance

Answer vs question

does it address what was asked?

Two scores

reported together

  1. 1The bot writes its answer from the retrieved policy passages.
  2. 2Each claim in the answer is pulled out and tested against the policy.
  3. 3The customer's question is checked against what the answer covers.
  4. 4The answer is also set beside the question, to see how closely it fits.
  5. 5The share of claims the policy backs becomes the faithfulness score.
  6. 6How closely the answer fits the question becomes the relevance score.
One answer, two checks. Faithfulness compares the answer's claims with the retrieved policy. Relevance compares the answer with the customer's question. The two scores are reported together, so a fluent but wrong answer cannot hide behind one good number.
  • “Groundedness focuses on the precision aspect of the response. It doesn't contain content outside of the grounding context.”

    Microsoft, RAG evaluators

  • “does not take into account factuality, but penalises cases where the answer is incomplete or where it contains redundant information”

    RAGAS paper

  • “Combine metrics with human judgment to ensure you're answering the right questions”

    OpenAI, evaluation guide

Human judgement is the last check. OpenAI's evaluation guide warns against leaning on generic academic scores alone, and says to calibrate automated scoring with human feedback. So I grade a sample by hand and compare my grades with the judge's.

I report both scores for each question type, because one average can hide a weak topic. A bot can be strong on account questions and weak on fees, and only the split shows it.

What does the interviewer want to hear?

A strong answer covers

  • A plain definition of each: faithfulness is support from the context, relevance is addressing the question.
  • How faithfulness is scored: supported statements divided by all the statements.
  • Why the two can disagree, with a fluent but invented example.
  • That the judge is itself checked against people.
  • That retrieval is tested separately, so a bad search is not blamed on the model.
  • Honest limits: scores depend on the judge and the definition used.

Common traps

  • Trap"Faithfulness means the answer is true."

    BetterIt means every claim is backed by the retrieved context. A true claim the passages don't back still counts as unsupported.

  • Trap"BLEU will tell us the answer is good."

    BetterOpenAI's evaluation guide lists relying solely on academic metrics like BLEU as an anti-pattern. A RAG answer can read well and still invent a rule.

  • Trap"A high faithfulness score means the system works."

    BetterIt only means the answer sticks to the context. Check relevance and retrieval too.

Can you spot the weak score?

Spot the weak score

Before Monday's review, which result should you look at first?

Quick check

The bot quotes the right fee, but for the wrong card. Which score should drop?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q131Retrieval metrics: recall@k, MRR, nDCG?12 min
  2. Q133What are common RAG failure modes?11 min
  3. Q134How do you reduce hallucinations in RAG?13 min
  4. Q135How do you add citations?11 min
  5. Q138RAG vs long context: which to use?12 min

Learn it in depth

Last updated on 26 November 2026

Building a RAG assistant on your own documents?

Venkat designs and builds AI products and agents, including the UI and the system behind it. Book a short call and say what you need.