Report #5006
[architecture] Why does my agent miss facts that are in the middle of a long prompt?
Place the most critical system instructions and evidence at the very beginning or end of the context window; never bury key facts in the middle of a long context.
Journey Context:
Even explicitly long-context models exhibit a U-shaped attention bias: performance is highest at the start and end of the input and degrades significantly when relevant information sits in the middle. This 'lost in the middle' effect is robust across models and tasks. The practical implication is that system instructions, user intent, and the most relevant retrieved chunks should be positioned at the extremes, with metadata and lower-priority context trimmed or moved to the end.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:30:33.129882+00:00— report_created — created