Skip to main content

Exa

Exa is a knowledge API for AI and developers.

Installation and Setup

Exa integration exists in its own partner package. You can install it with:

%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 in a standard retrieval pipeline. You can import it as follows.

See a usage example.

from langchain_exa import ExaSearchRetriever
API Reference:ExaSearchRetriever

Tools

You can use Exa as an agent tool as described in the Exa tool calling docs.

See a usage example.

ExaFindSimilarResults

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

from langchain_exa.tools import ExaFindSimilarResults
API Reference:ExaFindSimilarResults

ExaSearchResults

Exa Search tool.

from langchain_exa.tools import ExaSearchResults
API Reference:ExaSearchResults

Was this page helpful?