Answer relevancy measures whether the generated answer actually addresses the question asked. It is different from faithfulness, which checks the answer against the retrieved context: an answer can be faithful to the chunks and still miss the question, for example by describing the product in general when the question asked for a price. Answer relevancy is one of the standard RAG metrics, and it is the one to watch when the retriever is fine but the answers still feel unhelpful.
What you need
- A test question and the RAG answer to it
- The retrieved chunks, to separate a retrieval failure from a generation failure
- A rule for what counts as addressing the question
Step 1: Read the question and the answer side by side
Write down what the question actually asks for: a number, a date, a procedure, a yes or no. Then read the answer and check whether it delivers that specific thing.
Step 2: Separate retrieval from generation
If the chunks contain the answer but the reply misses it, the failure is in generation, not retrieval. If the chunks lack the answer, no generation fix will help.
Step 3: Score and record the failure type
Mark each answer as addressing the question, partly addressing it, or missing it, and note the failure type. A pattern of partly-addressing answers usually means the prompt does not ask the model to answer directly.
Worked example: synthetic answer relevancy check of 3 answers
The table below is a synthetic example. It shows the expected result of checking three answers; no answers were generated.
| Question | Answer | Relevancy |
|---|---|---|
| What is the refund window? | 30 days | Addresses it |
| What is the refund window? | Our refund policy covers many cases | Misses it |
| How do I reset my password? | Go to Settings, then Security, then Reset | Addresses it |
| How do I reset my password? | Passwords must be at least 8 characters | Misses it |
Expected result (UNTESTED). 2 of 4 answers address the question, and the other 2 are true but beside the point. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Answer relevancy is usually judged by an LLM call, so the judge can disagree with a human; spot-check its verdicts.
- An answer that refuses because the context lacks the answer is not irrelevant; it is the correct response to missing evidence.
- Relevancy says nothing about whether the claims are true; measure faithfulness separately.
- Short answers that directly answer the question score better than long answers that bury the answer.
