Default Data Loader 节点#
使用 Default Data Loader 节点为 向量存储 或摘要加载二进制数据文件或 JSON 数据。
在此页面上,您将找到 Default Data Loader 节点支持的参数列表和更多资源的链接。
子节点中的参数解析
子节点在使用表达式处理多个项目时的行为与其他节点不同。
大多数节点,包括根节点,接受任意数量的项目作为输入,处理这些项目,并输出结果。您可以使用表达式引用输入项目,节点会依次为每个项目解析表达式。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 会依次解析为每个名称。
在子节点中,表达式始终解析为第一个项目。例如,给定五个 name 值的输入,表达式 {{ $json.name }} 始终解析为第一个名称。
节点参数#
- Text Splitting: Choose from:
- 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.
- Type of Data: Select Binary or JSON.
- Mode: Choose from:
- Load All Input Data: Use all the node's input data.
- 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.
- 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.
节点选项#
- Metadata 元数据:设置应在向量存储中伴随文档的元数据。这是您在使用向量存储节点检索数据时使用 Metadata Filter 选项匹配的内容。
模板和示例#
相关资源#
有关该服务的更多信息,请参阅 LangChain 关于文档加载器的文档。
查看 n8n 的高级 AI文档。