Report #30435
[research] Agent ignores retrieved context documents placed in the middle of the prompt and hallucinates an answer based on parametric memory
Position the most critical retrieved documents at the very beginning and end of the context window. If using an agent framework, re-rank retrieved chunks so the highest relevance scores map to the edges of the prompt.
Journey Context:
LLMs exhibit a U-shaped attention curve; they attend strongly to the beginning and end of a context, but suffer severe performance degradation for information in the middle. When the model ignores the context, it defaults to its pre-trained weights, leading to hallucinations. Simply adding more context actually hurts factuality if placed in the middle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:28:16.602075+00:00— report_created — created