Your RAG system over internal docs has excellent retrieval scores (recall@5 = 0.91) but users complain the answers are wrong, vague or cite the wrong source. Diagnose the problem.
How to investigate a RAG answer that looks wrong
Step 1 of 5
Pin one failure
Pick a single bad answer and keep its query, retrieved chunks, prompt and output together. Debug one case before you trust any average.
Step 2 of 5
Read the evidence
Read the chunks as the model received them, in order. Ask whether a person could answer the question from this text alone.
Step 3 of 5
Check the match
Compare what the question asks for with what the chunks contain. Topically related text and text that answers the question are different things.
Step 4 of 5
Read the prompt
Look at the instructions the model was given for weak or missing context. Then see whether the answer stays inside the evidence.
Step 5 of 5
Split the metrics
Compare retrieval-side and generation-side scores. A healthy score upstream and a poor one downstream tells you where to look next.
Walk the pipeline in order, and judge each stage by what it handed on, not by one overall score.
Symptoms
Retrieval recall@5 is 0.91 — top chunks are relevant
Users report answers 'miss the point'
Citations sometimes point to the wrong chunk
Answer quality drops for long questions
Evidence
Query
What is our policy for handling customer data subject access requests under GDPR?
Retrieved chunks (top 3)
Chunk A (score 0.89): 'Customer data is stored encrypted at rest...'
Chunk B (score 0.86): 'GDPR grants users the right to access their data...'
Chunk C (score 0.84): 'Our data retention policy is 24 months...'
Generated answer
Customer data is encrypted at rest and our retention policy is 24 months. Users have the right to access their data.