Skip to main content

AutoRagAgent

Defined in the Auto RAG Agent module.
AI Agent Agent wrapper with automatic RAG retrieval decision. Decides when to perform retrieval based on policy and heuristics, then composes RAG context with Agent chat. This follows the same pattern as AutoAgents but for RAG:
  • AutoAgents: auto-generates agent configs from instructions
  • AutoRagAgent: auto-decides when to retrieve context

Constructor

agent
Agent
required
No description available.
rag
Optional
No description available.
config
Optional
No description available.

Methods

rag()

Lazy load RAG from agent if not provided.

name()

Delegate name to wrapped agent.

chat()

Chat with automatic RAG retrieval decision.

achat()

Async version of chat.

Usage

Source

View on GitHub

praisonaiagents/agents/auto_rag_agent.py at line 105

Agents Concept

Single Agent Guide

Multi-Agent Guide

Agent Configuration

Auto Agents