Agentic RAG: Letting Agents Plan Their Own Retrieval
How agentic RAG differs from single-shot retrieval: query planning, decomposition, iterative search, tool selection, self-checking.
Published December 1, 2026
Classic RAG retrieves once, with the user's question as the query, and hopes the right passages come back. Agentic RAG gives retrieval to an agent: it can rewrite the query, split a complex question into sub-questions, search several sources, read results, decide whether it has enough, and search again. It answers harder questions at the cost of more calls and latency.
The concept
In agentic RAG, search is a tool. The agent receives tools like search_docs, search_tickets, run_sql and fetch_page, plus instructions about when each is appropriate. For a question such as "Why did checkout errors spike last Tuesday and was it related to the payment SDK upgrade?", it might query incident logs, search the changelog, look up the deploy history and then synthesise.
Useful sub-techniques include query rewriting (turning conversational questions into good search queries), decomposition (sub-questions answered separately), routing to the right source, and self-reflection (checking whether retrieved evidence actually supports an answer before responding). Cap steps and tokens, and keep a classic RAG fast path for simple questions.
Agentic retrieval
Classic vs agentic
| Classic RAG | Agentic RAG | |
|---|---|---|
| Retrieval calls | One | Several, adaptive |
| Sources | Usually one index | Many tools and indexes |
| Handles multi-part questions | Poorly | Well |
| Latency / cost | Low | Higher |
| Predictability | High | Lower; needs limits |
Fast path + agentic path
Practical examples
Query rewriting
Make conversational follow-ups searchable.
History: "What plans include SSO?" → "Enterprise."
Follow-up: "how much is it?"
Rewrite for search: "Enterprise plan price per user per month"Retrieval tools for an agent
Distinct sources, clear descriptions.
tools = [
tool("search_docs", "Search product documentation. Use for how-to and policy questions."),
tool("search_incidents", "Search incident reports by date range or service name."),
tool("get_deploys", "List deployments for a service between two timestamps."),
]Self-check before answering
Ask whether evidence supports each claim.
Before answering, list each claim and the source ID that supports it.
If any claim lacks a source, search again (max 2 more searches) or say what is unknown.Common mistakes
- Using agentic RAG for every simple lookup.
- No step limits, leading to long and costly searches.
- Tools with overlapping descriptions that confuse source selection.
- Skipping the evidence check, so the agent answers from guesses after searching.
Key takeaways
- Agentic RAG turns retrieval into tools an agent plans with.
- It handles multi-part and multi-source questions.
- Keep a fast classic path and cap agentic steps.
- Require evidence for claims before answering.
FAQ
Is agentic RAG always better?
It is better for complex questions but slower and costlier; most traffic in many apps is simple enough for classic RAG.
Does it require a special framework?
No. Any tool-calling model plus search functions can implement it.
How do I evaluate it?
Use the same golden datasets, plus metrics for steps taken, cost and latency per question.