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?