Overview
Exa is a neural search engine that uses embeddings to find semantically similar content. It’s particularly good at finding content that matches the meaning of your query.Installation
Environment Variables
How It Works
Quick Start
1
Simple Usage
2
With Configuration
Use the same tool with an agent — see Usage with Agent below, or pass env vars and options from the sections above.
Usage with Agent
Available Methods
search(query, num_results=10)
Search for content using neural search.find_similar(url, num_results=10)
Find content similar to a given URL.get_contents(urls)
Get full content from URLs.Configuration Options
Function-Based Usage
CLI Usage
Error Handling
Common Errors
Best Practices
Let EXA_API_KEY come from the environment
Let EXA_API_KEY come from the environment
ExaTool() defaults to the EXA_API_KEY env var. Set it in your shell or .env instead of passing api_key= inline.Cap num_results
Cap num_results
search(query, num_results=10) defaults to 10. Lower it for faster, cheaper agent loops when you only need the top matches.Handle rate limits
Handle rate limits
Exa returns a rate-limited response under heavy use. Check for an
error key in results and fall back to another search tool so the agent degrades gracefully.Related Tools
Tavily
AI-powered search
DuckDuckGo
Privacy-focused search
Serper
Google search API

