Report #53954
[synthesis] Hallucinations when context is missing or 'lost in the middle'
For GPT-4o, place critical instructions at the very beginning or end of the context. For Claude, explicitly instruct 'If the information is not in the provided context, say you don't know.' For Gemini, cross-reference retrieved facts against the prompt context.
Journey Context:
The 'lost in the middle' phenomenon affects all models, but the failure signatures differ. GPT-4o tends to hallucinate plausible but ungrounded information when it loses track of the context. Claude tends to explicitly deny knowledge \('The text does not state...'\). Gemini often defaults to its pre-training data, ignoring the provided context entirely. A generic RAG pipeline that assumes 'hallucination on missing context' will fail to handle Claude's explicit denials or Gemini's pre-training leakage.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:03:35.727550+00:00— report_created — created