Report #84236
[counterintuitive] Does adding more context documents always improve RAG answer quality
Apply aggressive relevance filtering to retrieved documents; evaluate performance degradation as context length increases to find the optimal context window size.
Journey Context:
Developers assume stuffing the context window with top-K documents gives the model more 'ammo' to answer correctly. However, research demonstrates the 'Lost in the Middle' phenomenon: LLMs effectively ignore information located in the middle of long contexts. Adding more low-signal or conflicting documents increases latency, cost, and distracts the model, actually degrading accuracy compared to providing just the top 1-3 highly relevant chunks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:58:59.503667+00:00— report_created — created