默认数据加载器节点#
¥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
- 文本分割:选择以下选项:
¥Text Splitting: Choose from:
-
简单:使用 递归字符文本分割器,块大小为 1000,重叠为 200。
¥Simple: Uses the Recursive Character Text Splitter with a chunk size of 1000 and an overlap of 200.
-
自定义:允许你连接你选择的文本分割器。
¥Custom: Allows you to connect a text splitter of your choice.
-
数据类型:选择“二进制或 JSON”。
¥Type of Data: Select Binary or JSON.
- 模式:选择以下选项:
¥Mode: Choose from:
-
加载所有输入数据:使用节点的所有输入数据。
¥Load All Input Data: Use all the node's input data.
-
加载特定数据:使用 expressions 定义要加载的数据。你可以添加文本和表达式。这意味着你可以混合使用文本和表达式创建自定义文档。
¥Load Specific Data: Use expressions to define the data you want to load. You can add text as well as expressions. This means you can create a custom document from a mix of text and expressions.
-
数据格式:将数据类型设置为二进制时显示。选择二进制数据的文件 MIME 类型。如果你希望 n8n 为你设置数据格式,请设置为“自动按 MIME 类型检测”。如果你设置了特定的数据格式,但传入文件的 MIME 类型不匹配,则节点会报错。如果你使用“按 MIME 类型自动检测”,则如果节点无法将文件 MIME 类型与受支持的数据格式匹配,则会回退到文本格式。
¥Data Format: Displays when you set Type of Data to Binary. Select the file MIME type for your binary data. Set to Automatically Detect by MIME Type if you want n8n to set the data format for you. If you set a specific data format and the incoming file MIME type doesn't match it, the node errors. If you use Automatically Detect by MIME Type, the node falls back to text format if it can't match the file MIME type to a supported data format.
节点选项#
¥Node options
- 元数据:设置矢量存储中文档的元数据。当你使用向量存储节点检索数据时,需要使用元数据筛选器选项来匹配此内容。
¥Metadata: Set the metadata that should accompany the document in the vector store. This is what you match to using the Metadata Filter option when retrieving data using the vector store nodes.
模板和示例#
¥Templates and examples
相关资源#
¥Related resources
Refer to LangChain's documentation on document loaders for more information about the service.
View n8n's Advanced AI documentation.