Forget RAG, welcome Agentic RAG

Ayaan Merchant
2 min readNov 21, 2024

--

๐—ก๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฅ๐—”๐—š
In Native RAG, the most common implementation nowadays, the user query is processed through a pipeline that includes retrieval, reranking, synthesis, and generation of a response.

This process leverages retrieval and generation-based methods to provide accurate and contextually relevant answers.

๐—”๐—ด๐—ฒ๐—ป๐˜๐—ถ๐—ฐ ๐—ฅ๐—”๐—š
Agentic RAG is an advanced, agent-based approach to question answering over multiple documents in a coordinated manner. It involves comparing different documents, summarizing specific documents, or comparing various summaries.

Agentic RAG is a flexible framework that supports complex tasks requiring planning, multi-step reasoning, tool use, and learning over time.

๐—ž๐—ฒ๐˜† ๐—–๐—ผ๐—บ๐—ฝ๐—ผ๐—ป๐—ฒ๐—ป๐˜๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ
- Document Agents: Each document is assigned a dedicated agent capable of answering questions and summarizing within its own document.

- Meta-Agent: A top-level agent manages all the document agents, orchestrating their interactions and integrating their outputs to generate a coherent and comprehensive response.

๐—™๐—ฒ๐—ฎ๐˜๐˜‚๐—ฟ๐—ฒ๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—•๐—ฒ๐—ป๐—ฒ๐—ณ๐—ถ๐˜๐˜€
- Autonomy: Agents act independently to retrieve, process, and generate information.

- Adaptability: The system can adjust strategies based on new data and changing contexts.

- Proactivity: Agents can anticipate needs and take preemptive actions to achieve goals.

Applications
Agentic RAG is particularly useful in scenarios requiring thorough and nuanced information processing and decision-making.

A few days ago, I discussed how the future of AI lies in AI Agents. RAG is currently the most popular use case, and with an agentic architecture, you will supercharge RAG!

--

--

Responses (2)