Skip to main content

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.

There is a free tier, and it has no ceiling. The krill model is free and unlimited under fair use — no card, no credits, nothing to decrement. It returns the shortest set of sentences that still answers (about 700 tokens a search, roughly half what the usual alternatives send), one request at a time, at low priority. Use it to build; switch one word to mako when you need depth and steady latency.

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.

License

MIT

Metadata

Release files for llama-index-tools-serpdive 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-tools-serpdive 0.2.1
File Size Uploaded
llama_index_tools_serpdive-0.2.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-serpdive 0.2.1
File Interpreter ABI Platform
llama_index_tools_serpdive-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / llama_index_tools_serpdive-0.2.1.tar.gz

Download URL llama_index_tools_serpdive-0.2.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7812cf5044bfde404a1bafbb77596a6822cad58c4a641fadab81f2e3053da5ef
BLAKE2b-256 checksum
How to use checksums
e42090ed1b6a63bade3570dfdbf472c3ad1c0dca3da662d49050ccaec48e32cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.

Transparency log

Release files / llama_index_tools_serpdive-0.2.1-py3-none-any.whl

Download URL llama_index_tools_serpdive-0.2.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1362f41eb141c137265ee20e24256d055710d2c803dcd0ab057f506884a1db6a
BLAKE2b-256 checksum
How to use checksums
99d1dfdb96f45a5016f0405c569690a521c4605ca6f4efcf36a967e5c82d0dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page