# How do you tell whether a wrong RAG answer came from retrieval or generation?

Exam: AB-731 — AI Transformation Leader
Knowledge domain: Identify the business value of generative AI solutions
Updated: 2026-11-25T07:20:42.440747+00:00
HTML: https://learningpathx.com/faq/AB-731/ab731-diagnose-incorrect-rag-answers.html

## Also asked as

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

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](https://learn.microsoft.com/en-us/azure/well-architected/ai/grounding-data-design) · [Microsoft’s prompt-engineering guidance for RAG](https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/rag/rag-prompt-engineering)

Source: [AB-731: Prompt Engineering, Grounding, and RAG for Business Solutions](https://learningpathx.com/news/ab-731-prompt-engineering-grounding-and-rag-for-business-solutions.html)
