45.3 Outputs are confident but wrong

Overview and links for this section of the guide.

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.

Where to go next