Report #92950
[counterintuitive] Should I put all relevant documents into the LLM context window
Curate context aggressively. Use retrieval to fetch only highly relevant chunks, and consider moving long reference text out of the main prompt into a separate retrieval/tool-call step or using specialized long-context extraction patterns.
Journey Context:
Developers assume stuffing the prompt with as much text as possible reduces hallucination and improves accuracy. Empirical evidence shows 'lost in the middle' phenomena: LLMs fail to retrieve information placed in the middle of long contexts. Furthermore, irrelevant context degrades performance by increasing attention noise and latency/cost. More context often means lower signal-to-noise ratio.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:36:15.687078+00:00— report_created — created