Tavily Research Tool
Tavily is a robust research API tailored specifically for LLM Agents. It seamlessly integrates with diverse data sources to ensure a superior, relevant research experience.
To begin, you need to obtain an API key on the Tavily's developer dashboard.
Why Choose Tavily Research API?
- Purpose-Built: Tailored just for LLM Agents, we ensure our features and results resonate with your unique needs. We take care of all the burden in searching, scraping, filtering and extracting information from online sources. All in a single API call!
- Versatility: Beyond just fetching results, Tavily Research API offers precision. With customizable search depths, domain management, and parsing html content controls, you're in the driver's seat.
- Performance: Committed to rapidity and efficiency, our API guarantees real-time outcomes without sidelining accuracy. Please note that we're just getting started, so performance may vary and improve over time.
- Integration-friendly: We appreciate the essence of adaptability. That's why integrating our API with your existing setup is a breeze. You can choose our Python library or a simple API call or any of our supported partners such as Langchain and LLamaIndex.
- Transparent & Informative: Our detailed documentation ensures you're never left in the dark. From setup basics to nuanced features, we've got you covered.
Usage
This tool has a more extensive example usage documented in a Jupyter notebook here
Here's an example usage of the TavilyToolSpec.
from llama_index.tools.tavily_research import TavilyToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tavily_tool = TavilyToolSpec(
api_key="your-key",
)
agent = FunctionAgent(
tools=tavily_tool.to_tool_list(),
llm=OpenAI(model="gpt-4o"),
)
await agent.run("What happened in the latest Burning Man festival?")
Available Functions
search: Search for relevant dynamic data based on a query. Returns a list of Document objects with urls and their relevant content.
extract: Extract raw content from specific URLs using Tavily Extract API. Returns a list of Document objects containing the extracted content and metadata.
Extract Function Example
from llama_index.tools.tavily_research import TavilyToolSpec
tavily_tool = TavilyToolSpec(api_key="your-key")
# Extract content from specific URLs
documents = tavily_tool.extract(
urls=["https://example.com/article1", "https://example.com/article2"],
include_images=True,
include_favicon=True,
extract_depth="advanced", # "basic" or "advanced"
format="markdown", # "markdown" or "text"
)
for doc in documents:
print(f"URL: {doc.extra_info['url']}")
print(f"Content: {doc.text[:200]}...")
This loader is designed to be used as a way to load data as a Tool in an Agent.
Metadata
Release files for llama-index-tools-tavily-research 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_tools_tavily_research-0.6.0.tar.gz | 5.2 kB | Without provenance | Details for llama_index_tools_tavily_research-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_tools_tavily_research-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_tools_tavily_research-0.6.0-py3-none-any.whl |
Total release size: 10.0 kB
Release files / llama_index_tools_tavily_research-0.6.0.tar.gz
| Download URL | llama_index_tools_tavily_research-0.6.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
962806be90eb494be4a92d833f2507f1e22d4a6ef66a5dddc160137057344cf4
|
|
BLAKE2b-256 checksum How to use checksums |
1ab969403410300025a8ae89296e68924d59f8faa029bb35bdb9cf90488291cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}
|
Release files / llama_index_tools_tavily_research-0.6.0-py3-none-any.whl
| Download URL | llama_index_tools_tavily_research-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5bb140da5665387655473e9b22d149521cdde0cb77627f1d7ca599a2b6a3e5e
|
|
BLAKE2b-256 checksum How to use checksums |
c0a2c284ae22d1f8bf8648cb651141863eda38bf6ec4c977f66bae76decae37a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}
|
Security for llama-index-tools-tavily-research 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.