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.1.tar.gz (5.4 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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_tools_serpdive-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7812cf5044bfde404a1bafbb77596a6822cad58c4a641fadab81f2e3053da5ef
MD5 870da016205e8015d6d93549ccba82d1
BLAKE2b-256 e42090ed1b6a63bade3570dfdbf472c3ad1c0dca3da662d49050ccaec48e32cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_tools_serpdive-0.2.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_serpdive-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1362f41eb141c137265ee20e24256d055710d2c803dcd0ab057f506884a1db6a
MD5 2dec8b47a83de6b3e4639f5019e35db7
BLAKE2b-256 99d1dfdb96f45a5016f0405c569690a521c4605ca6f4efcf36a967e5c82d0dd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_tools_serpdive-0.2.1-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