Prerequisites
- Python 3.10 or higher
- PraisonAI Agents package installed
exa_pypackage installedEXA_API_KEYenvironment variable set
Quick Start
1
Install and set key
2
Search with agent
Installation
Setup
Built-in Exa Tool
PraisonAI provides a built-inexa tool that you can import directly:
Available Functions
Basic Usage
Simple Search
Search with Options
Search with Content
Find Similar Pages
AI-Generated Answers
With PraisonAI Agent
Using ExaTools Class
For more control, use theExaTools class directly:
Search Parameters
Categories
Exa supports filtering by data categories:Deep Search
For comprehensive research, use deep search with additional queries:Structured Summaries
Get structured data from search results:Key Points
- Neural search: AI-powered semantic understanding of queries
- Environment variable: Set
EXA_API_KEYbefore running - Categories: Filter results by data type for cleaner results
- Deep search: Use additional queries for comprehensive research
- Structured output: Get JSON-formatted summaries with schemas
Best Practices
Use neural search for semantic queries
Use neural search for semantic queries
Exa excels at conceptual queries - use it over keyword search for research tasks.
Retrieve content in the same call
Retrieve content in the same call
Set
contents=True to get page content alongside search results, saving an extra step.Filter by date for fresh results
Filter by date for fresh results
Use
start_published_date to filter for recent content when you need current information.Use highlights for long documents
Use highlights for long documents
Enable
highlights=True to get the most relevant passages instead of full page content.Related
Custom Tools
Build your own agent tools
Tools Overview
Browse PraisonAI tool documentation

