Skip to content

默认数据加载器节点(Default Data Loader node)#

使用默认数据加载节点来加载二进制数据文件或用于 向量存储 或摘要的 JSON 数据。

🌐 Use the Default Data Loader node to load binary data files or JSON data for vector stores or summarization.

本页列出了 Default Data Loader 节点支持的参数列表以及更多资源的链接。

🌐 On this page, you'll find a list of parameters the Default Data Loader node supports, and links to more resources.

Parameter resolution in sub-nodes

Sub-nodes behave differently to other nodes when processing multiple items using an expression.

Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.

In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.

节点参数(Node parameters)#

  • 文本拆分:选择如下:
    • 简单:使用 递归字符文本分割器,块大小为1000,重叠部分为200。
    • 自定义:允许你连接自己选择的文本分割器。
  • 数据类型:选择 二进制JSON
  • 模式:选择:
    • 加载所有输入数据:使用该节点的所有输入数据。
    • 加载特定数据:使用表达式来定义你想要加载的数据。你可以添加文本以及表达式。这意味着你可以从文本和表达式的混合中创建自定义文档。
  • 数据格式:当你将数据类型设置为二进制时显示。选择二进制数据的文件 MIME 类型。如果你希望 n8n 为你设置数据格式,请将其设置为按 MIME 类型自动检测。如果你设置了特定的数据格式,而传入文件的 MIME 类型与之不匹配,节点将报错。如果你使用按 MIME 类型自动检测,当文件 MIME 类型无法匹配到支持的数据格式时,节点将回退到文本格式。

节点选项(Node options)#

  • 元数据:设置应随文档一起存储在向量存储中的元数据。这是在使用向量存储节点检索数据时,使用 元数据过滤器 选项进行匹配的内容。

模板和示例(Templates and examples)#

Template widget placeholder.

Refer to LangChain's documentation on document loaders for more information about the service.

View n8n's Advanced AI documentation.