Default Data Loader
ai.document_default_loader · version 1 · AI sub-node
Turn item JSON or binary files (text, CSV, JSON, PDF) into documents.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | ai_textSplitter | Text Splitter | 1 | |
| output 0 | ai_document |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
dataType | options | "json" | Type of Data. One of json, binary. | ||
jsonMode | options | "allInputData" | dataType = json | Mode. One of allInputData, expressionData. | |
jsonData | string | jsonMode = expressionData | Data. Value to turn into a document, usually an expression. | ||
binaryMode | options | "allInputData" | dataType = binary | Mode. One of allInputData, specificField. | |
binaryDataKey | string | "data" | binaryMode = specificField | Binary Property. | |
loader | options | "auto" | dataType = binary | Data Format. One of auto, csvLoader, jsonLoader, pdfLoader, textLoader. | |
textSplittingMode | options | "simple" | Text Splitting. One of simple, custom. | ||
options | collection | {} | |||
options.metadata | fixed_collection | Extra metadata fields to attach to every document. | |||
options.splitPages | boolean | true | Split Pages. For PDF files, create one document per page. | ||
options.separator | string | "," | CSV Separator. | ||
options.column | string | CSV Column. Only use the values of this CSV column. |
Import
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.documentDefaultDataLoader | 1 | unverified |