Skip to main content

llama-index tools exa integration

Project description

LlamaIndex Tools Integration: Exa

This tool connects to Exa, one of the best web search APIs for AI, to easily enable your agent to search and get HTML content from the Internet.

To begin, you need to obtain an API key on the Exa developer dashboard.

Usage

This tool has more a extensive example usage documented in a Jupyter notebook here

Here's an example usage of the ExaToolSpec.

# %pip install llama-index llama-index-core llama-index-tools-exa

from llama_index.tools.exa import ExaToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

exa_tool = ExaToolSpec(
    api_key=os.environ["EXA_API_KEY"],
)
agent = FunctionAgent(
    tools=exa_tool.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(
    await agent.run(
        "Can you summarize the news published in the last month on superconductors"
    )
)

search: Search the web using Exa for a list of articles relating to a natural language query

retrieve_documents: Retrieve a list of documents returned from exa_search.

search_and_retrieve_documents: Combines search and retrieve_documents to directly return a list of documents related to a search

find_similar: Find similar documents to a given URL.

current_date: Utility for the Agent to get todays date

This loader is designed to be used as a way to load data as a Tool in a Agent.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_exa-0.5.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_tools_exa-0.5.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_exa-0.5.1.tar.gz.

File metadata

  • Download URL: llama_index_tools_exa-0.5.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_exa-0.5.1.tar.gz
Algorithm Hash digest
SHA256 d2325eb3f356731018c5e8de4d78775f04479b9f9d97bbd8b15ba66f0faf13ce
MD5 ef725b78c264824f186b0ecd7e38b3e5
BLAKE2b-256 86a2a87ab3845b9194e1acbd9e94759e5f9ea1eaabbdaf979741f3e5652df9ad

See more details on using hashes here.

File details

Details for the file llama_index_tools_exa-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: llama_index_tools_exa-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_exa-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ed6a4ee2bf3cac957a96442797a978f40a338fa7cec02aa8062665fb72b8ab
MD5 83fdc079b3d113670bc152b0f2d2fbaf
BLAKE2b-256 b5d36af5cbab32d3fbab058a3c79480c85d62fef9eadb0129dbc74d7a2f38a40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page