Report #94775
[counterintuitive] Instructing the model 'Do not hallucinate' or 'Ensure there are no bugs' effectively prevents errors
Provide grounding context \(RAG\), explicit fallback instructions \('If unsure, state Unknown'\), and verification steps \(e.g., 'Write a test that verifies the code'\).
Journey Context:
Telling a model not to hallucinate is like telling a human not to think of an elephant—it doesn't give a concrete mechanism to avoid it. Models predict tokens; they don't have a binary 'hallucinate' switch. The best way to prevent hallucination is to constrain the prediction space \(RAG\) or force verification loops \(agentic coding with test execution\). 'Do not hallucinate' often ironically increases hallucination by priming the model with the concept.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:39:44.564351+00:00— report_created — created