Tech

RAG is dead, long live RAG — why retrieval isn't going anywhere

Every time context windows grow, someone writes the obituary. Every time, they're wrong. A calm look at why retrieval complements long context rather than competing with it.

Initial Editor·2026-04-14·3min read·206 words

Every model release that bumps the context window triggers the same headline. RAG is dead. Long context wins. And then a week later teams quietly go back to retrieving.

The real economics

Long context is not free. Putting a million tokens in front of the model costs real money per call — and crucially, costs per call, every time. A cache hit on a retrieved chunk is measured in micro-cents; re-feeding the same giant corpus is measured in dollars.

That's before we talk about latency. First-token time scales with context length. A chatbot that takes four seconds to start responding loses to one that takes 300ms, even if the answer quality is marginally worse.

Where long context actually wins

Long context shines when:

  • The relevant passage location is genuinely unknown in advance
  • The task requires cross-document reasoning you can't shard
  • You only run the query once — one-off analysis, not interactive chat

Retrieval shines everywhere else. And "everywhere else" is still ~90% of production deployments.

The synthesis

The teams getting this right aren't picking one. They're using retrieval to shrink the working set to a few thousand tokens, then letting long context carry the reasoning over those. Hybrid, not either-or.

// more in tech

see all →
Tech· 2026-04-20· 5min

A working developer's toolkit for Claude Code

Ten repos that genuinely change how I work with Claude Code — and a suggested order for adopting them. Install one, use it for a week, keep only the ones that stuck. Never install a bundle.

#agents#claude-code#developer-tools#workflow