Exa Agentic Search Tool
Intelligent agentic research with AI-controlled search parameters
π Full Documentation: GitHub Repository
What This Does
The Exa Agentic Search is a complete rewrite of the search system with an agentic architecture. Instead of rigid search modes, the AI agent now has full control over search parametersβdynamically adapting search type, categories, date filters, domain filters, and result counts based on your query complexity.
π Works Best With
Auto Tool Selector (Function) - Install this companion function for automatic tool activation and enhanced capabilities.
Key Features
- Agent-Controlled Parameters - AI decides search type, category, date ranges, and domains.
- Iterative Research - Multi-pass search with intelligent stopping criteria.
- Smart Query Generation - Agent generates optimized queries based on context.
- Real-Time Status - Live progress updates keep you informed throughout the agent's thought and search process.
- Enhanced Debug System - Clean, focused logging with session summaries.
- Unified API - Single efficient API call with
search_and_contents.
What's New in v2.0.0
- Agentic Architecture: The AI controls all search parameters, not rigid modes.
- Intelligent Stopping: Agent decides when enough information is gathered.
- Real-Time UI Status: Watch the agent iterate through research steps live in your OpenWebUI chat.
- Standardized Output: Consistent format (EXTRACTED_INFO β EVALUATION β DECISION β SEARCH_CONFIG).
- Updated Model Support: Optimized for the latest advanced reasoning models like GPT-5.4 Thinking, Gemini 3.1 Pro, and DeepSeek.
- Simplified Config: Just 4 core settings for easier management instead of 6+.
Prerequisites
Required: Exa API Key
Get your free API key at exa.ai and add it to the exa_api_key setting.
Recommended: Auto Tool Selector
This tool works best with the Auto Tool Selector Function for automatic, seamless activation without manual toggling.
Installation
- Install Dependencies: Run
pip install exa_py inside your OpenWebUI Docker container.
- Install Tool: Go to Workspace β Tools β New Tool and paste the
exa_agentic_search.py code.
- Set Tool ID to:
exa_agentic_search (important!)
- Add your Exa API key in tool settings.
- Install the companion function: Auto Tool Selector.
How the Agent Works
The agent intelligently adapts to your query:
Simple Queries
"What is the capital of France?"
β Quick search, finds answer, stops after 1 iteration (~10 seconds)
Research Queries
"Compare the latest developments in quantum computing from different research labs"
β Multi-iteration search, comprehensive synthesis (~30-60 seconds)
The Agent Controls
| Parameter | Options | Example |
search_type | auto, neural, fast, deep | neural for semantic search |
category | news, research paper, github, company, tweet, pdf, etc. | research paper for academic queries |
num_results | 1-25 | More results for research, fewer for simple facts |
date_filters | start/end dates | Recent news vs historical data |
domain_filters | include/exclude domains | Focus on specific sources |
Key Settings
| Setting | Purpose | Recommendation |
exa_api_key | Required: Your Exa API key | Get from exa.ai |
agent_model | Controls search strategy & evaluation | GPT-5.4 Thinking, Gemini 3.1 Pro, or local DeepSeek |
max_iterations | Maximum search passes before stopping | 3 (default) |
debug_enabled | Detailed operation logs | false (enable for troubleshooting) |
show_sources | Display source citations in UI | false (optional) |
Debug Output
When debug is enabled, you'll see clean, focused output in your Docker logs (docker logs open-webui -f):
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π AGENTIC SEARCH [1234]
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Query: quantum computing developments
βΆ ITERATION 1/3
ββ Config:
β Query: quantum computing 2026 breakthroughs...
β Type: auto | Cat: news | Num: 10
ββ Results: 8 docs
β β’ nature.com - Breakthrough in quantum...
ββ Decision: β STOP
π SESSION SUMMARY
Stats: 2.5s total | 2 LLM calls | 8 sources
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Usage Tips
- Let the agent decide: No need to specify search modesβit adapts automatically.
- Complex queries: The agent will iterate and refine searches as needed.
- Real-Time Feedback: Watch the UI status to see what search categories and keywords the agent is evaluating.
- Debug issues: Enable
debug_enabled and check Docker logs.
- Performance: Simple queries stop early, complex ones get thorough research.
Migrating from Exa Router Search
If you're upgrading from the previous version:
- Update the tool code with the new
exa_agentic_search.py.
- Ensure the Tool ID is set to
exa_agentic_search (update your Auto Tool Selector settings if you changed it).
- Settings are simpler nowβ
agent_model replaces the multiple model-specific settings.
Elevate your AI's research capabilities with intelligent, agentic web search.