Agentic RAG
RAG with agentic superpowers for unmatched accuracy and depth
What is Agentic RAG?
Agentic RAG (Retrieval-Augmented Generation) takes traditional RAG to the next level by incorporating intelligent agent capabilities:
- Planning: Breaking complex queries into sub-questions for comprehensive answers
- Evaluation: Verifying results against source documents for accuracy
- Multi-step reasoning: Performing multiple retrieval and reasoning steps to build deeper understanding
- Self-correction: Revising approaches based on intermediate results for better outcomes
How Agentset Improves RAG
Traditional RAG systems simply retrieve relevant documents and generate answers based on those documents. Agentset’s Agentic RAG approach takes this further:
- Query Planning: The agent analyzes the user query and determines what information is needed
- Strategic Retrieval: Instead of a single retrieval step, the agent can make multiple targeted retrievals
- Answer Synthesis: The agent combines information from multiple sources to create a comprehensive answer
- Citation Generation: Sources are accurately cited so users can verify information
- Self-Verification: The agent checks its answer against source documents for accuracy
Benefits of Agentic RAG
More Accurate Answers
Multi-step reasoning leads to more precise and accurate responses
Handle Complex Queries
Break down complex questions that simple RAG systems can’t handle
Transparent Reasoning
Follow the agent’s reasoning process for better explainability
Source Verification
Every answer is verified against source documents
Example: Agentic RAG vs. Traditional RAG
Complex Query Example
Complex Query Example
Query: “How did our Q1 sales in Europe compare to Q4 last year, and what factors contributed to the change?”
Traditional RAG: Would try to find documents that specifically mention both Q1 Europe sales and Q4 sales. If such a direct comparison doesn’t exist in the documents, the answer will be incomplete or inaccurate.
Agentic RAG:
- Plans to first find Q1 Europe sales data
- Then separately retrieves Q4 sales data
- Performs a comparison calculation
- Searches for factors that may have influenced the change
- Synthesizes a comprehensive answer with all supporting evidence
Reasoning Example
Reasoning Example
Query: “Based on our financial reports, should we increase investment in our Asia-Pacific division?”
Traditional RAG: Might retrieve documents about Asia-Pacific performance, but would struggle to make a reasoned recommendation based on financial principles.
Agentic RAG:
- Retrieves relevant financial data about Asia-Pacific division
- Identifies key performance metrics
- Compares with other divisions and industry benchmarks
- Considers growth trends and market conditions
- Provides a reasoned recommendation with supporting evidence
Using Agentic RAG
Agentset’s agentic capabilities are built into the chat functionality. When having a conversation with your documents:
Customizing Agentic Behavior
You can customize the agentic RAG approach when creating a namespace or during chat: