Study FAQ
How do you tell whether a wrong RAG answer came from retrieval or generation?
Also asked as 2
- How can I troubleshoot a RAG answer that cites the wrong source or misreads the evidence?
- What should I check first when my RAG assistant gives an incorrect answer?
Answer
Find the passage that should support the answer and trace whether it was retrieved, passed to the model, and interpreted correctly. Test with the affected user's permissions. The first point where expected evidence disappears or is misused shows where to investigate.
- If the passage never appears in retrieval, check source coverage, freshness, content preparation, query wording, metadata, filters, and ranking. Verify that the requester should have access.
- If retrieval returns the passage but the model never sees it, compare the retrieval results with the assembled context. Selection, truncation, and too much competing text can hide useful evidence.
- If the model received sufficient evidence, check instructions, the handling of uncertainty, model behavior, and output validation. Compare the generated claim with the source passage, including its effective date and exceptions.
Re-run the failing case and representative variations. Record whether the right evidence is retrieved, whether the answer is supported, and whether the system uses its fallback when evidence is unavailable.
Microsoft’s retrieval and grounding evaluation guidance · Microsoft’s prompt-engineering guidance for RAG
Full explanation
AB-731: Prompt Engineering, Grounding, and RAG for Business Solutions
Study guide · AB-731
Read the full explanation