Report #78713
[counterintuitive] Should I put all relevant documents into the LLM context window
Apply aggressive context pruning and relevance ranking before injecting text into the prompt; exceeding the model's effective context length degrades retrieval and reasoning.
Journey Context:
Developers stuff the context window thinking more information unconditionally leads to better answers. Research demonstrates the 'Lost in the Middle' phenomenon: LLMs reliably recall information at the beginning and end of the context but ignore information in the middle. Furthermore, attention dilution means irrelevant context actively harms the model's ability to reason over the target information, increasing latency and cost without accuracy gains.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:43:02.245001+00:00— report_created — created