Integrated SearXNG search as built-in tool
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?
- 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
- 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
- Add SearXNG Search tool
- 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) andcd web && npx lint-staged(frontend) to appease the lint gods - [ ]
optionalI have made corresponding changes to the documentation - [ ]
optionalI have added tests that prove my fix is effective or that my feature works - [ ]
optionalNew and existing unit tests pass locally with my changes
How can I solve this?
I have mapped 8080 to 8081 already.
How can I solve this?
I have mapped 8080 to 8081 already.
Sorry, I forgot this:
Need to add following changes in SearXNG settings.yml file which locates in container volume
# remove format to deny access, use lower case.
# formats: [html, csv, json, rss]
formats:
- html
- json ( <-- add this line )
and then I ran into this issue
and then I ran into this issue
This is an unrelated issue. You can just ignore it or add your secret _key for better security.
Does http://localhost:8081/search?q=test&format=json work in web browser ?
Hello thank you for your contribution, you can add my wechat: crazyphage I will invite you to our contributor's group.
Thx for contributing~
Pls fix the CI error. BTW, would you mind write some tutorials about how to integrate SearXNG with Dify and create a PR to this repo ? , then link the help tooltip to there.
I have mapped 8080 to 8081 already.