Skip to content

feat(ai): search the web through SearXNG - #3980

Merged
dan-petty merged 3 commits into
mainfrom
feat/3927-searxng-search-provider
Nov 7, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/3927-searxng-search-provider

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add the searxng provider to the web search chain (#3925). It sends GET <search.searxng_url>/search with format=json, follows no redirect, and reads at most 1 MiB. A status other than 200 fails with the status as the result. An empty reply with an unresponsive engine is degraded. A loopback address needs no flag, and a cluster address needs ai.allow_private_network. An address that the egress check refuses passes the search on as refused. The setting search.searxng_url has no default, so the provider is skipped without it.

Closes #3927

Change: openspec/changes/archive/2026-11-07-3927-searxng-search-provider/

@dan-petty dan-petty added type/feature Type feature: a new function scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence for #3927.

  • New tests: tests/ai/test_web_search_searxng.py (28 cases). They fail on origin/main, because SearxngProvider and DEFAULT_SEARXNG_MAX_REPLY_BYTES do not exist there (ImportError at collection).
  • Full uv run devops ci on the final tree: all checks pass, including test and coverage. The test row took 5m 54s, over the 5-minute budget. The slowest test is tests/prometheus/test_k8s_monitoring_alerting.py::test_each_unit_tested_rule_fires_on_a_sample_and_stays_quiet_on_a_normal_series (101 s), a known cause that this change does not touch (fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593).
  • NOT RUN: a live query to SearXNG. The manifests (feat(k8s): run SearXNG in namespace devops #3924) are not in main, so no pod exists. The reply fixture tests/fixtures/searxng/search_reply.json holds the shape that the SearXNG search API document gives (docs/dev/search_api.rst at commit 629368e40), not a saved reply, so this PR cites no image digest. The criterion "replace the fixture with a reply saved from the pinned digest, and check the categories value" moved to test(k8s): live check of the SearXNG service #3929 (comment posted there, and the body of feat(ai): add the SearXNG search provider #3927 edited).
  • categories is general,it,science, read from the engine files of the kept engines at the pinned commit.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 13:30
@dan-petty
dan-petty merged commit dc276b0 into main Nov 7, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/3927-searxng-search-provider branch November 7, 2026 13:31
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.81.0](v0.80.0...v0.81.0)
(2026-11-07)


### Features

* **ai:** add the fetch-page command and MCP tool
([#3982](#3982))
([93c8008](93c8008)),
closes [#3892](#3892)
* **ai:** search the web through SearXNG
([#3980](#3980))
([dc276b0](dc276b0))
* **k8s:** run Crawl4AI in the devops namespace
([#3977](#3977))
([2be237b](2be237b)),
closes [#3884](#3884)
* **research:** find advisories for the pins of the project
([#3994](#3994))
([1d62738](1d62738)),
closes [#3898](#3898)
* **roadmap:** add a fetch_page tool to refine and alternatives
([#3974](#3974))
([7f2817c](7f2817c)),
closes [#3890](#3890)


### Bug Fixes

* **ai:** remove weight recs from gateway tune
([#3992](#3992))
([766fb99](766fb99))
* **k8s:** set the verification window in the example ConfigMap
([#3986](#3986))
([8436734](8436734))


### Code Refactoring

* **ui:** audit five dashboard tabs against open tools
([#3984](#3984))
([3ea416b](3ea416b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ai): add the SearXNG search provider

1 participant