Skip to main content

llama-index tools exa integration

Project description

LlamaIndex Tools Integration: Exa

This tool connects to Exa 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.agent.openai import OpenAIAgent

exa_tool = ExaToolSpec(
    api_key=os.environ["EXA_API_KEY"],
)
agent = OpenAIAgent.from_tools(exa_tool.to_tool_list())

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

search: Search 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.3.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

llama_index_tools_exa-0.3.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_tools_exa-0.3.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0

File hashes

Hashes for llama_index_tools_exa-0.3.0.tar.gz
Algorithm Hash digest
SHA256 873f342352c5280d0c634052b5aba2d067473be6b9b35e722baad704a50972f5
MD5 d29af6af3bc109f2406cd96059e0e365
BLAKE2b-256 c177d3b59a199c5f0e8127851e4d84ec95101cf9118e79dd2cfa7316caa75257

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_exa-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f428c1c86f78cd2a107a6a23c601ab13eda5a3c540b85a02be12b132e0ccc78e
MD5 764f3e74b47c57efc03b4310e053e7f5
BLAKE2b-256 a9b887271bf4bc96f2a57fd55b4fa8482d4970f259a4618a45bc2b9fbd70afab

See more details on using hashes here.

Supported by

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