Unified web search over pluggable providers for SQL / RAG.
Query the live web directly from DuckDB SQL through one pluggable provider surface that unifies Brave Search, Tavily, Exa, SearXNG, and DuckDuckGo behind a single result schema -- built for RAG, retrieval, and agent grounding.
This extension turns web search into a first-class SQL data source. Instead of wiring a different HTTP client and JSON shape for every search API, you call one table function and get back the same unified rows -- title, url, snippet, rank, source, published, score, and an extra JSON column for provider-specific fields -- no matter which provider served the query. It is designed for developers building retrieval-augmented generation (RAG) pipelines, search-driven analytics, and AI agents that need fresh, citable web results inside the database, with the ability to swap or A/B providers without rewriting a single query.
Under the hood the worker is a thin, dependency-light connector: every provider is reached over plain HTTP with the httpx client (source) -- no heavyweight provider SDKs are bundled. Each backend is a small adapter that maps the upstream JSON into the shared result shape, with a per-call timeout plus bounded retry/backoff on rate-limit and server errors so a flaky provider never crashes the engine. Because it is an egress connector, results and quotas come from your own upstream subscription: API keys are supplied through the VGI secret provider (one secret type per keyed provider) and are never passed inline in SQL, while DuckDuckGo works key-free.
The function surface is intentionally small. The table function web_search(query, provider := ..., count := ..., page := ...) runs one search against the chosen provider and streams the ranked, unified rows with 0-based page pagination. The scalar web_answer(query, provider) returns a single synthesized one-line answer (via Tavily or the free DuckDuckGo Instant Answer API) or NULL when none is available. The table function search_providers() lists every provider and whether each currently has a key or base URL configured. Runnable, catalog-qualified queries for each function live in that object's examples.
Providers & documentation
Opt-in SerpApi/Serper SERP backends are also available when explicitly enabled. Built and maintained by Query.Farm.