Report #96374
[research] Failing to use relevant retrieved context when it is positioned in the middle of a long prompt
Place the most critical retrieved documents at the very beginning or very end of the context window. Implement chunking and multi-query retrieval to keep context windows small and highly relevant.
Journey Context:
Agents often dump all retrieved chunks sequentially into the prompt. Research shows LLMs exhibit a U-shaped attention curve, ignoring middle context. Simply adding more context degrades performance. The fix is restructuring context placement or reducing context size, trading off comprehensive retrieval for reliable grounding.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:20:47.574437+00:00— report_created — created