diff --git a/packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.ts b/packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.ts index 1b5740c56e..90430e275f 100644 --- a/packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.ts @@ -77,31 +77,6 @@ export class DocumentDefaultDataLoader implements INodeType { type: 'notice', default: '', }, - { - displayName: 'Text Splitting', - name: 'textSplittingMode', - type: 'options', - default: 'simple', - required: true, - noDataExpression: true, - displayOptions: { - show: { - '@version': [1.1], - }, - }, - options: [ - { - name: 'Simple', - value: 'simple', - description: 'Uses the Recursive Character Text Splitter with default options', - }, - { - name: 'Custom', - value: 'custom', - description: 'Connect a text splitter of your choice', - }, - ], - }, { displayName: 'Type of Data', name: 'dataType', @@ -254,6 +229,31 @@ export class DocumentDefaultDataLoader implements INodeType { }, }, }, + { + displayName: 'Text Splitting', + name: 'textSplittingMode', + type: 'options', + default: 'simple', + required: true, + noDataExpression: true, + displayOptions: { + show: { + '@version': [1.1], + }, + }, + options: [ + { + name: 'Simple', + value: 'simple', + description: 'Splits every 1000 characters with a 200 character overlap', + }, + { + name: 'Custom', + value: 'custom', + description: 'Connect a custom text-splitting sub-node', + }, + ], + }, { displayName: 'Options', name: 'options', diff --git a/packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.ts b/packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.ts index fa30b91d7d..f633cdb9f8 100644 --- a/packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.ts @@ -71,6 +71,18 @@ export class DocumentGithubLoader implements INodeType { outputNames: ['Document'], properties: [ getConnectionHintNoticeField([NodeConnectionTypes.AiVectorStore]), + { + displayName: 'Repository Link', + name: 'repository', + type: 'string', + default: '', + }, + { + displayName: 'Branch', + name: 'branch', + type: 'string', + default: 'main', + }, { displayName: 'Text Splitting', name: 'textSplittingMode', @@ -87,27 +99,15 @@ export class DocumentGithubLoader implements INodeType { { name: 'Simple', value: 'simple', - description: 'Uses Recursive Character Text Splitter with default options', + description: 'Splits every 1000 characters with a 200 character overlap', }, { name: 'Custom', value: 'custom', - description: 'Connect a text splitter of your choice', + description: 'Connect a custom text-splitting sub-node', }, ], }, - { - displayName: 'Repository Link', - name: 'repository', - type: 'string', - default: '', - }, - { - displayName: 'Branch', - name: 'branch', - type: 'string', - default: 'main', - }, { displayName: 'Options', name: 'additionalOptions',