Skip to main content
Prerequisites
  • Python 3.10 or higher
  • PraisonAI Agents package installed
  • exa_py package installed
  • EXA_API_KEY environment variable set
The user describes a research topic; Exa search returns high-quality web and paper results. Exa provides AI-powered neural search capabilities optimized for LLM applications. PraisonAI includes built-in Exa tools for easy integration.

Quick Start

1

Install and set key

2

Search with agent

Installation

Setup

Built-in Exa Tool

PraisonAI provides a built-in exa tool that you can import directly:

Available Functions

Basic Usage

Search with Options

Search with Content

Find Similar Pages

AI-Generated Answers

With PraisonAI Agent

Using ExaTools Class

For more control, use the ExaTools class directly:

Search Parameters

Categories

Exa supports filtering by data categories: For comprehensive research, use deep search with additional queries:

Structured Summaries

Get structured data from search results:

Key Points

  • Neural search: AI-powered semantic understanding of queries
  • Environment variable: Set EXA_API_KEY before running
  • Categories: Filter results by data type for cleaner results
  • Deep search: Use additional queries for comprehensive research
  • Structured output: Get JSON-formatted summaries with schemas

Best Practices

Exa excels at conceptual queries - use it over keyword search for research tasks.
Set contents=True to get page content alongside search results, saving an extra step.
Use start_published_date to filter for recent content when you need current information.
Enable highlights=True to get the most relevant passages instead of full page content.

Custom Tools

Build your own agent tools

Tools Overview

Browse PraisonAI tool documentation