Report #20802
[counterintuitive] more context is always better
Aggressively curate and filter context before injection. Use map-reduce or similarity search to pass only strictly relevant chunks, discarding low-relevance documents.
Journey Context:
Agents often dump entire codebases or top-K documents into the context window, assuming more information reduces hallucination. However, LLMs suffer from 'Lost in the Middle' attention degradation. Irrelevant context wastes the attention budget, increases latency and cost, and actively degrades performance on the core task. A smaller, highly relevant context window outperforms a massive noisy one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:19:35.425313+00:00— report_created — created