# 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.

AI and LLM interview question Q254, Evaluation and observability. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/faithfulness-vs-relevance

## Say it in 30 seconds

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.

## Say it in 2 minutes

Imagine a bank's card assistant. It reads the fee notes it finds and writes a reply for the customer. Faithfulness asks whether each claim in that reply can be found in the notes. Relevance asks whether the reply answers what the customer actually asked. These are different questions, and a reply can fail either one on its own.

Here is the trap. The notes list two fees: Silver cards pay a fee abroad, and Gold cards pay none. A customer asks about the fee on a Silver card. If the bot repeats the Gold line, every word is in the notes, so it is faithful, but it answers about the wrong card. If the bot says Silver cards pay no fee too, it answers the right card, but it invents that line, so it isn't faithful. Only a reply that gives the Silver fee from the notes passes both.

To test it, I check faithfulness by breaking the reply into claims and tracing each one back to the retrieved text. I check relevance by comparing the reply with the question. The RAGAS paper, a research framework for RAG evaluation, uses a large language model (LLM, the AI model that writes the text) for both: it pulls out statements for faithfulness, and it writes questions from the answer and compares them with the real one using cosine similarity, a score for how alike two pieces of text are.

I also keep retrieval quality apart from answer quality. If the search brings back the wrong notes, a faithful reply will still miss the question. So when a reply fails, I find out which part broke before I change anything.

## 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.

- **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.

*Diagram, Where each check looks: 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.*
1. The question goes to the model.
2. The retrieved notes go to the model, and check 1 reads them too.
3. Check 1 reads each claim in the answer against the notes.
4. Check 2 compares the answer with the question.
5. A claim that passes check 1 moves on to the trusted end.
6. An answer that passes check 2 moves on to the trusted end.

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. **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. **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. **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. **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." Better: Faithful 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." Better: Relevance is about the question. An on-topic answer can still be invented, so check faithfulness too.
- Trap: "Faithfulness and relevance are the same thing." Better: They 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?

A. Gold cards pay no fee on purchases abroad.
B. Silver cards pay no fee on purchases abroad too.
C. Silver cards pay a 2.9% fee on purchases abroad.
D. Gold cards pay no fee abroad, and Silver cards pay 2.9%.

**Answer:** B. The note says Silver cards pay 2.9%, so the claim that they pay nothing is invented and fails faithfulness. The first reply is faithful but answers about Gold, which is a relevance failure.

**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?

A. Relevance, because the reply is on topic
B. Faithfulness, because the claim contradicts the notes
C. Latency, because the reply came back slowly
D. Temperature, because the model was too creative

**Answer:** B. Faithfulness checks each claim against the notes, and this claim contradicts them. Relevance would pass, because the reply does answer the question.

## Can you answer these from memory?

**Flash cards**

- **What is faithfulness?** Every claim in the answer is supported by the text the model was given.
- **What is relevance?** The answer addresses the question that was asked.
- **Can an answer be faithful but not relevant?** Yes. It can repeat true notes about the wrong card or question.
- **Can it be relevant but not faithful?** Yes. It can answer the question with a claim the notes never make.
- **Which check needs the notes?** Faithfulness. Relevance compares the answer with the question.
- **How does RAGAS check faithfulness?** An LLM pulls out the statements, then checks each against the context.

## Likely follow-up questions

- Q132 Generation metrics: faithfulness, answer relevance? https://designervenkat.online/interview/ai/rag-generation-metrics-faithfulness-answer-relevance
- Q133 What are common RAG failure modes? https://designervenkat.online/interview/ai/common-rag-failure-modes
- Q249 What is LLM-as-a-judge? https://designervenkat.online/interview/ai/what-is-llm-as-a-judge
- Q251 How do you calibrate a judge against humans? https://designervenkat.online/interview/ai/how-do-you-calibrate-a-judge-against-humans
- Q256 Capability evals vs regression evals? https://designervenkat.online/interview/ai/capability-evals-vs-regression-evals
- Q259 Which production metrics matter for a chatbot? https://designervenkat.online/interview/ai/production-metrics-for-a-chatbot

## Learn it in depth

- [Evaluation Metrics](https://designervenkat.online/learn/ai-engineering/evaluation-metrics)
- [A model as the judge](https://designervenkat.online/learn/ai-engineering/model-based-evals)
