LlamaIndex tool for SERPdive, the AI Search API and Tavily alternative: answer-ready web content for agents, same speed, 20.2% fewer tokens, higher answer quality (60.7% of decided duels) on a public benchmark
Project description
llama-index-tools-serpdive
The official LlamaIndex tool for SERPdive, the AI Search API: your agent asks a question, the tool returns Documents whose text is answer-ready web content, extracted, cleaned, and sized for an LLM. On a public, replayable 1,000-question benchmark, SERPdive runs at the same speed as Tavily, feeds your LLM 20.2% fewer tokens, and wins 60.7% of decided quality duels.
Install
pip install llama-index-tools-serpdive
Get a free API key (no card required) at serpdive.com/dashboard/keys and set it:
export SERPDIVE_API_KEY="sd_live_..."
Use directly
from llama_index_tools_serpdive import SerpdiveToolSpec
spec = SerpdiveToolSpec()
documents = spec.serpdive_search("latest developments in solid state batteries")
# each Document: text = extracted page content; metadata = {url, title, date}
Use in an agent
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.anthropic import Anthropic
from llama_index_tools_serpdive import SerpdiveToolSpec
agent = FunctionAgent(
tools=SerpdiveToolSpec().to_tool_list(),
llm=Anthropic(model="claude-sonnet-5"),
)
await agent.run("What changed in the EU AI Act this month?")
Options
SerpdiveToolSpec(
model="moby", # "mako" (default): key sentences, fast. "moby": full page text, deep research
max_results=5, # hard cap on delivered results, 1-10
api_key="sd_live_...", # defaults to SERPDIVE_API_KEY
)
Localization is automatic: the language of the query picks where we search. Failed searches are never billed.
Links
- API reference
- Public benchmark (replayable end to end)
- Python SDK (this package is a thin layer over it)
- MCP server for Claude, Cursor and other MCP clients
License
MIT
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_serpdive-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_tools_serpdive-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
931358d79a976d56533ba9d6c0392f7cc4ce245e580c00b4aaae71fd78c251b5
|
|
| MD5 |
bef2c76db7333759b925b80642471330
|
|
| BLAKE2b-256 |
f9886cbe0264de38f362260b0ff90e7559fb6e52ff0669f215fc120569a7afa6
|
Provenance
The following attestation bundles were made for llama_index_tools_serpdive-0.1.0.tar.gz:
Publisher:
publish.yml on serpdive/llama-index-tools-serpdive
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_serpdive-0.1.0.tar.gz -
Subject digest:
931358d79a976d56533ba9d6c0392f7cc4ce245e580c00b4aaae71fd78c251b5 - Sigstore transparency entry: 2195652149
- Sigstore integration time:
-
Permalink:
serpdive/llama-index-tools-serpdive@697760497c8e6af3abc5fa9b6b5aaad55e0d4a4d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/serpdive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@697760497c8e6af3abc5fa9b6b5aaad55e0d4a4d -
Trigger Event:
push
-
Statement type:
File details
Details for the file llama_index_tools_serpdive-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_serpdive-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e047f289a48b156ac76a6f986472906a86c73c72194fa18567a8cf6eb6737e8
|
|
| MD5 |
b21ca89957a2cf712a6461157c210266
|
|
| BLAKE2b-256 |
756a1cc0540a74536d1ec6e9e43e8e2d679e9a25cbbad8b3c8eef5bddffbe257
|
Provenance
The following attestation bundles were made for llama_index_tools_serpdive-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on serpdive/llama-index-tools-serpdive
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_serpdive-0.1.0-py3-none-any.whl -
Subject digest:
1e047f289a48b156ac76a6f986472906a86c73c72194fa18567a8cf6eb6737e8 - Sigstore transparency entry: 2195652160
- Sigstore integration time:
-
Permalink:
serpdive/llama-index-tools-serpdive@697760497c8e6af3abc5fa9b6b5aaad55e0d4a4d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/serpdive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@697760497c8e6af3abc5fa9b6b5aaad55e0d4a4d -
Trigger Event:
push
-
Statement type: