Skip to content

AI, decoded

What is agentic RAG, and how is it different from regular RAG?

Traditional RAG runs one fixed retrieve-then-generate step: fetch documents that match the query, stuff them in the prompt, answer. Agentic RAG puts an agent in charge of retrieval — it decides whether to search, reformulates the query, pulls from multiple sources, checks whether what it got is good enough, and retrieves again if it isn't. The difference is a static pipeline versus a control loop. Databricks' Craig Wiley told Chain of Thought that in 2024 teams found a prompt plus some docs isn't a system to bet a company's reputation on, and production-grade systems are often compound or agentic.

· Updated · Chain of Thought

Level 4: How AI systems are built · 4.1 Retrieval and RAG

RAG & RetrievalAI Agents

  • 3 episodes
  • 3 guest clips
  • 6 glossary terms
A straight arrow for traditional RAG beside a glowing loop for agentic RAG, under the question: line, or loop? Agentic RAG searches again.

In detail

Traditional RAG: one shot at retrieval

Classic retrieval-augmented generation is a straight line. A query comes in, an embedding search returns the closest chunks, and the model answers using whatever came back. It is fast and cheap, and it works well when the answer lives in one obvious place. Its weakness is that it never second-guesses the retrieval. If the first search misses, the model answers from bad context and you get a confident wrong answer.

The term comes from Lewis et al. (2020), which paired a pre-trained language model with a dense vector index of Wikipedia accessed through a neural retriever. Weaviate co-founder Bob van Luijt described the production version in episode 8 at 6:03: a query retrieves documents, they go to the generative model, and the answer goes to the user. “That’s one directional.”

Agentic RAG: retrieval as a decision

Agentic RAG wraps retrieval in an agent’s reasoning loop. The agent can decide whether a question even needs a lookup, rewrite a vague query into a better one, query several stores or tools, and grade the results before answering. If the context is thin, it retrieves again with a different approach. Retrieval stops being a fixed step and becomes a series of decisions the agent makes toward an answer.

Two research designs make those decisions explicit. Self-RAG trains a model to retrieve passages on demand rather than every time, and to critique both the passages and its own output. Corrective RAG adds a lightweight evaluator that scores the retrieved documents and triggers different actions depending on its confidence, including a web search when the static corpus falls short. In episode 2 at 16:49, van Luijt put the practical case: one-directional RAG “brought us very far,” but questions that need multiple queries or sources need loops.

When the trade-off is worth it

The loop costs more — more model calls, more latency, more that can go wrong. For simple lookups, plain RAG wins. Agentic RAG earns its keep on multi-part questions, sources that need to be combined, and cases where a wrong answer is expensive enough to justify the extra checking. Databricks’ Craig Wiley described that shift in episode 3 at 14:00: during 2024, teams found that “prompt plus some docs doesn’t equal a system that I can bet my company’s reputation on,” and the systems run at production quality are often compound or agentic.

Decide what another retrieval step would fix

Use these suggested checks on your own workload before adding a retrieval loop. They are a decision aid, not benchmark results from the episodes.

What your cases showStart withEvidence to collect
One search consistently returns the passages needed to answerA fixed retrieval pipelineCorrect answers and missed passages on a labeled set of questions
The first result reveals a necessary follow-up questionA bounded retrieval loopWhether the extra search supplies the missing evidence and changes the answer correctly
The authoritative answer is absent from every connected sourceAn abstention or escalation pathAnswerable and unanswerable cases, so refusing everything cannot pass
Extra searches improve some answers but exceed the time or cost budgetA comparison with the fixed pipelineQuality, elapsed time and total cost per verified answer, including retries

Set a stopping rule before the loop runs: a call budget, a deadline and a response when the evidence remains insufficient. More retrieval attempts do not establish that the final answer is grounded. Check the retrieved passages and the answer separately using the RAG evaluation procedure.

Disclosure: Episodes 2, 3 and 8 were recorded while Conor worked at Galileo; episode 8 includes a Galileo ad read at 22:30.

Traditional RAG is a line; agentic RAG is a loop Top, traditional RAG as a straight line: query, retrieve, generate, answer. It is one directional, as Weaviate's Bob van Luijt puts it in episode 8, and if the first search misses, the model answers from bad context. Bottom, agentic RAG as a loop: an agent decides whether to search, rewrites the query, retrieves from several sources, then grades what came back. If the context is thin it loops back and retrieves again with a different approach; if it is good enough, it answers. Underneath: the loop costs more model calls and more latency, so plain RAG wins simple lookups, and the loop earns its keep on multi-part questions, sources that must be combined, and answers that are expensive to get wrong. A line, or a loop Same question, two ways to handle retrieval. TRADITIONAL RAG · ONE FIXED STEP query retrieve once generate answer “That’s one directional.” Bob van Luijt, episode 8 Fast and cheap. But it never second-guesses the search: if the first retrieval misses, you get a confident wrong answer. AGENTIC RAG · RETRIEVAL AS A SERIES OF DECISIONS agent needs a lookup? rewrite query vague → specific retrieve several stores or tools grade results good enough? answer yes no: thin context, try again The loop costs more: more model calls, more latency, more that can go wrong. Plain RAG wins simple lookups where the answer lives in one obvious place. The loop earns its keep on multi-part questions, sources that must be combined, and wrong answers that are expensive.
A static pipeline versus a control loop. “That’s one directional” is Weaviate’s Bob van Luijt describing plain RAG in episode 8. Download the image

Hear it from the guest

“So it is like you have a query, you retrieve some potential, documents, you send them to the generative model and you present it to the end user. That's one directional.”
“It's brought us very far, but now we need to start to bring in loops, right? So what if you have more questions? What if we need to query multiple times?”
“Prompt plus some docs doesn't equal a system that I can bet my company's reputation on.”

Quotes lightly edited to remove filler words.

Go deeper

From the conversation

This explainer is drawn from these episodes — each carries its full transcript.

Concepts in this explainer

Retrieval-Augmented Generation (RAG)Agentic RAGGraphRAGAI BenchmarkGenerative AILatency