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.
from llama_index.tools.exa import ExaToolSpec
from llama_index.agent.openai import (
OpenAIAgent,
) # requires llama-index-agent-openai
exa_tool = ExaToolSpec(
api_key="your-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. See here for examples.
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
Built Distribution
Hashes for llama_index_tools_exa-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8ba3cf4fcc8b345e6ed20f95fd0a77b22d4925fed162406be869e23284f1c8b |
|
MD5 | bad2690fa6b1dfd4c4d121f9e627f097 |
|
BLAKE2b-256 | adbbdb30b7310472c9335e6e90fdb9730ee2a45571cf4bdad38bc6a75378fa45 |
Hashes for llama_index_tools_exa-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d0f2fda32b171675dec7f690e84476d774cb49a62d1faafe6efe9eb080ba540 |
|
MD5 | 764fb5a29796fbf186bbe6870377a48a |
|
BLAKE2b-256 | 4fb681f2c2753c24c6f029c599081f682e2d22d93c838e7e1e594439f6b06bd2 |