AN Alpesh Nakrani
BlogBooksPraiseAbout Work with me →
Back to the blog
Blog / Jun 9, 2026 · 11 min

Agentic RAG: When Your Agent Needs to Retrieve

Agentic RAG lets the agent decide when and what to retrieve, iterate, and verify. It wins on multi-hop and ambiguous queries, and it costs you.

Agentic RAG is retrieval where the model decides when to search, what to search for, whether the result is good enough, and whether to search again. Static RAG retrieves once and hopes. Agentic retrieval turns the lookup into a loop: plan a query, fetch, judge the evidence, refine, repeat, then answer. It beats static RAG on multi-hop and ambiguous questions, and it buys that lift with real cost, latency, and a new failure surface.

So the rule is narrow. Use agentic RAG only where one-shot retrieval demonstrably fails. Not because the architecture is fashionable. Because you have a measured gap that an extra retrieval hop closes and a one-shot pipeline cannot.

I write this from two years of putting retrieval systems into production, and from the seat where the inference bill is a line item I have to defend. Most teams reach for agentic RAG too early, pay 5 to 10x the cost per query, and never measure whether the static pipeline was actually the thing that broke. If you want that measured-first discipline on a real workload, it is the core of how Devlyn builds RAG and knowledge integration: prove where one-shot retrieval fails before adding a single loop.

Static RAG retrieves once and hopes. Agentic RAG decides when to retrieve, judges what came back, and searches again. That loop is the whole product, and the whole bill.

Key takeaways

If you read nothing else, read these.

  • Agentic RAG makes retrieval a decision, not a step. The model controls when and what to retrieve, evaluates the evidence, and re-retrieves until it has enough.
  • The win is concentrated. Multi-hop and ambiguous queries see the largest gains in published benchmarks; single-fact lookups see little or none.
  • The cost is real. Expect several extra model calls, materially higher token spend, and seconds of added latency per answer.
  • It adds failure modes static RAG never had. Retrieval loops, query drift mid-run, and confident answers built on a bad self-judgment of "enough."
  • Decide with evals, not vibes. If your one-shot recall is fine on the queries that matter, agentic retrieval is a tax with no return.

What is agentic RAG?

Agentic RAG is retrieval-augmented generation where an agent governs the retrieval process instead of a fixed pipeline. In classic RAG, code embeds the query, pulls the top k chunks, and stuffs them into the prompt. The model never decides anything about retrieval. In agentic RAG, the model decides: it can rewrite the query, choose a source, call a tool, read what came back, and rule it insufficient. Then it goes again.

The line is the same one I draw for agents generally. If a developer wrote the retrieval path and it never changes, that is a workflow. If the model chooses the next retrieval action at runtime, that is agentic. I made the broader version of this argument in the pillar field guide on AI agents and agentic workflows. Retrieval is one of the cleaner places to add a thin agentic layer, because the action is bounded and mostly reversible: a search that returns nothing useful costs tokens, not a sent email.

Three behaviors define the loop. Query planning: the model decomposes a question into sub-queries it can actually answer. Iterative retrieval: it fetches, reasons over the result, and forms a sharper follow-up query. Self-evaluation: it judges whether the retrieved evidence supports an answer, and rejects its own draft if it does not. A recent survey of agentic RAG frames these as reflection, planning, and tool use layered onto the retrieval path.

Where agentic retrieval beats static RAG

The gain shows up on a specific shape of query: questions that need facts from more than one place, where you do not know the second place until you have seen the first. These are multi-hop queries, and they are exactly where a single retrieval pass fails.

Take a real-sounding support question: "Does the lens coating my customer ordered last month qualify for the new vision plan, given their carrier?" A one-shot retriever embeds that whole sentence and pulls chunks that are kind of about all of it and precisely about none of it. An agentic retriever splits the work: find the order, find the coating, find the carrier's current plan rules, then reason across the three. Each hop's answer shapes the next query.

The published numbers point the same direction, and I treat them as directional rather than promises. Across 2026 surveys and benchmark write-ups, agentic RAG reports roughly a third higher average accuracy than static RAG, with the largest lift on multi-hop questions and the smallest on single-fact lookups. On standard multi-hop sets like HotpotQA and 2WikiMultiHop, iterative agentic approaches post the top scores; a recent structured-reasoning study of multi-hop RAG reports its iterative method reaching state-of-the-art accuracy across these benchmarks. The pattern is consistent: the harder the cross-document reasoning, the more the loop earns.

The win is not "agentic RAG is better." It is "agentic RAG is better on multi-hop and ambiguous queries, and roughly even everywhere else." Know which kind of query you are buying for.

Ambiguous queries get a quieter benefit. When a question is vague, a self-evaluating retriever can notice the first results are scattered and reformulate before answering, instead of confidently summarizing the wrong chunk. Static RAG has no mechanism to notice it retrieved poorly. It just answers.

The cost, latency, and failure surface

Here is the part the architecture diagrams skip. Every loop is more model calls. A static query is one retrieval and one generation. An agentic query can be a planning call, two or three retrieval-and-reason cycles, a self-evaluation call, and a final answer. That is the difference between one inference and six, and the bill scales with it. Expect a 5 to 10x cost multiple and several seconds of added latency per answer for the heavier patterns. Re-retrieval strategies in the literature push tail latency toward 20 to 30 seconds, which is disqualifying for anything interactive.

Latency is a revenue decision, not a technical footnote. A 6-second answer in a live chat path changes abandonment, and abandonment changes conversion. The CRO in me has killed technically superior retrieval designs because the latency budget did not survive contact with a real funnel. The cheapest correct answer usually beats the most accurate slow one.

The loop also adds failure modes static RAG never had. The agent can spin, re-retrieving on a query it keeps failing to satisfy, burning budget with no exit. It can drift, letting an early bad chunk steer every later query off the real question. Worst, it can misjudge sufficiency, deciding the evidence is "enough" when it is thin, then answering with the full confidence of a system that believes it checked its work. A self-grader that grades itself generously is more dangerous than no grader, because it manufactures false assurance.

# agentic RAG trace, one user query, instrumented per hop
# config: max_hops=4, sufficiency_threshold=0.70
hop 1 query="lens coating order last month" recall@5=0.81 sufficiency=0.42 decision=retry
hop 2 query="acme premium coating sku eligibility" recall@5=0.74 sufficiency=0.61 decision=retry
hop 3 query="carrier vision plan 2026 coating rule" recall@5=0.88 sufficiency=0.79 decision=answer
# 3 hops, 6 model calls, 5.9s total, $0.041/query vs $0.004 static
# watch: if sufficiency plateaus < 0.70 across hops, agent spins to max_hops and answers anyway

That trace is illustrative, not a client log, but the shape is real. The honest risk is the last comment line. When the self-evaluation never clears the threshold, a naive loop exhausts max_hops and answers on weak evidence. You need an explicit "I could not find this" exit, or the loop quietly converts a retrieval failure into a confident wrong answer.

Why agentic RAG can hide a failing pipeline

Agentic RAG does not exempt you from the failure that kills static pipelines. It can hide it longer. The pattern is the one every production team learns the hard way: the demo retrieves perfectly, the corpus grows, the queries drift, and recall collapses quietly while generation quality papers over it. A capable model synthesizes a plausible answer from three mediocre chunks, so nobody notices recall bled from 0.84 to 0.61.

Agentic retrieval makes that worse in one specific way. A self-correcting loop is even better at papering over weak retrieval, because it will reformulate and re-search until it scrapes together something answerable. Your answer quality stays acceptable. Your per-hop recall is rotting underneath, and now you are paying 6x to mask it. The extra hops are buying you cover, not correctness.

The discipline is identical to static RAG, just instrumented per hop. You need a golden set of query-and-relevant-chunk pairs, recall@k measured weekly on each retrieval hop, and a chart that shows the decay before a customer does. I lay out that measurement loop in full in my guide to RAG evaluation. Without it, agentic RAG is a more expensive way to fail silently. The loop is not a substitute for retrieval evals. It raises the stakes on them.

This is also the point at which an external set of eyes earns its cost. If your retrieval layer is the bottleneck and you would rather instrument it correctly than discover the decay from a customer, that is exactly the work Devlyn ships on RAG and knowledge integration, with per-hop recall evals wired in from day one.

When to reach for it, and when not to

Reach for agentic RAG when one-shot retrieval demonstrably fails on the queries that matter. The signal is concrete: your eval set shows static recall is fine on single-fact queries and falls apart on the multi-hop ones, and those multi-hop queries are a meaningful share of real traffic. That is a measured gap an extra hop can close.

Do not reach for it when a cheaper fix is on the table. Often the static pipeline is failing for reasons a loop will not solve: bad chunking, a stale index, a query distribution you never tuned for. Fixing those is cheaper than 6x inference. The order of operations is: tune static retrieval, measure, and only add agentic hops where the residual failure is genuinely multi-hop.

  • Good fit: multi-hop questions, cross-document reasoning, queries needing live tool calls like SQL or an API lookup mid-answer.
  • Bad fit: single-fact lookups, latency-critical chat paths, anything where a one-shot pipeline already clears your recall bar.
  • Prerequisite: a retrieval eval harness and a "could not find it" exit, before you add a single loop.

This is the same decision logic I apply to any agent. Bound the autonomy, name what the loop is allowed to do, and verify the result mechanically. The fuller version lives in my honest accounting of what agents can do today, and the retrieval mechanics, including the embeddings layer underneath all of this, sit in my book on retrieval that survives production.

Frequently asked questions

What is the difference between RAG and agentic RAG?

Standard RAG retrieves once with a fixed pipeline and generates an answer. Agentic RAG lets the model control retrieval: it decides when to search, rewrites queries, judges whether the evidence is sufficient, and re-retrieves in a loop. RAG is a step. Agentic RAG is a decision the model makes at runtime.

Is agentic RAG always better than standard RAG?

No. It wins clearly on multi-hop and ambiguous queries and roughly ties on single-fact lookups, while costing several times more per query and adding seconds of latency. On simple retrieval it is a tax with no return. Use it only where your evals show one-shot retrieval failing.

How much does agentic RAG cost compared to static RAG?

Expect a 5 to 10x cost increase per query, because each answer triggers multiple model calls for planning, iterative retrieval, and self-evaluation instead of one. Latency rises with it, often by several seconds, and heavy re-retrieval can push tail latency toward 20 to 30 seconds.

How do I evaluate an agentic RAG system?

Measure retrieval per hop, not just the final answer. Build a golden set of query-and-relevant-chunk pairs, track recall@k on each retrieval hop weekly, and watch for the loop masking decayed recall with extra searches. Add an explicit "could not find it" exit so a failed loop does not answer confidently on thin evidence.

If you are deciding whether agentic retrieval is worth the cost on a real workload, that is exactly the kind of build a Devlyn's RAG and knowledge integration build ships with evals from day one. We measure where one-shot retrieval actually fails before we add a single loop, so you pay for the hops that earn their keep and kill the ones that do not.

Share
Next

Keep reading

View all blogs