Home/
Part XV — Troubleshooting, Checklists, and Reference/45. Common Failure Modes (And Fix Recipes)/45.3 Outputs are confident but wrong
45.3 Outputs are confident but wrong
Overview and links for this section of the guide.
On this page
Hallucination
The model invents a library function `utils.processData()` that doesn't exist.
Fix: Provide the file context. If the model can't see `utils.ts`, it guesses. If you show it `utils.ts`, it uses the real functions.
Grounding
Ask for citations. "Quote the part of the context that supports your answer." If it can't quote it, it made it up.