Skip to main content
Exa is a neural search engine that finds semantically similar content for your agents.

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

Get your API key from Exa.

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

ExaTool() defaults to the EXA_API_KEY env var. Set it in your shell or .env instead of passing api_key= inline.
search(query, num_results=10) defaults to 10. Lower it for faster, cheaper agent loops when you only need the top matches.
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.

Tavily

AI-powered search

DuckDuckGo

Privacy-focused search

Serper

Google search API