Report #44213
[counterintuitive] Should I put all my documents in the LLM context window
Use the minimum necessary context. Prioritize high-signal retrieval over stuffing the prompt. If using long context, place critical instructions at the beginning or end of the prompt.
Journey Context:
With the advent of 100k\+ context windows, developers often stuff the entire codebase or document set into the prompt. However, models suffer from the 'Lost in the Middle' phenomenon where they ignore information in the center of long contexts. More context increases latency, cost, and the chance of conflicting information causing the model to 'average' instructions or fail to follow specific constraints.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:41:02.132349+00:00— report_created — created