> ## Documentation Index
> Fetch the complete documentation index at: https://langchain.idochub.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Exa

> [Exa](https://exa.ai/) is a knowledge API for AI and developers.

## Installation and Setup

`Exa` integration exists in its own [partner package](https://pypi.org/project/langchain-exa/). You can install it with:

```python theme={null}
%pip install -qU langchain-exa
```

In order to use the package, you will also need to set the `EXA_API_KEY` environment variable to your Exa API key.

## Retriever

You can use the [`ExaSearchRetriever`](/oss/python/integrations/tools/exa_search#using-exasearchretriever) in a standard retrieval pipeline. You can import it as follows.

See a [usage example](/oss/python/integrations/tools/exa_search).

```python theme={null}
from langchain_exa import ExaSearchRetriever
```

## Tools

You can use Exa as an agent tool as described in the [Exa tool calling docs](/oss/python/integrations/tools/exa_search#use-within-an-agent).

See a [usage example](/oss/python/integrations/tools/exa_search).

### ExaFindSimilarResults

A tool that queries the Metaphor Search API and gets back JSON.

```python theme={null}
from langchain_exa.tools import ExaFindSimilarResults
```

### ExaSearchResults

Exa Search tool.

```python theme={null}
from langchain_exa.tools import ExaSearchResults
```
