Report #43788
[counterintuitive] Should I include as much context as possible in the LLM prompt
Aggressively curate and filter context to only highly relevant chunks. Use a maximum of 3-5 high-quality retrieved documents rather than dumping entire knowledge bases into the prompt.
Journey Context:
The intuition is that more context gives the model more information to work with. However, LLMs suffer from the 'lost in the middle' phenomenon: their ability to recall information degrades significantly when relevant information is buried in the middle of a long context window. Excessive context dilutes the attention mechanism, increases latency, and drastically increases the chance of the model latching onto irrelevant details and hallucinating.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:58:09.553000+00:00— report_created — created