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 vs Relevance

Faithfulness asks if an answer sticks to its source, relevance asks if it answers the question, and why a RAG bot needs both checks, explained for your AI interview.

In short

Faithfulness asks whether the answer's claims come from the text the model was given. Relevance asks whether the answer addresses the question that was asked. An answer can pass one and fail the other, so a good test checks both.

10 min readIntermediateCommon · 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.

Faithfulness and relevance are two different checks on one answer. Faithfulness asks whether every claim comes from the text the model was given. Relevance asks whether the answer actually answers the question. A bot can be faithful and still useless, because it quotes true notes about the wrong card. It can also be relevant and wrong, by inventing a fee. So I score both, separately.

What are faithfulness and relevance, in plain words?

Faithfulness is checked against the source. The answer is faithful when its claims can be found in the text the app gave the model. A claim can be true in real life and still be unfaithful, if the notes never say it. RAG (retrieval-augmented generation, where the app searches your documents and the model writes from what it found) depends on this.

Relevance is about the question. The answer is relevant when it addresses what the user asked. A reply can be neat, accurate about some other question, and still leave the customer with nothing useful.

People also say relevance for the notes the search returns. That is retrieval relevance, and it is a separate check from answer relevance. Keep the two apart in your head and in your tests.

Picture a claims adjuster writing to a policyholder from the policy file. Faithful means every line is in the file. Relevant means the letter answers the policyholder's own question. A letter can quote the file word for word and still answer the wrong question.

Key words

Faithfulness
Every claim in the answer is supported by the text the model was given.
Relevance
The answer addresses the question that was asked.
LLM judge
A language model that grades an answer against a rule, such as whether it is faithful.
Claim
One statement inside the answer, checked on its own.
Retrieval
The search step that picks which notes the model sees.

Why does an answer pass one check and fail the other?

A reply can fail in two different ways. Here is the same bank example in three replies, from a made-up card assistant. The note it finds lists two fees: Silver cards pay a 2.9% fee on purchases abroad, and Gold cards pay no fee on purchases abroad. The customer asks: "Do I pay a fee on purchases abroad with my Silver card?"

  • Faithful, not relevant

    True to the note, wrong card

    The bot repeats the Gold line to a Silver customer. Every word is in the note, but the question about Silver goes unanswered.

  • Relevant, not faithful

    On topic, but invented

    The bot says Silver cards pay no fee abroad. It sounds helpful, but the note says the opposite. This is the dangerous one, because the customer trusts it.

  • Both

    Honest and on point

    The bot says Silver cards pay a 2.9% fee on purchases abroad, and that Gold cards pay none. Every claim is in the note, and the question gets a direct answer.

The middle case is the one to watch. It looks like a good answer, and a customer would take it at face value. A test that checks only relevance would pass it.

Where each check looks

The question

what the customer asked

Retrieved notes

the text the search found

Model's answer

what the customer reads

Check 1: faithful

Claims in the notes?

each claim traced to the notes

Check 2: relevant

Answers the question?

answer compared with the question

Trusted answer

passes both checks

  1. 1The question goes to the model.
  2. 2The retrieved notes go to the model, and check 1 reads them too.
  3. 3Check 1 reads each claim in the answer against the notes.
  4. 4Check 2 compares the answer with the question.
  5. 5A claim that passes check 1 moves on to the trusted end.
  6. 6An answer that passes check 2 moves on to the trusted end.
One answer goes through two separate checks. The first reads its claims against the notes. The second compares it with the question. Only a reply that passes both reaches the customer as a finished answer.

Notice that the second check never looks at the notes. Relevance is about the question. RAGAS makes the same split: its relevance check does not take factuality into account, but it does penalise replies that are incomplete or that pad the answer with extra information.

How do you measure each one?

The RAGAS paper, first posted in September 2023, gives both checks a definition you can say in an interview. It calls an answer faithful when its claims can be inferred from the context, and relevant when it addresses the question directly. Microsoft's RAG evaluators use the same two ideas. Its first check is called groundedness, and its second is relevance.

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

    RAGAS paper (arXiv 2309.15217, v2, revised 2025)

  • “Groundedness - Is the response grounded in the provided context without fabrication?”

    Microsoft Learn, RAG evaluators

  • “Relevance - Does the response accurately address the user's query?”

    Microsoft Learn, RAG evaluators

  1. 1

    Split the answer into claims

    The RAGAS method has an LLM pull out the statements in the answer, then checks whether each one can be inferred from the notes. The faithfulness score divides the supported statements by the total number of statements.

  2. 2

    Compare the answer with the question

    Give a judge the question and the answer, and ask whether the answer addresses it. RAGAS writes questions from the answer, turns them and the real question into embeddings (lists of numbers that capture meaning), and scores how alike they are with cosine similarity. The notes are not needed for this check.

  3. 3

    Score retrieval on its own

    Microsoft scores retrieval separately, asking how relevant the retrieved pieces of text (chunks, the short passages the search returns) are to the query. If the search fails, fix the search before the prompt.

  4. 4

    Check the judge by hand

    An LLM judge is useful but not perfect. Read a sample of replies beside their notes and question, and compare your verdicts with the judge's.

Tip

Asked how to measure them? Name the inputs each check needs. Faithfulness needs the notes and the answer. Relevance needs the question and the answer. Then say you score both, because one can pass while the other fails.

What does the interviewer want to hear?

A strong answer covers

  • Faithfulness: is each claim supported by the retrieved text?
  • Relevance: does the answer address the question that was asked?
  • A case where one check passes and the other fails.
  • Retrieval quality is a separate check from answer quality.
  • The inputs each check needs: notes for one, question for the other.
  • An LLM judge, plus a human sample to check the judge.

Common traps

  • Trap"Faithful means the answer is true."

    BetterFaithful means supported by the notes you gave the model. A true claim the notes don't contain is still unfaithful.

  • Trap"A relevant answer is a correct answer."

    BetterRelevance is about the question. An on-topic answer can still be invented, so check faithfulness too.

  • Trap"Faithfulness and relevance are the same thing."

    BetterThey are two checks. Each can fail while the other passes, which is why you run both.

Can you spot the failure?

Spot the failure

The note says Silver cards pay a 2.9% fee on purchases abroad, and Gold cards pay none. A customer asks about a Silver card. Which reply fails faithfulness?

Quick check

A bank's assistant says a Silver card has no fee abroad, but the retrieved note says it pays 2.9%. Which check catches it?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q132Generation metrics: faithfulness, answer relevance?10 min
  2. Q133What are common RAG failure modes?11 min
  3. Q249What is LLM-as-a-judge?12 min
  4. Q251How do you calibrate a judge against humans?11 min
  5. Q256Capability evals vs regression evals?10 min
  6. Q259Which production metrics matter for a chatbot?10 min

Learn it in depth

Last updated on 26 November 2026

Building a RAG bot that has to get answers right?

I design and build AI products and agents, including retrieval (RAG) systems, and test them with checks like these. Book a short call and tell me what yours needs to do.