Skip to content

摘要链节点(Summarization Chain node)#

使用摘要链节点汇总多个文档。

🌐 Use the Summarization Chain node to summarize multiple documents.

本页提供摘要链节点的参数以及更多资源的链接。

🌐 On this page, you'll find the node parameters for the Summarization Chain node, and links to more resources.

节点参数(Node parameters)#

要汇总的数据 中选择你需要汇总的数据类型。你选择的数据类型会决定其他节点参数。

🌐 Choose the type of data you need to summarize in Data to Summarize. The data type you choose determines the other node parameters.

  • 使用节点输入 (JSON)使用节点输入 (二进制):总结从工作流传入节点的数据。
    • 你可以配置 分块策略:选择用于定义数据块大小的策略。
      • 如果你选择 简单(如下定义),你就可以设置 每块字符数块重叠(字符数)
      • 如果你想连接一个提供更多配置选项的分流子节点,请选择高级
  • 使用文档加载器:总结由文档加载器子节点提供的数据。

节点选项(Node Options)#

你可以配置摘要方法和提示。选择 添加选项 > 摘要方法和提示

🌐 You can configure the summarization method and prompts. Select Add Option > Summarization Method and Prompts.

摘要方法中的选项:

🌐 Options in Summarization Method:

  • Map Reduce:这是推荐的选项。可以在 LangChain 文档中了解更多关于 Map Reduce 的信息。
  • Refine:在 LangChain 文档中了解更多关于 Refine 的信息。
  • 内容:在 LangChain 文档中了解更多关于 内容 的信息。

你可以自定义单独摘要提示最终合并提示。节点中有示例。你必须包含 "{text}" 占位符。

🌐 You can customize the Individual Summary Prompts and the Final Prompt to Combine. There are examples in the node. You must include the "{text}" placeholder.

模板和示例(Templates and examples)#

Template widget placeholder.

有关该服务的更多信息,请参阅 LangChain 关于摘要的文档

🌐 Refer to LangChain's documentation on summarization for more information about the service.

View n8n's Advanced AI documentation.