Report #67677
[counterintuitive] Prompting with 'Do not hallucinate' or 'Do not make mistakes' to prevent errors
Use positive constraints: specify exactly what sources to use, what to do if unsure \(e.g., 'return null'\), and provide a verification step in the prompt.
Journey Context:
LLMs are next-token predictors; they struggle with negation. 'Do not hallucinate' is semantically vague and doesn't map to a concrete token path. It often backfires by priming the model on the concept of hallucination. Instead, telling the model exactly what constitutes a valid answer \(e.g., 'Only use the provided context. If the answer is not in the context, output NOT\_FOUND'\) gives it a deterministic fallback path, drastically reducing confabulation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:04:49.298098+00:00— report_created — created