ragflow/web
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
..
.husky
public Feat: Adjust the style of the note node #3221 (#9167) 2025-08-01 20:21:19 +08:00
src Feat: add SearXNG search tool to Agent (frontend + backend, i18n) (#9699) 2025-08-29 14:15:40 +08:00
.env
.eslintrc.js Feat: Updated some colors according to the design draft #3221 (#9599) 2025-08-20 16:32:29 +08:00
.gitignore Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
.npmrc Fix: Limit node version #3547 (#3563) 2024-11-21 18:14:22 +08:00
.prettierignore
.prettierrc Feat: Add background to next login page #3221 (#4474) 2025-01-14 13:43:18 +08:00
.umirc.ts Feat: Allow chat to use meta data #3221 (#9393) 2025-08-12 10:15:10 +08:00
externals.d.ts
jest-setup.ts
jest.config.ts
package-lock.json Fix: Optimized Input and MultiSelect component functionality and dataSet-chunk page styling #9779 (#9815) 2025-08-29 10:57:29 +08:00
package.json Fix: Optimized Input and MultiSelect component functionality and dataSet-chunk page styling #9779 (#9815) 2025-08-29 10:57:29 +08:00
tailwind.config.js Fix: Optimize table style #3221 (#9703) 2025-08-26 10:46:54 +08:00
tailwind.css Fix: Optimize table style #3221 (#9703) 2025-08-26 10:46:54 +08:00
tsconfig.json feat: Configure the root directory alias #1739 (#2875) 2024-10-17 11:36:01 +08:00
typings.d.ts Feat: Add FilesTable #3221 (#4491) 2025-01-15 14:39:33 +08:00