TengenceTengence
Search & Recommend

Long Context RAG: Do You Still Need Retrieval?

Tengence Team10 min read
tilt shift lens photo of stainless steel chain
On this page14 sections ⌄

Key takeaways

  • Needle-in-a-haystack measures lookup, not thinking. Perfect recall at long lengths coexists with failed three-hop composition, which is the workload that justifies long context in the first place.
  • Density shrinks the usable window. Across 8 open-weight models on matched 12K-token benchmarks, performance collapsed at 4,000 to 6,000 tokens once nearly every token carried new information.
  • The cliff is between 512K and 1M. One frontier model dropped from 4/5 to 2/5 on three-hop tasks; another from 4/5 to 0/5.

Summary: Long context did not replace retrieval; it changed the routing question. Single-needle recall is solved at a million tokens, multi-hop reasoning falls off a cliff between 512K and 1M in several frontier models, and the cost gap at production query volume remains an order of magnitude. The architecture that survives is retrieval to narrow, long context to reason, with rules that decide which path a query takes.

Key Takeaways

  • Needle-in-a-haystack measures lookup, not thinking. Perfect recall at long lengths coexists with failed three-hop composition, which is the workload that justifies long context in the first place.
  • Density shrinks the usable window. Across 8 open-weight models on matched 12K-token benchmarks, performance collapsed at 4,000 to 6,000 tokens once nearly every token carried new information.
  • The cliff is between 512K and 1M. One frontier model dropped from 4/5 to 2/5 on three-hop tasks; another from 4/5 to 0/5.
  • Cost decides at volume. For a 10,000,000-token corpus at 50 queries a day, retrieval runs about $56 a month against $45,000 for naive full-context.
  • Latency compounds in agents. 50 to 200 milliseconds for vector search versus seconds for a million-token prompt, multiplied by every step in a loop.

I. The benchmark answered the wrong question

The claim that long context kills RAG rests on a specific test: plant a fact in a long document, ask for it, measure recall. That test is largely passed. In one evaluation of five frontier models with advertised 1-million-token windows, single-needle retrieval at 1 million tokens was essentially solved — three of the models hit 100%.

Then the same study asked for three-hop chains across three context tiers — 256K, 512K and 1 million tokens, and the picture split into three regimes: stable, where accuracy held at or above 80% through 512K with modest loss at 1M; late cliff, where one model fell from 4/5 to 2/5 between 512K and 1M and another from 4/5 to 0/5; and smooth decline, decaying gradually across the whole range.

That is the actual engineering finding: the nominal window is a poor proxy for usable multi-hop capability, and the sharpest discriminator between flagships is the 512K-to-1M transition. If your workload is "find the clause", buy the window. If it is "compare three clauses and tell me which one contradicts the indemnity cap", the window alone is not the product.

II. Why length is the wrong axis

A second line of work points at a variable that is easier to control than length: density. Using moving-average type-token ratio as the measure, a study ran 8 open-weight models from 9B to 685B parameters on three needle benchmarks of matched length — roughly 12K tokens — with different densities: one at 0.58, one at 0.75, and one at 1.0 where nearly every token is new.

Models near-perfect on the sparse benchmark collapsed past 4,000 to 6,000 tokens on the dense one. Reducing density while holding task, length and position fixed restored performance. Ordinary prose sits around 0.72 on the same scale, which means a contract, a specification or a research notebook is closer to the hard end than the demo haystack is.

Context type Density What it means for retrieval
Repeated boilerplate, logs Low Long prompt still works
Narrative prose Around 0.72 Mid-range, watch the middle
Specs, contracts, code docs High Chunk and rerank; do not rely on the window
Dense enumerations Near 1.0 Collapse well before the advertised limit

Practical consequence: the usable window for your corpus is not the number on the model card. It is a function of how much new information each token carries, and you can measure that before you architect around it.

III. Routing, not replacing

The architecture we ship has three tiers and an explicit router.

  1. Retrieve first when the corpus exceeds the working set. Anything over a few hundred thousand tokens that changes daily goes through vector retrieval, with reranking on the top candidates.
  2. Load full documents when the task is comparative. Diff two contracts, reconcile three invoices, summarize an incident file: pass whole documents rather than chunks, because chunk boundaries destroy the relationships the task depends on.
  3. Budget the context, do not maximize it. Query cost scales with tokens; a million-token prompt at 50 queries a day is a five-figure monthly line, not a rounding error.
Approach 10,000,000-token corpus, 50 queries/day First-token latency
Vector retrieval + generation About $56 per month 50 to 200 ms
Full context, no caching About $45,000 per month Seconds
Full context with prompt caching About $4,500 per month Seconds

The middle row is the number people quote when they say long context is affordable. The bottom row is what it costs when you actually cache, and it is still roughly two orders of magnitude above retrieval. Caching changes the bill, not the latency profile, and latency is what users feel in an interactive product.

Chunking decisions that survive contact with dense text

When retrieval feeds a long-context reasoner, chunk quality decides whether the reasoner sees anything useful. Our defaults, and why:

  • Chunk on structure, not on length. Split at headings, clause boundaries and table edges first; fall back to a fixed window only inside long prose blocks. A chunk that starts mid-clause teaches the reranker nothing.
  • Overlap is a repair, not a strategy. A small overlap helps recall at boundaries; large overlap inflates the index and makes every candidate look relevant.
  • Rerank top candidates, do not expand them. Retrieving wide and reranking narrow beats retrieving narrow and hoping; but expansion has to stop before the context becomes dense, or the model pays the density penalty described above.
  • Keep a document-level pointer. Each chunk carries its parent identifier so the router can promote a matched chunk to the full document when the query turns comparative.

That last rule is what makes the hybrid work. The retriever finds the chunk; the router decides that this query needs the whole file; the long-context call receives one document, in full, with its tables intact.

IV. What we do with the router

Our routing rules are boring on purpose. A query goes to retrieval when it names an entity, a product, a date or a clause; it goes to full-document context when it asks for comparison, contradiction, or a summary across sections; it goes to a tiered fallback when the first path returns low confidence.

Two measurements decide whether the router is earning its keep: grounded answer rate, and cost per resolved query. The first tells you whether retrieval is feeding the right chunks; the second tells you whether the long-context path is only being used where it changes the answer.

We also cap the long-context path per session. Without a cap, an agent loop drifts into sending the whole history every step, and the bill triples while the answers do not improve. The cap forces the summarization step that the model would otherwise skip.

Evaluating the router honestly

Most teams evaluate their retrieval layer and their long-context path separately, then wonder why the combination disappoints. Evaluate the router as the unit: same query set, three arms — retrieval only, full context only, routed — scored on grounded answer rate and cost per resolved query.

The routed arm should win on cost and lose nothing on quality. If it loses quality, the router is sending comparative queries to retrieval. If it wins nothing on cost, the long-context arm is being used where retrieval already answered correctly, and the router rule is decoration.

Run the set quarterly and keep the raw answers. Models change, thresholds drift, and a router that was correct last quarter is a hypothesis this quarter.

When the corpus is the memory

Agent sessions are a separate case, and worth naming because they are the one place where full context loses its cost argument. An agent's memory is its own prior work, growing monotonically; re-sending it every step is the expensive pattern, and a retrieval layer over the session log is the cheap one.

The trap is treating the session log like a document corpus. It is not: it is chronological, and order carries meaning. Retrieval over it has to preserve recent turns unconditionally and retrieve older ones by relevance, otherwise the model re-derives conclusions it already reached.

V. Boundaries and mistakes

Long context is not a retrieval strategy. It is a reasoning surface. Using it as a substitute for indexing means paying per token for a corpus you already have.

A passing needle test proves nothing about synthesis. Read synthesis benchmarks, not lookup benchmarks, before you decide the window is enough.

Density is the hidden variable. Two corpora of the same token count can behave very differently; test with your own documents.

Caching is a cost tool, not a latency tool. It reduces the bill on repeated prefixes and does nothing for the first-token wait on a cold prompt.

RAG has not stayed simple either. Modern retrieval is hybrid search plus reranking plus a loop; comparing it to a single long-context call compares a system to a feature.

FAQ

Q: Does long context replace retrieval?
A: No. It changes routing: retrieval narrows the corpus, long context reasons over a bounded set.

Q: At what length does multi-hop reasoning break?
A: In one study, the drop concentrated between 512K and 1M tokens, with some models falling from 4/5 to 0/5 on three-hop tasks.

Q: Why did dense contexts fail earlier?
A: Density reduces usable window: models collapsed past 4,000 to 6,000 tokens when nearly every token was new information.

Q: What does full context cost at volume?
A: About $45,000 a month for a 10,000,000-token corpus at 50 queries a day without caching; retrieval is about $56.

Q: What should I measure first?
A: Grounded answer rate and cost per resolved query, per routing path.

About Tengence

Tengence Search provides enterprise-grade in-site retrieval — hybrid search, reranking and query understanding — so long-context reasoning runs on a narrowed, relevant corpus instead of a raw dump. Tengence GEO pairs GEO with SEO for external visibility across engines, and Tengence Insight measures the funnel and attribution behind every resolved query.

Related Reading

Data Sources

  1. arXiv, "Retrieval and Multi-Hop Reasoning in 1M-Token Context Windows" (2026) — five frontier models, single-needle 100% at 1M for three models; three regimes; 4/5 to 2/5 and 4/5 to 0/5 between 512K and 1M.
  2. arXiv, "Dense Contexts Are Hard Contexts" (2026) — 8 open-weight models, 9B to 685B, matched 12K-token benchmarks at density 0.58 / 0.75 / 1.0; collapse past 4,000 to 6,000 tokens.
  3. creativeminds.dev, "Long-context vs RAG" (2026) — 10,000,000-token corpus at 50 queries/day: about $56 retrieval versus $45,000 full context, $4,500 with caching; 50 to 200 ms vector latency.

Get Started

Tags

TE

About the author: Tengence Team

Tracking generative search, content structure and brand visibility with repeatable growth playbooks.

Related reading

Get a useful growth newsletter every week

One case study + three actions + one template. No ads. Unsubscribe anytime.

Subscribe
Want to know how AI answers cite your brand? Get a visibility diagnostic and see which content is being cited.
Get the diagnostic →