All stories
AI

4 million tokens for 40 cents: the economics of RAG is shifting

4 million tokens for 40 cents: the economics of RAG is shifting

Context windows for large language models have grown fast over the past few years, yet most developers still split documents into chunks, store them in a vector database and feed only the most relevant few into the model. The reason is simple: long context is expensive and slow. According to the report, Subquadratic's SubQ Savant is challenging that equation, putting a 4-million-token context window into production at roughly 40 cents per fill.

Why does that number matter? RAG (Retrieval-Augmented Generation) is built on pulling outside knowledge into the model. You chunk documents, turn each chunk into an embedding, pick the nearest chunks to a query and hand them over. That pipeline works, but it means extra infrastructure, extra latency and mistakes that come from chunking choices. The article says that once context gets this cheap, developers start reconsidering the "chunk and search" habit in favor of simply passing everything in.

What does that mean in practice for a working developer? Being able to hand a whole codebase, a pile of contracts or a product documentation set to a model without splitting it up can make answering complex questions easier. Still, according to the report, the real claim here is price; a 40-cent fill can add up quickly for frequently run queries. So rather than throwing out the vector database today, it is worth measuring which workloads actually do better with long context.

In short, the development described in the article does not kill RAG; it adds an alternative. Before building a retrieval layer for your team, calculating what the same question would cost with long context is now a meaningful option. The decision, as always, comes down to measurement.