Skip to content

SearXNG Tool node#

SearXNG Tool 节点#

The SearXNG Tool node allows you to integrate search capabilities into your workflows using SearXNG. SearXNG aggregates results from multiple search engines without tracking you.

SearXNG Tool 节点允许您使用 SearXNG 将搜索功能集成到您的工作流程中。SearXNG 聚合来自多个搜索引擎的结果,而不会跟踪您。

On this page, you'll find the node options for the SearXNG Tool node, and links to more resources.

在此页面上,您将找到 SearXNG Tool 节点的节点选项以及更多资源的链接。

Credentials

凭据

You can find authentication information for this node here.

您可以在 此处 找到此节点的身份验证信息。

子节点中的参数解析

子节点在使用表达式处理多个项目时的行为与其他节点不同。

大多数节点,包括根节点,接受任意数量的项目作为输入,处理这些项目,并输出结果。您可以使用表达式引用输入项目,节点会依次为每个项目解析表达式。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 会依次解析为每个名称。

在子节点中,表达式始终解析为第一个项目。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 始终解析为第一个名称。

Node Options#

节点选项#

  • Number of Results: The number of results to retrieve. The default is 10.
  • 结果数量:要检索的结果数量。默认值为 10。
  • Page Number: The page number of the search results to retrieve. The default is 1.
  • 页码:要检索的搜索结果的页码。默认值为 1。
  • Language: A two-letter language code to filter search results by language. For example: en for English, fr for French. The default is en.
  • 语言:用于按语言过滤搜索结果的两个字母的 语言代码。例如:en 表示英语,fr 表示法语。默认值为 en.
  • Safe Search: Enables or disables filtering explicit content in the search results. Can be None, Moderate, or Strict. The default is None.
  • 安全搜索:启用或禁用搜索结果中显式内容的过滤。可以是 None、Moderate 或 Strict。默认值为 None.

Running a SearXNG instance#

运行 SearXNG 实例#

This node requires running the SearXNG service on the same network as your n8n instance. Ensure your n8n instance has network access to the SearXNG service.

此节点需要在与您的 n8n 实例相同的网络上运行 SearXNG 服务。确保您的 n8n 实例具有对 SearXNG 服务的网络访问权限。

This node requires results in JSON format, which isn't enabled in the default SearXNG configuration. To enable JSON output, add json to the search.formats section of your SearXNG instance's settings.yml file:

此节点需要 JSON 格式的结果,这在默认的 SearXNG 配置中未启用。要启用 JSON 输出,请将 json 添加到您的 SearXNG 实例的 settings.yml 文件的 search.formats 部分:

1
2
3
4
5
search:
  # options available for formats: [html, csv, json, rss]
  formats:
    - html
    - json

If the formats section isn't there, add it. The exact location of the settings.yml file depends on how you installed SearXNG. You can find more by visiting the SearXNG configuration documentation.

如果 formats 部分不存在,请添加它。settings.yml 文件的确切位置取决于您如何安装 SearXNG。您可以通过访问 SearXNG 配置文档 了解更多信息。

The quality and availability of search results depend on the configuration and health of the SearXNG instance you use.

搜索结果的质量和可用性取决于您使用的 SearXNG 实例的配置和健康状况。

Templates and examples#

模板和示例#

Browse SearXNG 工具 integration templates, or search all templates

相关资源#

Refer to SearXNG's documentation for more information about the service. You can also view LangChain's documentation on their SearXNG integration.

请参阅 SearXNG 的文档 了解有关该服务的更多信息。您还可以查看 LangChain 关于其 SearXNG 集成的文档

查看 n8n 的高级 AI文档。

AI 术语表#

  • completion(完成/补全): 完成是由 GPT 等模型生成的响应。
  • hallucinations(幻觉): AI 中的幻觉是指大语言模型(LLM)错误地感知到不存在的模式或对象。
  • vector database(向量数据库): 向量数据库存储信息的数学表示。与嵌入和检索器一起使用,创建 AI 在回答问题时可以访问的数据库。
  • vector store(向量存储): 向量存储或向量数据库,存储信息的数学表示。与嵌入和检索器一起使用,创建 AI 在回答问题时可以访问的数据库。