Skip to main content

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.

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.

Links

License

MIT

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

llama_index_tools_serpdive-0.2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_tools_serpdive-0.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_serpdive-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_serpdive-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4087fc35c568994ed4f328359fcf63dee5fdffabdca25342ca2cea7749ec15d2
MD5 7b293cc20a6d97c7e4a681388b90128b
BLAKE2b-256 0d1f9b84b2cfcaca621a98c485306d70a4bd04e1d735b892bae7958f87cb24e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_tools_serpdive-0.2.0.tar.gz:

Publisher: publish.yml on serpdive/llama-index-tools-serpdive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llama_index_tools_serpdive-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_serpdive-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c5b4ee8599e1e86bdaf5d3dbf54128b0e3ba89ef1f335bed456acbeb4977d0b
MD5 b89ec558db88665b995c76d03705b29c
BLAKE2b-256 0144a387d63785e11fb542f2ac2e6828bdaf64ffaeedbeffda25b26360cc74dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_tools_serpdive-0.2.0-py3-none-any.whl:

Publisher: publish.yml on serpdive/llama-index-tools-serpdive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page