Replies: 2 comments 2 replies
-
@139qaz6 Hello there! I'm here to help you with any bugs, questions, or contributions you have regarding the SearXNG Extension. Let's get to the bottom of this together. The issue might be due to the default output format settings in SearXNG. By default, SearXNG outputs in HTML format, and you need to activate the JSON format for it to work correctly with Dify. Ensure that your # remove format to deny access, use lower case.
# formats: [html, csv, json, rss]
formats:
- html
- json # <-- add this line Without this configuration, SearXNG may not return the expected results for "web page" or "news" queries, while the "image" option might still work due to different handling or fallback mechanisms. Additionally, ensure that you have correctly integrated SearXNG with Dify by following these steps:
Additionally, ensure that the search type mappings in Dify's SearXNG integration are correctly set up. The SEARCH_TYPE = {
"page": "general",
"news": "news",
"image": "images",
# "video": "videos",
# "file": "files"
} Make sure that the search type you are querying matches these mappings. For example, "web page" should map to "general" and "news" should map to "news". This ensures that the correct category is queried in SearXNG. Also, verify that the parameters:
- name: search_type
type: select
required: true
label:
en_US: search type
zh_Hans: 搜索类型
pt_BR: search type
human_description:
en_US: search type for page, news or image.
zh_Hans: 选择搜索的类型:网页,新闻,图片。
pt_BR: search type for page, news or image.
default: Page
options:
- value: Page
label:
en_US: Page
zh_Hans: 网页
pt_BR: Page
- value: News
label:
en_US: News
zh_Hans: 新闻
pt_BR: News
- value: Image
label:
en_US: Image
zh_Hans: 图片
pt_BR: Image Following these steps should resolve the issue and allow you to receive responses for "web page" and "news" queries [1][2][3][4].
|
Beta Was this translation helpful? Give feedback.
-
I have the same problem |
Beta Was this translation helpful? Give feedback.
-
Self Checks
Dify version
0.6.8
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I want have a free web search engine, I used the tool SearXNG search in the dify and deployed the SearXNG search engine locally.After selecting the bing search engine in SearXNG, I can use it in the web page normally. But I can't receive the reply from SearXNG search engine from dify extension.And when I select the option of image I can receive the reply, but when I select the option of web page and news I can't receive the reply, please help me to check this problem,Thank you very much!



✔️ Expected Behavior
Receive the response from the SearXNG tool.
❌ Actual Behavior
I can not recevie the response from the searxng tool when i select the news and web option
Beta Was this translation helpful? Give feedback.
All reactions