Web search: upstream engines are blocking or cloaking results — choose a replacement provider #66

Open
opened 2026-11-24 01:48:52 +00:00 by inference-bot · 1 comment
Owner

Summary

Members using web search in the chat are seeing dead citations of the form
http:///go/v1/<token> (rendered as http://go/v1/...), plus answers with weak or
missing page content. The page fetcher is not the cause: it only reads pages and
does not emit URLs. The broken links come from the search stage — SearXNG's
upstream engines.

We need a decision on a replacement search provider, because the current
scraping stack is no longer reliable and several upstream engines now actively
block or obfuscate results.

What is failing (measured 2026-11-24)

  • Brave (scraped): since Brave's 2026-11-11 anti-scraping change, its scraped
    results carry URL-cloaked /go/v1/<token> paths instead of destination URLs.
    SearXNG passes them through, producing http:///go/v1/... — three slashes, no
    host, so every citation is dead. Brave says cloaking is deliberate
    (https://brave.com/blog/google-goto-anti-scraping/). Not fixable by rewriting.
  • DuckDuckGo: all three endpoints (html.duckduckgo.com/html/,
    lite.duckduckgo.com/lite/, duckduckgo.com/html/) return HTTP 202 with an
    "anomaly"/challenge page from our host (AS29222 Infomaniak, Geneva). SearXNG
    logs SearxEngineCaptchaException. Our ddgs tooling succeeds only
    intermittently (~1 of 5 queries), so it is not a fallback we can depend on.
  • Google / Mojeek: HTTP 403 ("unusual traffic") from this host.
  • Startpage: CAPTCHA.
  • Bing: returns HTTP 200 but irrelevant, geo-localised results for our
    queries — unusable as a primary engine.
  • Yahoo: currently returns real, on-topic URLs and is the working general
    engine. It ships disabled: true in SearXNG settings and we enabled it.

Additional finding: LibreChat always sends categories=general, and this
SearXNG ignores the engines= query parameter whenever categories= is present.
So searxngSearchOptions.engines in librechat.yaml does not filter;
engine selection has to happen by disabling engines in SearXNG's
/app/data/settings.yml.

Current mitigation (deployed 2026-11-24)

  • Enabled the Yahoo engine in SearXNG; disabled the Brave engine variants
    (general/images/videos/news) and left the broken scrapers disabled.
  • Chat config (co-op/librechat-custom) now names engines: "yahoo" for
    intent, with a comment explaining the real filtering mechanism.
  • Verified through LibreChat's own search code path: results return real
    https:// destination URLs and no go/v1.

This restores working links but leaves us on a scraped engine with no
privacy commitment and no guarantee it will keep working.

Usage and cost context

  • 4,449 web_search tool calls in the last 30 days, across 53 members
    (~148/day).
  • That volume is the budget baseline for any paid provider.

Options

Option Free capacity Cost at our volume Privacy posture Integration
Yahoo (status quo) Free $0 None stated; scraped; query goes to Yahoo/Bing Already live; fragile
Brave Search API $5 credit/month = 1,000 requests; card required $5/1k; ~$17/month net Own crawler/index, no Google/Bing fallback; ZDR is architectural but enterprise-only; storing results needs a custom plan Native SearXNG braveapi engine; no adapter
Tavily 1,000 credits/month, no card $0.008/credit after; ~$27/month for extra 3.4k Opt-out setting: "Allow Use of Query Data" OFF = query data not stored or used for improvements; SOC 2/GDPR claims; third party, not independent index Native LibreChat provider (search + scraper)
You.com Web Search API $100 credits (10 signup + 90 verification); 100/day keyless $5/1k; credits cover ~4.5 months at current volume ZDR enterprise-only; standard retention otherwise Needs small SearXNG-shaped adapter, or via LiteLLM's you_com search adapter
Marginalia Free non-commercial API key by email; public test key rate-limits $0 (non-commercial, CC-BY-NC-SA attribution) Independent, non-commercial index; no tracking New SearXNG engine or adapter; small coverage — supplement only
Wikipedia / Wikidata / OpenAlex / arXiv APIs Free $0 No tracking; domain-specific Engines/tools; supplements, not general web
Mojeek Contact-gated trial; no free tier ~£2–3/1k Privacy-first, independent index Adapter needed
Self-hosted index (Common Crawl etc.) Free software Engineering + storage Strongest: no third-party query exposure Large build; long-term option

Recommendation

  1. Primary: Brave Search API once a key is available — native braveapi
    engine, independent index, privacy-first, and the free monthly credit covers
    the first 1,000 searches. Before committing, confirm storage rights (chat
    history persists search results) and ZDR terms with Brave sales.
  2. Secondary free capacity: Tavily — 1,000 credits/month with query-data use
    switched off. Useful as a fallback/overflow while Brave terms are settled.
  3. Supplements: Marginalia and Wikipedia/Wikidata for non-commercial and
    factual sources; low cost, values-aligned.
  4. Keep Yahoo as the interim engine until a keyed provider is in place, but
    treat it as temporary.
  5. Keep the You.com credits as a reserve/benchmark option; its adapter work
    is only worth doing if it wins on privacy terms (ZDR) or cost.

Acceptance criteria for closing

  • Web-search results return real https:// destination URLs; no /go/v1 or
    other cloaked links.
  • Page fetching stays on co-op infrastructure (fetch.inference.coop), or the
    change is explicitly documented if a provider's extraction replaces it.
  • Privacy policy, infrastructure page, getting-started, and the data summary
    name the actual search provider(s); no stale Brave/DuckDuckGo claims.
  • Failure behaviour defined: if the primary provider errors or rate-limits,
    fall back to a second engine rather than emitting broken citations.
  • Monthly cost and query budget recorded; provider key stored server-side, not
    in the repo.

References

## Summary Members using web search in the chat are seeing dead citations of the form `http:///go/v1/<token>` (rendered as `http://go/v1/...`), plus answers with weak or missing page content. The page fetcher is **not** the cause: it only reads pages and does not emit URLs. The broken links come from the **search stage** — SearXNG's upstream engines. We need a decision on a replacement search provider, because the current scraping stack is no longer reliable and several upstream engines now actively block or obfuscate results. ## What is failing (measured 2026-11-24) - **Brave (scraped)**: since Brave's 2026-11-11 anti-scraping change, its scraped results carry URL-cloaked `/go/v1/<token>` paths instead of destination URLs. SearXNG passes them through, producing `http:///go/v1/...` — three slashes, no host, so every citation is dead. Brave says cloaking is deliberate (https://brave.com/blog/google-goto-anti-scraping/). Not fixable by rewriting. - **DuckDuckGo**: all three endpoints (`html.duckduckgo.com/html/`, `lite.duckduckgo.com/lite/`, `duckduckgo.com/html/`) return HTTP 202 with an "anomaly"/challenge page from our host (AS29222 Infomaniak, Geneva). SearXNG logs `SearxEngineCaptchaException`. Our `ddgs` tooling succeeds only intermittently (~1 of 5 queries), so it is not a fallback we can depend on. - **Google / Mojeek**: HTTP 403 ("unusual traffic") from this host. - **Startpage**: CAPTCHA. - **Bing**: returns HTTP 200 but irrelevant, geo-localised results for our queries — unusable as a primary engine. - **Yahoo**: currently returns real, on-topic URLs and is the working general engine. It ships `disabled: true` in SearXNG settings and we enabled it. Additional finding: LibreChat always sends `categories=general`, and this SearXNG ignores the `engines=` query parameter whenever `categories=` is present. So `searxngSearchOptions.engines` in `librechat.yaml` does **not** filter; engine selection has to happen by disabling engines in SearXNG's `/app/data/settings.yml`. ## Current mitigation (deployed 2026-11-24) - Enabled the Yahoo engine in SearXNG; disabled the Brave engine variants (general/images/videos/news) and left the broken scrapers disabled. - Chat config (`co-op/librechat-custom`) now names `engines: "yahoo"` for intent, with a comment explaining the real filtering mechanism. - Verified through LibreChat's own search code path: results return real `https://` destination URLs and no `go/v1`. This restores working links but leaves us on a **scraped** engine with no privacy commitment and no guarantee it will keep working. ## Usage and cost context - 4,449 `web_search` tool calls in the last 30 days, across 53 members (~148/day). - That volume is the budget baseline for any paid provider. ## Options | Option | Free capacity | Cost at our volume | Privacy posture | Integration | |---|---|---|---|---| | **Yahoo (status quo)** | Free | $0 | None stated; scraped; query goes to Yahoo/Bing | Already live; fragile | | **Brave Search API** | $5 credit/month = 1,000 requests; card required | $5/1k; ~$17/month net | Own crawler/index, no Google/Bing fallback; ZDR is architectural but enterprise-only; storing results needs a custom plan | Native SearXNG `braveapi` engine; no adapter | | **Tavily** | 1,000 credits/month, no card | $0.008/credit after; ~$27/month for extra 3.4k | Opt-out setting: "Allow Use of Query Data" OFF = query data not stored or used for improvements; SOC 2/GDPR claims; third party, not independent index | Native LibreChat provider (search + scraper) | | **You.com Web Search API** | $100 credits (10 signup + 90 verification); 100/day keyless | $5/1k; credits cover ~4.5 months at current volume | ZDR enterprise-only; standard retention otherwise | Needs small SearXNG-shaped adapter, or via LiteLLM's `you_com` search adapter | | **Marginalia** | Free non-commercial API key by email; public test key rate-limits | $0 (non-commercial, CC-BY-NC-SA attribution) | Independent, non-commercial index; no tracking | New SearXNG engine or adapter; small coverage — supplement only | | **Wikipedia / Wikidata / OpenAlex / arXiv APIs** | Free | $0 | No tracking; domain-specific | Engines/tools; supplements, not general web | | **Mojeek** | Contact-gated trial; no free tier | ~£2–3/1k | Privacy-first, independent index | Adapter needed | | **Self-hosted index (Common Crawl etc.)** | Free software | Engineering + storage | Strongest: no third-party query exposure | Large build; long-term option | ## Recommendation 1. **Primary: Brave Search API** once a key is available — native `braveapi` engine, independent index, privacy-first, and the free monthly credit covers the first 1,000 searches. Before committing, confirm storage rights (chat history persists search results) and ZDR terms with Brave sales. 2. **Secondary free capacity: Tavily** — 1,000 credits/month with query-data use switched off. Useful as a fallback/overflow while Brave terms are settled. 3. **Supplements: Marginalia and Wikipedia/Wikidata** for non-commercial and factual sources; low cost, values-aligned. 4. Keep **Yahoo** as the interim engine until a keyed provider is in place, but treat it as temporary. 5. Keep the **You.com** credits as a reserve/benchmark option; its adapter work is only worth doing if it wins on privacy terms (ZDR) or cost. ## Acceptance criteria for closing - Web-search results return real `https://` destination URLs; no `/go/v1` or other cloaked links. - Page fetching stays on co-op infrastructure (`fetch.inference.coop`), or the change is explicitly documented if a provider's extraction replaces it. - Privacy policy, infrastructure page, getting-started, and the data summary name the actual search provider(s); no stale Brave/DuckDuckGo claims. - Failure behaviour defined: if the primary provider errors or rate-limits, fall back to a second engine rather than emitting broken citations. - Monthly cost and query budget recorded; provider key stored server-side, not in the repo. ## References - Brave anti-scraping/URL-cloaking announcement: https://brave.com/blog/google-goto-anti-scraping/ - Brave Search API pricing/FAQ: https://brave.com/search/api/ - You.com search docs/billing: https://you.com/docs/api-reference/search/v1-search , https://you.com/docs/administration/billing - Tavily credits/privacy: https://docs.tavily.com/documentation/api-credits , https://help.tavily.com/articles/4205958832-understanding-the-allow-use-of-query-data-setting - Marginalia API: https://api.marginalia-search.com/ - Evidence: `search.inference.coop` logs (2026-11-24) and stored web-search tool output in the chat database.
inference-bot added the Infrastructure label 2026-11-24 01:48:52 +00:00

Here is some background information about the index coverage of some of the above services. It was generated by infrastriucture-bot, which isn't able to post here:


Index coverage & provenance of candidate providers (research, 2026-11-24)

Supports the evaluation in this issue: who actually crawls, what lands in each index, and how fresh it is. Only Google, Bing/Microsoft, and Brave operate global-scale independent web indexes (per Brave's own comparison); everything else on our shortlist aggregates, is a niche crawler, or is a curated dataset.

  • Yahoo (status quo) — results draw on Bing's index.
  • Brave Search API — own crawler + independent index of 30–40B pages, growing ~100M new/refreshed pages/day (self-reported). Crawler skips pages Googlebot can't reach (help page); robots.txt is not used to block indexing (only noindex delists). Index also grows via Web Discovery Project (opt-in anonymous query/click data). 100% independent since removing the last Bing fallback (blog).
  • Tavily — underlying index undisclosed in primary docs ("aggregates up to 20 sites per call" with proprietary scoring). A third-party comparison (competitor — weigh accordingly) claims results are essentially Google's sources re-ranked. Not an independent index.
  • You.com — claims "the search index is operated by You.com, not resold from a third party," but Brave lists You.com among its API customers, and Brave's 2026 page says many providers rely on Brave's index in the background; provenance genuinely unclear. Distinctive free knowledge layer of licensed sources (AccuWeather, Nasdaq, S&P Global, Sportradar, World Bank…); full_page extraction serves cached or live-crawled content.
  • Marginalia — own crawler, ~300M documents, English-only, deliberately selects non-commercial content. Full refresh every 8–10 weeks + daily RSS polling. Supplement only, as the issue says.
  • Mojeek — independent crawler-built index since ~2004, passed 6B pages (2022). No tracking. Currently 403s our host (scraping); trial is contact-gated.
  • Wikipedia / Wikidata / OpenAlex / arXiv — curated APIs/datasets, not crawled-web indexes.
  • Common Crawl (self-host path) — open archive, crawl releases ~monthly (~2.2B pages / 382 TiB in Nov 2026); content frozen at crawl time; no query or ranking layer — both must be built. Long-term option, as noted.

Freshness summary: Brave ~100M pages/day recrawl; Bing continuous (per-page cadence unpublished); Marginalia 8–10 weeks; Common Crawl monthly snapshot; Tavily/You.com real-time at query time but underlying recrawl cadence undisclosed.

Candidate not in the options table: Kagi

  • Paid Search API: $12/1k queries + Extract API $4/1k pages, pay-per-use, no free tier → ~$53/month at our 4,449-search/30-day volume, ~3× the Brave estimate above.
  • Provenance: aggregator with its own small non-commercial indexes (Teclis web, TinyGem news); each query fans out to "a dozen or so" major providers worldwide plus Marginalia, Wolfram Alpha, Wikipedia and vertical APIs, then re-ranks with aggressive ad/tracker/SEO-spam down-ranking (search sources). Strongest values alignment of the shortlist (ad-free, member-funded, small web) but highest cost and opaque upstreams.
  • Integration: no native provider — LibreChat's searchProvider accepts serper/searxng/tavily/keenable only; LiteLLM has no Kagi search adapter. Kagi does offer a hosted MCP server (https://mcp.kagi.com/mcp, Search + Extract, bearer key, no OAuth yet) which LibreChat supports — a low-effort pilot path (Kagi as a Tools-menu MCP tool alongside the globe toggle; key stored server-side per the acceptance criteria). The Enrichment API (Teclis/TinyGem) or Kagi's free Small Web feed could also serve as the "small web" supplement instead of standing up a Marginalia engine.

Method caveat: index sizes and growth figures are self-reported (mostly Brave's marketing). Real coverage/quality comparison would need trial keys and a sampled query set — e.g. replaying a subset of members' actual web_search queries against each API.

Here is some background information about the index coverage of some of the above services. It was generated by infrastriucture-bot, which isn't able to post here: --- ## Index coverage & provenance of candidate providers (research, 2026-11-24) Supports the evaluation in this issue: who actually crawls, what lands in each index, and how fresh it is. Only **Google, Bing/Microsoft, and Brave** operate global-scale independent web indexes (per [Brave's own comparison](https://brave.com/search/api/guides/what-sets-brave-search-api-apart/)); everything else on our shortlist aggregates, is a niche crawler, or is a curated dataset. - **Yahoo (status quo)** — results draw on Bing's index. - **Brave Search API** — own crawler + independent index of 30–40B pages, growing ~100M new/refreshed pages/day (self-reported). Crawler skips pages Googlebot can't reach ([help page](https://search.brave.com/help/brave-search-crawler)); robots.txt is *not* used to block indexing (only `noindex` delists). Index also grows via Web Discovery Project (opt-in anonymous query/click data). 100% independent since removing the last Bing fallback ([blog](https://brave.com/blog/search-independence)). - **Tavily** — underlying index undisclosed in primary docs ("aggregates up to 20 sites per call" with proprietary scoring). A third-party comparison (competitor — weigh accordingly) claims results are essentially Google's sources re-ranked. Not an independent index. - **You.com** — claims "the search index is operated by You.com, not resold from a third party," but Brave lists You.com among its API customers, and Brave's 2026 page says many providers rely on Brave's index in the background; provenance genuinely unclear. Distinctive free `knowledge` layer of licensed sources (AccuWeather, Nasdaq, S&P Global, Sportradar, World Bank…); `full_page` extraction serves cached or live-crawled content. - **Marginalia** — own crawler, ~300M documents, English-only, deliberately selects non-commercial content. Full refresh every 8–10 weeks + daily RSS polling. Supplement only, as the issue says. - **Mojeek** — independent crawler-built index since ~2004, passed 6B pages (2022). No tracking. Currently 403s our host (scraping); trial is contact-gated. - **Wikipedia / Wikidata / OpenAlex / arXiv** — curated APIs/datasets, not crawled-web indexes. - **Common Crawl (self-host path)** — open archive, crawl releases ~monthly (~2.2B pages / 382 TiB in Nov 2026); content frozen at crawl time; no query or ranking layer — both must be built. Long-term option, as noted. **Freshness summary:** Brave ~100M pages/day recrawl; Bing continuous (per-page cadence unpublished); Marginalia 8–10 weeks; Common Crawl monthly snapshot; Tavily/You.com real-time at query time but underlying recrawl cadence undisclosed. ### Candidate not in the options table: Kagi - Paid Search API: **$12/1k queries** + Extract API **$4/1k pages**, pay-per-use, **no free tier** → ~**$53/month** at our 4,449-search/30-day volume, ~3× the Brave estimate above. - Provenance: aggregator with its own small non-commercial indexes (**Teclis** web, **TinyGem** news); each query fans out to "a dozen or so" major providers worldwide plus Marginalia, Wolfram Alpha, Wikipedia and vertical APIs, then re-ranks with aggressive ad/tracker/SEO-spam down-ranking ([search sources](https://help.kagi.com/kagi/search-details/search-sources.html)). Strongest values alignment of the shortlist (ad-free, member-funded, small web) but highest cost and opaque upstreams. - Integration: **no native provider** — LibreChat's `searchProvider` accepts serper/searxng/tavily/keenable only; LiteLLM has no Kagi search adapter. Kagi does offer a **hosted MCP server** (`https://mcp.kagi.com/mcp`, Search + Extract, bearer key, no OAuth yet) which LibreChat supports — a low-effort pilot path (Kagi as a Tools-menu MCP tool alongside the globe toggle; key stored server-side per the acceptance criteria). The **Enrichment API** (Teclis/TinyGem) or Kagi's free Small Web feed could also serve as the "small web" supplement instead of standing up a Marginalia engine. **Method caveat:** index sizes and growth figures are self-reported (mostly Brave's marketing). Real coverage/quality comparison would need trial keys and a sampled query set — e.g. replaying a subset of members' actual web_search queries against each API.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: co-op/support#66