Skip to main content
The research command enables automated deep research with real-time streaming, web search, and structured citations using OpenAI or Gemini Deep Research APIs.

Quick Start

praisonai research "What are the latest AI trends in 2025?"

Usage

Basic Research

# Default: OpenAI (o4-mini-deep-research)
praisonai research "What are the latest AI trends in 2025?"

# Use Gemini
praisonai research --model deep-research-pro "Your research query"
Expected Output:
๐Ÿ”ฌ Starting deep research...

โ•ญโ”€ Research Progress โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  ๐Ÿ“Š Searching for relevant sources...                                        โ”‚
โ”‚  ๐Ÿ“š Analyzing 15 documents...                                                โ”‚
โ”‚  โœ๏ธ Synthesizing findings...                                                 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Report โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # AI Trends in 2025                                                          โ”‚
โ”‚                                                                              โ”‚
โ”‚ ## Key Findings                                                              โ”‚
โ”‚ 1. Multimodal AI systems are becoming mainstream...                         โ”‚
โ”‚ 2. Agent-based architectures are gaining adoption...                        โ”‚
โ”‚                                                                              โ”‚
โ”‚ ## Citations                                                                 โ”‚
โ”‚ [1] https://example.com/ai-trends                                           โ”‚
โ”‚ [2] https://example.com/research-paper                                      โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

With Query Rewrite

# Rewrite query before research
praisonai research --query-rewrite "AI trends"

# Rewrite with search tools
praisonai research --query-rewrite --rewrite-tools "internet_search" "AI trends"

With Custom Tools

# Use custom tools from file (gathers context before deep research)
praisonai research --tools tools.py "Your research query"
praisonai research -t my_tools.py "Your research query"

# Use built-in tools by name (comma-separated)
praisonai research --tools "internet_search,wiki_search" "Your query"
praisonai research -t "yfinance,calculator_tools" "Stock analysis query"

Save Output

# Save output to file (output/research/{query}.md)
praisonai research --save "Your research query"
praisonai research -s "Your research query"

Combine Options

# Full featured research
praisonai research --query-rewrite --tools tools.py --save "Your research query"

# Verbose mode (show debug logs)
praisonai research -v "Your research query"

Supported Models

ProviderModels
OpenAIo4-mini-deep-research, o3-deep-research
Geminideep-research-pro

How It Works

  1. Query Processing: Optionally rewrites query for better results
  2. Context Gathering: Uses tools to gather relevant context
  3. Deep Research: Executes multi-step research with web search
  4. Synthesis: Combines findings into structured report
  5. Citations: Includes source URLs and references

Features

Multi-Provider

Support for OpenAI, Gemini, and LiteLLM providers

Real-time Streaming

Live progress updates with reasoning summaries

Structured Citations

Automatic citation extraction with URLs

Built-in Tools

Web search, code interpreter, MCP, file search

Programmatic Usage

from praisonaiagents import DeepResearchAgent

# OpenAI Deep Research
agent = DeepResearchAgent(
    model="o4-mini-deep-research",  # or "o3-deep-research"
    verbose=True
)

result = agent.research("What are the latest AI trends in 2025?")
print(result.report)
print(f"Citations: {len(result.citations)}")

# Gemini Deep Research
agent = DeepResearchAgent(
    model="deep-research-pro",  # Auto-detected as Gemini
    verbose=True
)

result = agent.research("Research quantum computing advances")
print(result.report)

Best Practices

Use --query-rewrite for complex or ambiguous queries to improve research quality.
Deep research uses multiple API calls and can consume significant tokens. Use --metrics to monitor costs.
DoDonโ€™t
Be specific about the topicUse vague single-word queries
Include time constraints (โ€œin 2025โ€)Assume recency
Use --save for long reportsRely on terminal output only
Combine with --tools for contextSkip context gathering