[PR #3363] Integrated SearXNG search as built-in tool #24091

Closed
opened 2026-02-21 20:22:21 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/3363

State: closed
Merged: Yes


Description

Integrated SearXNG search engine as built-in tool. SearXNG is a meta search engine (https://github.com/searxng/searxng) which provides better search results than Google/Bing

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  1. Run SearXNG container
docker run --rm \
             -d -p 8080:8080 \
             -v "${PWD}/searxng:/etc/searxng" \
             -e "BASE_URL=http://0.0.0.0:8080/" \
             -e "INSTANCE_NAME=searxng" \
             searxng/searxng
  1. Add following line in ${PWD}/searxng/settings.yml file
  # remove format to deny access, use lower case.
  # formats: [html, csv, json, rss]
  formats:
    - html
    - json    # <-- add this line 
  1. Add SearXNG Search tool
  2. Just like testing the built-in GoogleSearch tool

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
  • optional I have made corresponding changes to the documentation
  • optional I have added tests that prove my fix is effective or that my feature works
  • optional New and existing unit tests pass locally with my changes
**Original Pull Request:** https://github.com/langgenius/dify/pull/3363 **State:** closed **Merged:** Yes --- # Description Integrated SearXNG search engine as built-in tool. SearXNG is a meta search engine (https://github.com/searxng/searxng) which provides better search results than Google/Bing ## Type of Change - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? 1. Run SearXNG container ``` docker run --rm \ -d -p 8080:8080 \ -v "${PWD}/searxng:/etc/searxng" \ -e "BASE_URL=http://0.0.0.0:8080/" \ -e "INSTANCE_NAME=searxng" \ searxng/searxng ``` 2. Add following line in ${PWD}/searxng/settings.yml file ``` # remove format to deny access, use lower case. # formats: [html, csv, json, rss] formats: - html - json # <-- add this line ``` 3. Add SearXNG Search tool 4. Just like testing the built-in GoogleSearch tool # Suggested Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] My changes generate no new warnings - [ ] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods - [ ] `optional` I have made corresponding changes to the documentation - [ ] `optional` I have added tests that prove my fix is effective or that my feature works - [ ] `optional` New and existing unit tests pass locally with my changes
yindo added the pull-request label 2026-02-21 20:22:21 -05:00
yindo closed this issue 2026-02-21 20:22:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#24091