Search and Retrieval APIs
Use Tavily with LlamaIndex
The recorded connection between Tavily and LlamaIndex is Official adapter package (llama-index-tools-tavily-research (TavilyToolSpec)). This page records the connection and links the evidence behind it.
Pairing facts
Why this pairing
A web access API built for AI agents: search, extract, map, crawl, and research endpoints behind one key.
Best for: Agents that need current web facts with cited results, research workflows that combine search with page extraction, and teams that want one vendor for search and fetching.
Not ideal for: Fully offline or self-hosted stacks, and high-volume crawling without a credit budget.
Configuration
pip install llama-index-tools-tavily-research
from llama_index.tools.tavily_research import TavilyToolSpec
tavily_tool = TavilyToolSpec(api_key=os.getenv("TAVILY_API_KEY"))Source: https://developers.llamaindex.ai/python/framework/understanding/agent/streaming/. Examples use placeholders only.
Evidence
The LlamaIndex developer docs streaming page installs llama-index-tools-tavily-research, imports TavilyToolSpec from llama_index.tools.tavily_research and uses TAVILY_API_KEY.
https://developers.llamaindex.ai/python/framework/understanding/agent/streaming/
Compatibility means the cited page documents the pairing. It does not mean AgentsUse benchmarked the combination or that every version behaves the same. Pin versions, start with a small job, and review the first outputs before widening access.
Watch for
- Metered by credits, so unattended crawl loops need spending controls.
- A managed service: no self-hosted fallback when Tavily is down or a source blocks it.