Context Windows Lie to You
A million-token context sounds like infinite memory. In practice it's a messy attic where important things get buried.
Lena's team shipped a 200-page contract into their AI agent's context window. The vendor promised a million tokens — enough for the full document. The model answered questions about the first ten pages flawlessly. It handled the last five pages well too. Everything in the middle — including the critical clause on page 47 — might as well not have existed. The window didn't lie about size. It lied about attention.
Here's the thing: usable context is smaller than advertised context. Needle-in-haystack benchmarks improved, but production tasks aren't needles — they're relationships across sections, revisions, and threads. Models lose middle content, overweight recent tokens, and hallucinate bridges between distant facts. Bigger windows delay the RAG conversation; they don't end it.
What actually works at long range
Retrieve, don't dump. Ranked chunks beat brute force. Outline first — ask the model to build a map, then drill in. Compress history — structured summaries beat raw chat logs. Repeat constraints — put critical rules at the end, not only the beginning.
If you wouldn't read it all in one sitting, don't expect flawless recall without structure.
A million-token context is a cargo ship, not a forklift. Use it to move bulk — not to find one screw.
| Dump everything | RAG + hierarchy | |
|---|---|---|
| Cost | High every call | Pay for what's needed |
| Recall | Uneven | Targeted |
| Debuggability | Opaque | Citable chunks |
The middle is where facts go to die
Researchers documented lost-in-the-middle years ago; product teams still stuff 80-page contracts into one prompt because the vendor brochure said a million tokens. Attention isn't uniform — beginnings and ends get disproportionate weight. Critical clauses in the center are statistically unlucky.
Here's the thing: structure beats size. Hierarchical summarization — outline, then drill into relevant sections — outperforms brute stuffing on most enterprise tasks. You're building a table of contents the model can navigate, not a cargo cult of context length.
- Anchor critical rules — repeat non-negotiable constraints at the end of the prompt
- Chunk citations — force the model to quote chunk IDs, not paraphrase from memory
- Progressive disclosure — retrieve more only when the first pass is insufficient
- Cost caps — long context is a pricing attack surface; budget per request
A bigger window doesn't fix bad information architecture — it hides the problem behind a bigger bill.
When long context is actually the right tool
Bulk operations — whole-repo refactors, full transcript analysis, cross-document deduplication — benefit from fitting more in one pass. Even then, post-process with verification passes on extracted claims. Long context is for moving mass; retrieval is for precision.
What this means for you: benchmark your longest real workflow with dump-everything vs. RAG-plus-hierarchy. Measure accuracy, cost, and debuggability — not vibes. Most teams find a hybrid wins: map in long context, facts via retrieval, synthesis with both cited.
If you can't explain which tokens mattered, you used too many tokens.
Token accounting for finance
Long-context calls need per-team budgets — finance can see which product area stuffed 200k tokens "just in case." Chargeback isn't punishment; it's how you teach teams to retrieve instead of dump. CFOs understand token bills when they map to owners.
What this means for you: log input token histograms weekly. Spikes correlate with bad prompts or missing RAG. Fix the workflow before buying a bigger window.
Chat history compression traps
Summarizing chat history to fit windows drops commitments the user made ten turns ago. Repeat open tasks and constraints after compression — or use structured state outside the prompt for session goals.
What this means for you: store session objectives in a sidecar JSON the model must re-read each turn. Don't rely on summarized vibes for contractual precision.
Buy retrieval before you buy tokens — structure beats size on every enterprise task we measure.
What this means for you: cap max input tokens per feature in config; unbounded prompts are unbounded bills.
Map-then-drill pattern
Pass one: model builds outline of long doc. Pass two: retrieve only sections relevant to the question. Pass three: synthesize with citations. Three cheap calls beat one giant call on accuracy and cost for most policy and code tasks.
Test with your own long docs — and compare against workflow tools that force brevity, like the Meeting Recap pattern: structured output beats unstructured megaprompts.
Benchmark your longest real document, not a needle-in-haystack demo
Run your worst 80-page contract through dump-everything and through map-then-drill, and score both on accuracy, cost, and whether you can explain which tokens actually mattered. What this means for you: most teams find the hybrid wins — long context for the map, retrieval for the facts, citations tying synthesis back to both.
Here's the thing: a bigger window doesn't fix bad information architecture, it just hides the bill for it. If you can't point to which chunk answered the question, you paid for tokens you didn't use — and the clause on page 47 is still gambling on luck.
Stay with us · decision
How do you handle long documents when interacting with AI models?
When dealing with lengthy contracts or documents, what strategy do you find most effective to ensure that all critical information is accurately processed and recalled by the AI model?
No account needed — pick a take, then keep reading. We rotate these prompts so each piece feels like a conversation, not a clone.