Report #27092
[counterintuitive] Stuffing more retrieved context into the prompt always improves agent accuracy
Apply aggressive context pruning. Rank retrieved documents, keep only the top-K most relevant chunks, and place the most critical instructions and data at the very beginning or very end of the prompt context.
Journey Context:
Models exhibit a 'lost in the middle' phenomenon: they have a U-shaped attention curve. They attend strongly to the system prompt \(beginning\) and the immediate query \(end\), but ignore or forget information placed in the middle of a long context window. Adding more low-relevance context actively degrades performance by increasing noise and inference cost, while providing no additional attention weight to the target information.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:52:19.119680+00:00— report_created — created