Skip to content

Providers

Pummelchen edited this page Sep 16, 2026 · 16 revisions

Home · Installation · Compatibility · Tools Reference · Architecture · Providers · Configuration · Reliability · Security · Self-Hosting · Monitor · Testing · Troubleshooting · Project Tracker


The set

Nine search adapters plus Jina for page extraction. Every credential is optional.

Provider Kind Credentials Selectable Fusion weight
Tavily AI-oriented index TAVILY_API_KEY yes 1.0
Brave Search independent index BRAVE_SEARCH_API_KEY yes 1.0
Mojeek independent index MOJEEK_API_KEY yes 1.0
Exa neural retrieval EXA_API_KEY yes 1.0
SearXNG self-hosted metasearch SEARXNG_BASE_URL yes 1.0
Open Web Search aggregator OPEN_WEB_SEARCH_URL yes 1.0
DuckDuckGo HTML scraper none on by default 1.0
Startpage HTML scraper none on by default 1.0
Parallel Search MCP upstream MCP service none on by default 1.0

All providers contribute to rank fusion with weight 1.0. An aggregator is discounted only when it resells an index another provider in the same run already owns — see Architecture for why a blanket provider weighting would break rank ordering.

Jina is not a provider and never appears in this table or in SEARCH_PROVIDER_ORDER. It is only the web_open extraction fallback, described at the end of this page.


Which should I use?

Goal Choose
Fastest useful start Tavily
Broad web coverage Brave Search
Index diversity Mojeek
Semantic / research retrieval Exa
No vendor account at all self-hosted SearXNG
Broad coverage in one call Open Web Search, or mode=thorough

The default provider=auto order is Tavily, Brave, Mojeek, Exa, SearXNG, Open Web Search, DuckDuckGo, Startpage, Parallel — configurable via SEARCH_PROVIDER_ORDER. Selection prefers independent indexes, then other direct providers, then aggregators, then the scrapers. Every provider is enabled by default, including the ones needing no credential; a provider without a credential reports not_configured and the rest still serve the query.


Tavily

AI-oriented search with an optional synthesised answer.

  • Preference: first choice when configured.
  • Cost control: search_depth=basic (1 credit) by default. advanced (2 credits) is used only in thorough mode.
  • recency maps to time_range, and include_published_date is requested alongside so the filter is verifiable.
  • Tavily has no days parameter; unknown fields are rejected, so it is never sent.
  • The answer field is surfaced in warnings with attribution.
  • published_date is RFC 1123, not ISO 8601 (Tue, 24 Mar 2026 10:00:00 GMT).
  • The response DTO maps its multi-word fields with explicit CodingKeys, so it must be decoded with default keys. Applying .convertFromSnakeCase rewrites the incoming key to publishedDate before those mappings are consulted, which silently yields nil. This was a real defect caught only by testing against the live API.

Brave Search

Broad web search against Brave's own crawler index, treated as a major independent source.

  • count is capped at 20 and rounded up, because Brave bills per request and a smaller page is not cheaper.
  • Up to three snippets are combined only when they add information.
  • text_decorations=false so no highlight markup leaks into model context.
  • An invalid token is reported as 422 with error.code: SUBSCRIPTION_TOKEN_INVALID, not 401. A bare 422 means bad parameters. The adapter distinguishes the two by inspecting the error code.
  • freshness maps day/week/month/year to pd/pw/pm/py.

Mojeek

An independent crawler index, valuable for diversity rather than cost — its API is a paid product with a limited trial, not a durable free quota.

  • Authentication is an api_key query parameter. The X-Mojeek-Api-Key header is silently ignored and yields 403.
  • An invalid key returns HTTP 200 with an error string in response.status, so the envelope is inspected rather than trusting the status code.
  • fmt defaults to xml, so fmt=json is always sent.
  • The snippet field is desc. Domain filters use fi/fe; recency uses since (with the week window expressed as a date, since week is not a valid value).

Exa

Neural/semantic retrieval with agent-oriented highlights, which are materially more token-efficient than full page text.

  • type=auto normally; deep only in thorough mode.
  • All content controls live inside contents; the legacy top-level text, highlights and summary keys are no longer part of the schema.
  • Highlights are requested by default and used as the snippet.
  • A missing key returns 402; an invalid one returns 401. Both are configuration problems, so neither trips the circuit breaker.
  • The current schema exposes no comparable relevance score, so only rank is carried.

SearXNG

Self-hosted metasearch — the best route when the requirement is no vendor account and no API key.

  • No public-instance list is shipped; that would be an operational liability. The operator supplies their own base URL.
  • JSON output must be enabled. The shipped settings.yml enables only html, so format=json returns 403 until the operator adds json to search.formats. This is classified as a configuration problem, so it does not trip a breaker.
  • unresponsive_engines is surfaced as warnings, which explains thin result sets.
  • Reported upstream engines feed the provenance metadata used by fusion.

Open Web Search

An aggregator, not an index, and therefore discounted only when it resells an index another provider in the same run already owns. It reports per-result engines, so a resold page is folded into the index it came from — the same treatment SearXNG receives.

Contract unverified. No authoritative published specification could be found for a service of this name. The adapter is written defensively: the endpoint is operator-supplied via OPEN_WEB_SEARCH_URL, several common key spellings are accepted, both an envelope and a bare top-level array are decoded, and an unrecognizable body fails cleanly rather than producing malformed results. It is active only when the URL is set.

DuckDuckGo

A best-effort adapter over an undocumented public interface. Disabled by default.

  • Enable with SEARCH_ENABLE_SCRAPERS=true.
  • A bot challenge is served as HTTP 202 with an anomaly-modal, not 403.
  • Result links are wrapped in //duckduckgo.com/l/?uddg=<percent-encoded> and are unwrapped before use, so a model never receives a redirect wrapper.
  • Parsing is selector-first with a structural fallback, and fails cleanly when the markup changes.
  • The engine is reachable or not depending entirely on where the process runs. From a clean egress it answered 10 of 10 queries; from a network that blocks it by DNS it never answers at all. DuckDuckGo also publishes no AAAA record, so IPv6 cannot route around the problem. See Self-Hosting for the measured per-egress table.
  • It is more capable than SearXNG's own DuckDuckGo engine on the same connection: that engine drives DuckDuckGo with scripted form POSTs and is CAPTCHA-challenged even from an egress where this adapter returns results.
  • On a blocking network the failure looks like a TLS defect, and is not. The name is answered with a block-page address, so the connection lands elsewhere and the certificate check fails first. The first measurement of this was misleading, and the correction is the useful part: the system resolver and 1.1.1.1, 8.8.8.8 and 9.9.9.9 all returned the same block-page address, which looks like independent agreement and is not — the ISP redirects UDP/53, so those queries never reached the resolver they named. dig @1.1.1.1 CH TXT id.server shows it: noc-dev (the ISP's Unbound) over UDP, cgk01 (Cloudflare, Jakarta) over TCP. TCP/53, DoT and DoH return the real address, so this is fixable in place, and it is fixed here: the tailnet's DNS configuration now carries https://cloudflare-dns.com/dns-query as a global nameserver with useWithExitNode: true and overrideLocalDNS: true, so MagicDNS — the resolver on every machine — reaches DuckDuckGo directly. All five machines return real results. See Self-Hosting for the four details that made it fiddly, including the macOS one that surprised us. HTTPClient names the likely cause in the failure reason ("…which usually means the name is intercepted or blocked on this network"), because the bare wording reads like a bug here.
  • The CAPTCHA is real but transient, and it is easy to mistake for a block. A burst of probing returned "Unfortunately, bots use DuckDuckGo too… Select all squares containing a duck" as HTTP 202 on html.duckduckgo.com, lite.duckduckgo.com and duckduckgo.com/html, with a bot user-agent and a browser one alike, spaced 15 s apart — and api.duckduckgo.com answered the same way. A single polite request afterwards returned HTTP 200 with 12 real results. So the challenge is a rate/reputation response that clears, not a property of the connection. Rate limiting the provider (1.5 s minimum interval) is the mitigation; hammering it to find out is what provokes it. Treat one challenge as back-pressure, never as proof that the engine is dead.

Startpage

A separate provider id over a Google-derived interface, kept because it draws on a different index. Disabled by default.

  • Its source family is recorded as google, so it is never counted as independent evidence alongside another Google-derived source.
  • It serves an Anubis proof-of-work challenge, so a plain HTTP client cannot retrieve results and it will normally report itself unavailable. This is a property of the site, not a defect.
  • Result markup could not be verified, so parsing is a best-effort structural heuristic.

Parallel Search MCP

An optional upstream MCP service. Using it makes this process both an MCP server and an MCP client.

  • Disabled by default; enable with SEARCH_ENABLE_PARALLEL=true.
  • Default endpoint https://search.parallel.ai/mcp, anonymous access.
  • Speaks JSON-RPC over Streamable HTTP directly, and completes the initialize / notifications/initialized handshake with an Mcp-Session-Id.
  • Discovered tool is web_search, which requires objective and search_queries.
  • Treated as an aggregator, so its vote never counts as independent evidence.

Jina Reader (not a provider)

Jina is not a search provider and is not selectable. JinaSearchProvider and the ProviderID.jina case no longer exist: the old adapter could never be selected — the registry refused it, explicit selection threw, and the provider argument never offered it. Jina now powers only the web_open extraction fallback when native extraction yields too little text. JINA_API_KEY is optional and only raises the reader's rate limit; it does not add a search route and does not affect provider selection or fusion.

Legacy APIs deliberately not supported

API Reason
Google Custom Search JSON Closed to new customers; scheduled to retire 2027-01-01
Bing Search Retired 2025-08-11

Adding a provider

  1. Implement SearchProvider in Sources/WebSearchCore/Providers/: id, isConfigured, fusionWeight and search. (displayName has a default derived from id.) There is no capability declaration to fill in: ProviderCapabilities was declared by every adapter, read by nothing, and claimed pagination three adapters never implemented, so it was removed rather than left as an unkept promise.
  2. Build requests through the shared HTTPClient, and validate responses through HTTPStatusMapper so error classification stays consistent.
  3. Normalize every result through ResultNormalizer.make, which enforces URL validity, domain filters and intra-provider deduplication.
  4. Register it in SearchPipelineFactory with a suitable RateLimiter.Policy.
  5. Add contract tests: happy path, malformed body, 429, auth failure, 5xx, cancellation, and no credential leakage.

Not a provider: grounded answer synthesis

web_answer uses a language model, and it is worth being explicit about why it is not listed above and does not implement SearchProvider.

It cannot search. It has no web access and no retrieval of its own, so as a provider it would return plausible text with no real URLs — precisely the failure this project exists to avoid. Measured, asked for the newest macOS it answered "26.4.1" while the machine ran 26.6.2; asked for a current price unaided it either refuses or confabulates.

Used correctly it is genuinely useful, because the one thing it cannot do is also what makes it safe: given only already-fetched results it cannot cite a document that was never retrieved. AnswerSynthesizer therefore sits beside the orchestrator rather than inside the registry, never appears in fusion, and has its own timeout because generative traffic is a different class from a search request.

The division of labour is the interesting part:

Component Supplies Fails by
Search providers Real documents, ranked and fused Returning nothing
Answer synthesis Prose grounded in those documents Abstaining (INSUFFICIENT)

Choosing providers

Every credential is optional and independent, so a working setup is often one instance plus one API key as a second opinion:

export SEARXNG_BASE_URL=http://127.0.0.1:8888     # self-hosted, JSON output enabled
export TAVILY_API_KEY=tvly-...                    # an API provider as the fallback
export SEARCH_PROVIDER_ORDER=searxng,tavily       # consult them in this order
export SEARCH_ENABLE_SCRAPERS=false               # keep HTML scraping off

Then ask the server what it actually sees, rather than assuming the environment took effect:

// web_search_status → providers[]
// { "name": "searxng",   "state": "ready",    "averageLatencyMs": 210 }
// { "name": "startpage", "state": "inactive", "note": "Set SEARXNG_BASE_URL to ..." }

Each inactive provider carries a note naming what is missing, which is the quickest way to find a misspelled variable or a key that was never exported.

Research notes

docs/provider-api-notes.md in the repository records the API research behind these adapters, with every uncertain point explicitly marked UNVERIFIED.


Home · Installation · Compatibility · Tools Reference · Architecture · Providers · Configuration · Reliability · Security · Testing · Troubleshooting · Project Tracker

Clone this wiki locally