ragflow/web/src/pages/agent/form
RuyXu 209b731541
Feat: add SearXNG search tool to Agent (frontend + backend, i18n) (#9699)
### What problem does this PR solve?

This PR integrates SearXNG as a new search tool for Agents. It adds
corresponding form/config UI on the frontend and a new tool
implementation on the backend, enabling aggregated web searches via a
self-hosted SearXNG instance within chats/workflows. It also adds
multilingual copy to support internationalized presentation and
configuration guidance.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

### What’s Changed
- Frontend: new SearXNG tool configuration, forms, and command wiring
  - Main changes under `web/src/pages/agent/`
- New components and form entries are connected to Agent tool selection
and workflow node configuration
- Backend: new tool implementation
- `agent/tools/searxng.py`: connects to a SearXNG instance and performs
search based on the provided instance URL and query parameters
- i18n updates
- Added/updated keys under `web/src/locales/`: `searXNG` and
`searXNGDescription`
- English reference in
[web/src/locales/en.ts](cci:7://file:///c:/Users/ruy_x/Work/CRSC/2025/Software_Development/2025.8/ragflow-pr/ragflow/web/src/locales/en.ts:0:0-0:0):
    - `searXNG: 'SearXNG'`
- `searXNGDescription: 'A component that searches via your provided
SearXNG instance URL. Specify TopN and the instance URL.'`
- Other languages have `searXNG` and `searXNGDescription` added as well,
but accuracy is only guaranteed for English, Simplified Chinese, and
Traditional Chinese.

---------

Co-authored-by: xurui <xurui@crscd.com.cn>
2025-08-29 14:15:40 +08:00
..
agent-form Feat: add SearXNG search tool to Agent (frontend + backend, i18n) (#9699) 2025-08-29 14:15:40 +08:00
akshare-form
arxiv-form Feat: Add Arxiv GoogleScholar operator #3221 (#9102) 2025-07-30 09:43:12 +08:00
baidu-fanyi-form Feat: Add retrieval tool #3221 (#8491) 2025-06-25 18:32:56 +08:00
baidu-form
begin-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
bing-form Feat: Add bing form #3221 (#8875) 2025-07-16 17:56:55 +08:00
categorize-form Feat: Run eslint when the project is running to standardize everyone's code #9377 (#9379) 2025-08-11 15:31:38 +08:00
code-form Feat: Replace color variables according to design draft #3221 (#9305) 2025-08-07 15:19:45 +08:00
components Fix: Optimized variable node display and Agent template multi-language support #3221 (#9787) 2025-08-28 15:43:25 +08:00
crawler-form Feat: Add agent tool CrawlerForm #3221 (#8859) 2025-07-16 09:34:30 +08:00
deepl-form Feat: Add retrieval tool #3221 (#8491) 2025-06-25 18:32:56 +08:00
duckduckgo-form Feat: Add Arxiv GoogleScholar operator #3221 (#9102) 2025-07-30 09:43:12 +08:00
email-form Feat: Translate operator names and allow mailboxes to reference operator names #3221 (#9118) 2025-07-30 16:16:47 +08:00
exesql-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
github-form Feat: Add invoke and github operators #3221 (#9112) 2025-07-30 12:48:55 +08:00
google-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
google-scholar-form Feat: Add Arxiv GoogleScholar operator #3221 (#9102) 2025-07-30 09:43:12 +08:00
invoke-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
iteration-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
iteration-start-from Feat: Adjust agent mcp style #3221 (#8841) 2025-07-15 11:28:36 +08:00
jin10-form Feat: Add retrieval tool #3221 (#8491) 2025-06-25 18:32:56 +08:00
keyword-extract-form Feat: Add the SelectWithSearch component #3221 (#7892) 2025-05-28 09:22:09 +08:00
message-form Fix: Set the maximum number of rounds for the agent to 1 #3221 (#9238) 2025-08-05 14:32:06 +08:00
pubmed-form Feat: Add invoke and github operators #3221 (#9112) 2025-07-30 12:48:55 +08:00
qweather-form Feat: Add retrieval tool #3221 (#8491) 2025-06-25 18:32:56 +08:00
relevant-form Feat: Run eslint when the project is running to standardize everyone's code #9377 (#9379) 2025-08-11 15:31:38 +08:00
retrieval-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
rewrite-question-form Feat: Add retrieval tool #3221 (#8491) 2025-06-25 18:32:56 +08:00
searxng-form Feat: add SearXNG search tool to Agent (frontend + backend, i18n) (#9699) 2025-08-29 14:15:40 +08:00
string-transform-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
switch-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
tavily-extract-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
tavily-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
tool-form Feat: add SearXNG search tool to Agent (frontend + backend, i18n) (#9699) 2025-08-29 14:15:40 +08:00
tushare-form Feat: Add retrieval tool #3221 (#8491) 2025-06-25 18:32:56 +08:00
user-fill-up-form Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
wencai-form Feat: Add wencai operator #3221 (#9116) 2025-07-30 14:34:06 +08:00
wikipedia-form Feat: Add Arxiv GoogleScholar operator #3221 (#9102) 2025-07-30 09:43:12 +08:00
yahoo-finance-form Feat: Add invoke and github operators #3221 (#9112) 2025-07-30 12:48:55 +08:00