Skip to content
Preptima
hardScenarioMidSeniorStaff

A user reports a wrong answer. How do you work out whether retrieval or generation failed?

5 min readUpdated 2026-08-15

Answer

Short answer

Walk three gates in order for that one request — was the supporting passage retrieved, did it survive into the rendered prompt, does the answer contradict it.Each gate blames a different stage, which is why the diagnosis depends on having logged both the retrieved chunk ids and the prompt as sent.

Was this answer helpful?

Likely follow-ups

  • What do you log per request to make this diagnosis possible without reproducing it?
  • The passage was in the prompt and the answer ignored it. What are your next three checks?
  • Two retrieved passages contradict each other. What should the system have done?
  • The same query gives a good answer today and a bad one yesterday. Where do you look?

Related questions