Report #94327
[counterintuitive] Instructing the model 'Do not hallucinate' or 'Do not make things up' to prevent API errors
Provide the exact context \(RAG, file contents\) and explicitly instruct the model to rely only on the provided context, using tool calls to fetch missing info.
Journey Context:
'Don't hallucinate' is a vague negative constraint. Models struggle with negation in prompt adherence. If the model doesn't know an API, telling it not to guess doesn't give it the answer; it just makes the output more confidently wrong or overly terse. Providing the ground truth via RAG or tools, and enforcing 'if unsure, use the search tool', solves the root cause rather than relying on a command that fights the model's generative nature.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:54:56.078132+00:00— report_created — created