配置SearXNG工具问题 #81

Closed
opened 2026-02-16 11:19:42 -05:00 by yindo · 3 comments
Owner

Originally created by @Jeffsyl01 on GitHub (Feb 28, 2025).

按照文档,第一步修改 Dify 配置文件的时候就找不到配置文件,dify/api/core/tools/目录下面没有provider目录

@junytang
https://docs.dify.ai/zh-hans/guides/tools/tool-configuration/searxng
zh_CN/guides/tools/tool-configuration/searxng.md

Originally created by @Jeffsyl01 on GitHub (Feb 28, 2025). 按照文档,第一步修改 Dify 配置文件的时候就找不到配置文件,dify/api/core/tools/目录下面没有provider目录 @junytang [https://docs.dify.ai/zh-hans/guides/tools/tool-configuration/searxng](url) [zh_CN/guides/tools/tool-configuration/searxng.md](url)
yindo added the bug label 2026-02-16 11:19:42 -05:00
yindo closed this issue 2026-02-16 11:19:42 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 28, 2025):

@Jeffsyl01 你好!我是一个可以帮助你解决 bug、回答问题,并且成为贡献者的机器人。我会在等待人类维护者的时候帮助你。

Dify 文档中提到的 SearXNG 配置文件应该位于 dify/api/core/tools/provider/builtin/searxng/docker/settings.yml [1]. 如果您在 dify/api/core/tools/ 目录下找不到 provider 目录,可能需要检查您使用的 Dify 版本或分支,确保其包含该目录和相关文件。

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 28, 2025): <!-- Greeting --> @Jeffsyl01 你好!我是一个可以帮助你解决 bug、回答问题,并且成为贡献者的机器人。我会在等待人类维护者的时候帮助你。 <!-- Answer --> Dify 文档中提到的 SearXNG 配置文件应该位于 `dify/api/core/tools/provider/builtin/searxng/docker/settings.yml` <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/tools/tool-configuration/searxng.md)</sup>. 如果您在 `dify/api/core/tools/` 目录下找不到 `provider` 目录,可能需要检查您使用的 Dify 版本或分支,确保其包含该目录和相关文件。 <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/a043161a-d350-4268-9189-80cc410c9940?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/a043161a-d350-4268-9189-80cc410c9940?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/a043161a-d350-4268-9189-80cc410c9940?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/a043161a-d350-4268-9189-80cc410c9940?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a043161a-d350-4268-9189-80cc410c9940?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/a043161a-d350-4268-9189-80cc410c9940?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a043161a-d350-4268-9189-80cc410c9940?feedback_type=other)</sup>
Author
Owner

@junytang commented on GitHub (Feb 28, 2025):

文档可能被其他人修改过了,我找到了当时 commit,可以参考一下 https://github.com/langgenius/dify-docs/pull/60/commits,不确定现在是否还有效

@junytang commented on GitHub (Feb 28, 2025): 文档可能被其他人修改过了,我找到了当时 commit,可以参考一下 https://github.com/langgenius/dify-docs/pull/60/commits,不确定现在是否还有效。
Author
Owner

@gusibi commented on GitHub (Mar 30, 2025):

使用 docker 启动 searxng 时,命令类似于

docker run --rm \
             -d -p ${PORT}:8080 \
             -v "${PWD}/searxng:/etc/searxng" \
             -e "BASE_URL=http://localhost:$PORT/" \
             -e "INSTANCE_NAME=my-instance" \
             searxng/searxng

${PWD}/searxng 这个目录下有一个 settings.yml 文件,在 formats 添加上 json 就可以了

  # formats: [html, csv, json, rss]
  formats:
    - html
    - json
@gusibi commented on GitHub (Mar 30, 2025): 使用 docker 启动 searxng 时,命令类似于 ``` docker run --rm \ -d -p ${PORT}:8080 \ -v "${PWD}/searxng:/etc/searxng" \ -e "BASE_URL=http://localhost:$PORT/" \ -e "INSTANCE_NAME=my-instance" \ searxng/searxng ``` ${PWD}/searxng 这个目录下有一个 settings.yml 文件,在 formats 添加上 json 就可以了 ``` # formats: [html, csv, json, rss] formats: - html - json ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-docs-archived#81