Skip to main content
The --web-search flag enables native web search capabilities for supported LLM providers.

Quick Start

Web Search Finds Current Information

Usage

Expected Output:

Combine with Other Flags

Supported Providers

YAML Equivalent

Use web: true on an agent with a web-search enabled model:

How It Works

  1. Enable: The --web-search flag activates providerโ€™s native search
  2. Query: Your prompt is sent with web search capability
  3. Search: Provider searches the web for relevant information
  4. Synthesize: Results are synthesized into a coherent response
  5. Cite: Sources are included when available

Examples

News Query

Research Query

Real-time Data

Programmatic Usage

Comparison with Other Options

Best Practices

Use --web-search for quick, real-time information. For in-depth research, use praisonai research instead.
Web search availability depends on the provider and model. Not all models support native web search.