Retrieval Augmented Generation(RAG)

A model only knows what it saw in training. RAG looks things up first, then answers, and it sits behind most company assistants. What it is, why agents are rewriting it, the money and launches, and the sites to know.

By Drew Wall,

RAG, or Retrieval Augmented Generation, is how an AI model answers from your documents instead of its memory. It searches first, then writes. Most "chat with your files" tools, support bots and company assistants run on it.

What it is

A model only knows what it saw in training, and that goes stale. RAG adds a lookup step. Your documents are split into chunks and turned into embeddings, lists of numbers that capture meaning, stored in a vector database. When you ask a question, the system finds the closest chunks, usually adds keyword search and a reranker, and pastes the best few into the prompt. The model answers from them and can cite its sources, which cuts hallucination.

Examples: Perplexity citing the web, Glean answering from company Slack and Drive, a bank assistant checking a policy guide, a coding agent pulling the right files.

Why it is hot

Agents need context, and RAG is the default way to supply it. But one search is no longer enough. In a November preprint on 150 FinanceBench questions, classic one-shot RAG got 117 right; an agent that searched repeatedly got 132 to 133. Amazon Bedrock now offers single-shot and agentic retrieval in one API. Long context is the other challenger: OpenRouter's December 2 test found that sending a whole 330,000-token catalog beat hybrid RAG, 31 of 40 answers to 17. It also cost $8.70 per 1,000 questions on GPT-6 Luna, against $0.13 to $0.22 for RAG.

The buzz

Money: Glean raised $768 million in August for enterprise search and agents. Qdrant raised a $50 million Series B in March. Products: Pinecone made Nexus generally available on August 6, a knowledge engine that compiles company data once so agents skip the search-and-retry loop; it claims over 90% lower token costs than agentic RAG. Google shipped EmbeddingGemma 2, an open multimodal embedding model, in October.

The slogan of the year: "RAG is dead, agents just need grep." Coding agents do lean on plain text search, but the tests above show meaning-based retrieval still wins on large, messy document sets. Caution: plain embedding search found only 9 of 40 answers in OpenRouter's large catalog because it missed exact product codes.

Top sites

Vector databases: Pinecone, Qdrant, Weaviate, Chroma, Turbopuffer. Frameworks: LlamaIndex, LangChain, Haystack. Building blocks: Unstructured prepares documents and Cohere sells embed and rerank models. Ready-made: Glean, Contextual, Vectara. More in Databases.

The point

RAG gives a model an open book. The book still decides the answer: clean documents, keyword search and reranking matter more than the model. Small, stable document sets may not need RAG at all; large or changing ones do, and agents now run it in a loop. Judge a system on correct answers per dollar. Related: Inference: the part of AI you pay for every time.