# Agentic RAG

> Canonical: https://skillalmanac.com/glossary/agentic-rag | Last verified: 2026-11-25 | Index status: index-eligible

Agentic RAG is retrieval-augmented generation in which AI agents are added to the pipeline, so a language model can plan its searches, choose among sources and tools, and search again before it answers.

Also called: RAG agent, agent RAG, agentic retrieval-augmented generation, agentic RAG pipeline.

## In plain language

A common single-pass RAG baseline is like one trip to the library: the system searches your documents once, hands the best pieces to the AI, and the AI writes an answer. Agentic RAG is closer to a researcher who reads the question, decides which shelves to check, looks again if the first pass was thin, and then writes. It helps with questions that have several parts or need more than one source. Extra model calls and planning can increase token use and latency. Searches can run in parallel, tool steps need not each call a model, and provider charges depend on the service and plan; local inference need not incur provider token bills. The agents can also fail, and the final answer can still be wrong, so the sources it used should be checked.

## Technical definition

One common baseline embeds the query, retrieves nearby chunks and generates an answer; nonagent RAG can also use lexical, hybrid or multistage retrieval. Agentic RAG puts a language model in control of the retrieval step. IBM describes routing agents that choose which data sources and tools handle a query, tool calls through APIs, and memory and planning that adjust later steps from earlier results. Microsoft's documentation for agentic retrieval in Azure AI Search describes one concrete form: an LLM can break a complex query into smaller subqueries using chat history, the subqueries run in parallel and are reranked, and the best results are merged, with added latency compared with a single-query pipeline.

## How it shows up when you use agents

Many coding agents already behave a little like agentic RAG. When a coding agent answers a question about a codebase, it can decide which files to search, reads what it finds, and searches again if the first result does not answer the question. The model, not a fixed script, chooses the next retrieval step. The same idea applies when an agent calls an [MCP server](/glossary/mcp-server) to fetch documents or database rows.

In a product setting, agentic RAG usually means a [retrieval-augmented generation](/glossary/retrieval-augmented-generation) pipeline with an [AI agent](/glossary/ai-agent) in front of it. The agent plans subqueries, picks sources and may call tools, and a [vector database](/glossary/vector-database) or keyword index does the actual search.

What breaks when it is misunderstood: teams add agent steps to fix answers that are really wrong because of bad chunking or missing documents, and then pay for more tokens and wait longer without improving anything. IBM says more agents mean greater expenses, and that hallucinations cannot be fully eliminated. Start by logging which passages a plain RAG pipeline retrieved for failing questions (the guide [What is RAG](/learn/what-is-rag) shows how). Add agentic steps when the failures are questions that need several searches or several sources. Then keep a log of the queries the agent issued, as the [cited-deep-research](/skills/skill-almanac/cited-deep-research) skill does for research, so you can check them.

## Common confusions

- **Agentic RAG versus RAG.** A fixed single-pass pipeline is one RAG baseline. Agentic RAG lets a model plan or repeat retrieval; benefits and extra token use, latency and charges depend on the actual pipeline.
- **Agentic RAG versus an AI agent.** An agent is a model that directs its own steps and tool calls. Agentic RAG applies that idea to retrieval for answering questions. It is not a separate kind of model.
- **Agentic RAG versus deep research.** Both search in several steps. See [Deep research](/glossary/deep-research). Agentic RAG is a pipeline pattern you build into an application.
- **Myth.** Adding agents makes answers correct. It can improve coverage, but agents can fail or coordinate poorly, and the answer still needs checking against its sources.

## Worked examples in this catalogue

### [What Is RAG? Retrieval-Augmented Generation Explained](https://skillalmanac.com/learn/what-is-rag)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide explains the two phases of a fixed RAG pipeline, indexing and querying, with a worked chunking example.

Why it exercises the concept: Agentic RAG changes the query phase of this pipeline, so read the fixed version first. It shows what a single retrieval pass finds and where it misses.

### [library-docs-lookup](https://skillalmanac.com/skills/skill-almanac/library-docs-lookup)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An agent answers a library question from the installed package's own files, with file and line cited.

Why it exercises the concept: A coding agent that searches, reads, then searches again is doing a small agentic retrieval loop over code. The citations let you check what it used.

### [cited-deep-research](https://skillalmanac.com/skills/skill-almanac/cited-deep-research)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A research run in which every claim traces to a logged source and quote, checked by script.

Why it exercises the concept: Multi-step research with logged sources has the same shape as agentic RAG. The log is how you audit which retrievals the answer rests on.

### [How to Use an AI Agent on a First Task You Can Check](https://skillalmanac.com/learn/how-to-use-an-ai-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide points to installation guidance and walks one bounded task, then reads the diff and runs tests before accepting it.

Why it exercises the concept: It sets out a habit that agentic RAG needs too: give an agent a task small enough to check, and read what it did before trusting the result.

## Related terms

- [Retrieval-augmented generation (RAG)](https://skillalmanac.com/glossary/retrieval-augmented-generation.md)
- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Agentic AI](https://skillalmanac.com/glossary/agentic-ai.md)
- [Tool calling (function calling)](https://skillalmanac.com/glossary/tool-calling.md)
- [Vector database](https://skillalmanac.com/glossary/vector-database.md)
- [Hybrid search](https://skillalmanac.com/glossary/hybrid-search.md)
- [Agentic search](https://skillalmanac.com/glossary/agentic-search.md)

## Sources

- [What is agentic RAG?](https://www.ibm.com/think/topics/agentic-rag), IBM (accessed 2026-11-24)
- [Agentic Retrieval Overview - Foundry IQ (Azure AI Search)](https://learn.microsoft.com/en-us/azure/search/agentic-retrieval-overview), Microsoft Learn (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
