Glossary

Agentic RAG

Retrieval-augmented generation in which an AI agent decides when to search, which sources to query and whether the results are good enough before it answers.

Agentic RAG is retrieval-augmented generation in which an AI agent controls the retrieval. Instead of running one search and passing the top results to the model, the agent decides whether it needs to search, chooses which source or tool to query, judges whether the results answer the question and searches again with a better query if they fall short. Retrieval becomes a set of tools the agent uses inside a loop.

How agentic RAG differs from standard RAG

Standard or naive RAG runs the same pipeline for every question: a retriever embeds the query, fetches the top-k chunks from a vector database and places them in the prompt, and the model generates. That works when one search can find the answer. It struggles with questions that need facts from several documents, questions phrased differently from the source text and questions that need no retrieval at all. Retrieval-augmented generation covers the baseline, and agentic RAG vs RAG compares the two in detail.

In agentic RAG the model sits in an agent loop with retrieval exposed through tool use or function calling. The model that writes the answer also writes the queries, reads the results and decides what to do next.

How it works

A typical run starts with a plan. The agent splits the question into parts through query decomposition, then picks a tool for each: a document search, a database query, a web search or agent memory for facts about the user. It may use query rewriting to match the vocabulary of the source. After each search it checks whether the results contain what it needs, and if not it tries a different query, filter or source. Questions that chain facts across documents are handled this way, as described under multi-hop retrieval.

Several published patterns formalise parts of this loop. Corrective RAG grades retrieved documents and falls back to other sources when they are weak. Self-RAG trains the model to decide when to retrieve and to critique its own output. GraphRAG adds a knowledge graph the agent can traverse. Many production systems use something simpler: a ReAct agent with one or two search tools and an instruction to verify before answering.

Trade-offs

Aspect

Standard RAG

Agentic RAG

Retrieval steps

One, fixed

As many as the agent decides

Query

The user’s question

Written and rewritten by the agent

Sources

Usually one index

Any tool the agent can call

Latency and cost

Predictable

Higher and variable

Best for

Single-fact lookups

Multi-part and research questions

The extra control costs latency and tokens. Every retrieval round adds a model call, and an agent that searches loosely can fill its context window with marginal results, which can make hallucination more likely. Retrieval quality still decides the outcome: reranking or a second search cannot help if no search surfaces the right passage. Agents do best with tools that return a few precise results with locations they can cite, which keeps answers grounded in the source.

Agentic RAG in Exabase

Exabase provides the retrieval layer that an agentic RAG loop calls; the planning logic sits in your agent. Deep Search searches inside stored content and returns the matching paragraph, page or timestamp instead of a whole file, with a precision setting from 0 to 1 that an agent can raise for a factual lookup or lower for broad research. Text queries use hybrid search by default, filters narrow by kind, folder, tag or date, and multi-query search sends several queries in one call, which suits an agent that has decomposed a question. The searching resources guide and the search endpoint cover the parameters.

Content is indexed as it is stored as Resources, so there is no chunking or embedding pipeline to maintain, and sub-document retrieval gives the agent page numbers and timestamps to cite. Memory adds facts about the user through the memory search endpoint, with optional query expansion and reranking. Workers run their own agent loop inside a Base with a search tool for resources and a web search tool. RAG accuracy covers the retrieval side, and knowledge base covers keeping the corpus current.

FAQs

What is agentic RAG?

It is RAG in which an AI agent plans and repeats its own retrieval, choosing sources and rewriting queries until it has enough evidence to answer.

Is agentic RAG better than standard RAG?

For multi-part and research questions, usually yes. For simple lookups standard RAG is faster and cheaper, and many systems route between the two.

How is agentic RAG different from agent memory?

Agentic RAG retrieves from documents and other sources, while agent memory stores facts learned from conversations. They work well together, as RAG vs agent memory explains.

Does agentic RAG need a vector database?

No. The agent can call any search tool, including keyword search, hybrid search, SQL or a web search API. What matters is that each tool returns precise, citable results.

Why is agentic RAG slower?

Each retrieval round adds a model call and a search. Capping the number of rounds and using tools that return precise results keeps latency in check.

Which frameworks can build agentic RAG?

Most agent frameworks can, since it needs only a model with tool calling and a search tool. LangChain vs LlamaIndex and best RAG infrastructure compare common choices.

Is agentic RAG the same as agentic search?

They overlap. Agentic search describes an agent searching iteratively for any purpose, while agentic RAG uses that search to ground a generated answer. Agentic search will replace RAG pipelines argues where this is heading.

Related pages: Agentic RAG vs RAG, Retrieval-augmented generation, Multi-hop retrieval, Corrective RAG, Retriever, Deep Search, RAG accuracy, RAG pipelines, Exabase vs LlamaIndex, RAG isn’t dead. Naive RAG is, Multimodal RAG, Grounding, Knowledge base, Naive RAG, Agentic AI, Deep research

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.