Skip to main content

Overview

Exa is a search engine that retrieves relevant content from the web given some input query. This guide will help you getting started with ExaRetriever retrieval. For detailed documentation of all ExaRetriever features and configurations head to the API reference.

Integration details

Setup

You’ll need to set your API key as an environment variable. The Exa class defaults to EXASEARCH_API_KEY when searching for your API key.
If you want to get automated tracing from individual queries, you can also set your LangSmith API key by uncommenting below:

Installation

This retriever lives in the @langchain/exa package:

Instantiation

Now we can instantiate our retriever:

Usage


API reference

For detailed documentation of all ExaRetriever features and configurations head to the API reference.