DeepResearchAgent: Multi-step cited reports
Run iterative research with source citations
A single prompt cannot synthesize 15 sources thoroughly. DeepResearchAgent plans sub-questions, gathers evidence iteratively, cross-checks claims, and compiles a cited report.
Example
from praisonai import DeepResearchAgent
researcher = DeepResearchAgent(
name='MarketAnalyst',
instructions='Produce concise, source-cited technical comparisons.',
)
report = researcher.research('Compare SQLite, Chroma, and Qdrant for local RAG')
print(report)Example explained
- DeepResearchAgent — Orchestrates multi-step web/document investigation and synthesis automatically.
- researcher.research(…) — Executes iterative search-and-synthesize passes returning a structured report with citations.
Scope research prompts for crisp, high-signal reports
Always specify audience, comparison criteria (e.g., latency, licensing, RAM usage), and output length ('max 600 words with a comparison table') so deep research stays focused.
Common pitfall: using DeepResearchAgent for trivial lookups
Deep research makes many sequential LLM and search calls. Use a regular Agent with web=True for quick 5-second questions; reserve DeepResearchAgent for thorough briefs.
Reference: documentation