Agentic RAG is the shift from "retrieve once, generate once" to "let the model decide when and how to retrieve, across multiple hops". It pays back on complex questions; it loses money on simple ones.
What agentic RAG actually is
Classical RAG: query comes in, retriever pulls top-K chunks, chunks go into prompt, model answers. Single retrieval call.
Agentic RAG: model reasons about what it needs, calls retrieval as a tool with its own queries, judges relevance, retrieves more if needed, answers. Multi-step; bounded by a termination condition.
The model decides the retrieval strategy at runtime based on the question. Often involves query decomposition, retrieval-from-different-stores, and verification steps.
Three production patterns
Query decomposition: complex query is broken into sub-queries, each retrieved separately, results merged. Good for compound questions ("compare X and Y across these three dimensions").
Self-reflective RAG: model retrieves, assesses whether retrieved context is sufficient, retrieves again with refined query if not. Good for ambiguous queries.
Multi-source RAG: model routes to different data stores (docs, SQL, API) based on query intent. Good for heterogeneous knowledge bases.
When it beats pipeline RAG
Complex multi-hop questions: agentic wins by 15-25 percentage points on accuracy in our tests.
Ambiguous queries needing clarification: agentic can recognize ambiguity and refine; pipeline cannot.
Heterogeneous sources: agentic can route; pipeline either concatenates everything (expensive) or loses signal.
Loses to pipeline on: high-volume simple lookups. Agentic adds 2-6x latency and 3-8x cost per query.
Cost implications
Pipeline RAG: 1 retrieval call + 1 LLM call per query. Median ₹1.80 per complex query on Claude 5.5 Sonnet.
Agentic RAG: 2-6 retrieval calls + 2-8 LLM calls per query. Median ₹6-₹18 per complex query.
Routing layer: a cheap model (Haiku, Gemini Flash) classifies incoming queries and routes to agentic only when needed. Cuts total cost by 50-70% while preserving quality on complex queries.
Our default
Hybrid: a classifier routes incoming queries. Simple queries go through pipeline RAG; flagged complex queries go through agentic RAG. The classifier itself is a small-model call under ₹0.05 per query.
This gives you agentic quality on the 10-25% of queries that need it, pipeline cost on the 75-90% that do not.
Key takeaways
- Agentic RAG wins on complex, ambiguous, or multi-source queries by 15-25 percentage points accuracy.
- Agentic RAG is 2-8x more expensive per query than pipeline RAG.
- Hybrid routing captures the quality gains while containing cost.
- Build a classifier to route; do not apply agentic RAG universally.
Frequently asked
Overlapping but not identical. A research agent is agentic RAG + web search + multi-document synthesis + report writing. Agentic RAG is one component of that stack; it can also be deployed on its own for QA.
LangGraph with retrieval as a tool is our default. LlamaIndex has native agentic query engines that are simpler to spin up. Pick based on how much orchestration you expect beyond the RAG itself.
Measurably yes. Self-reflective patterns reduce hallucination by 20-40% on complex queries in our tests because the model can decide the retrieved context is insufficient and refuse rather than confabulate.
Build a golden set of representative queries, run through both pipeline and agentic, measure accuracy and cost. If accuracy lifts by less than 5 percentage points, agentic is not worth it for that workload.