Study FAQ
How do I locate the failing stage behind an incorrect AI answer?
Also asked as 2
- How can I tell which stage of a generative AI request produced the wrong answer?
- How do I trace an incorrect answer across retrieval, generation, tools and delivery?
Answer
Identify the first material divergence supported by the recorded request, rather than blaming the final model response by default. Technical execution success and task correctness are separate.
State the disputed claim or unmet requirement and its approved evidence. Then follow the captured sequence:
| Stage | What to inspect when available and permitted |
|---|---|
| Request preparation | Actual task, assembled input and selected configuration |
| Retrieval | Query/filters, document versions, eligibility, status and answer-bearing passages |
| Model invocation | Selected deployment, actual supplied evidence and generated output |
| Tools | Tool choice, arguments, authorization, outcome and result use |
| Response processing | Transformations, truncation or delivery after generation |
A successful search can return stale or irrelevant material. A correct tool can receive the wrong argument, and a useful result can later be ignored. If evidence was retrieved but never reached the model, inspect context assembly. If the model received the right evidence and contradicted it, investigate generation and application behavior.
Groundedness, relevance and tool execution/use checks support different parts of the diagnosis. A grounded answer can still be irrelevant or rely on obsolete material. Do not reconstruct an unseen prompt from the final answer, or assume redacted content was correct. Preserve unknowns and choose the next observation that best separates remaining hypotheses.
Microsoft Learn
Full explanation
AI-300: Tracing Slow or Incorrect Generative AI Responses
Study guide · AI-300
Read the full explanation