feat(Default Data Loader Node): Minor copy changes (#16053)

This commit is contained in:
Nikhil Kuriakose
2025-06-05 13:50:39 +02:00
committed by GitHub
parent e662998c67
commit 4a6bcffc70
2 changed files with 39 additions and 39 deletions

View File

@@ -77,31 +77,6 @@ export class DocumentDefaultDataLoader implements INodeType {
type: 'notice', type: 'notice',
default: '', 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', displayName: 'Type of Data',
name: 'dataType', 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', displayName: 'Options',
name: 'options', name: 'options',

View File

@@ -71,6 +71,18 @@ export class DocumentGithubLoader implements INodeType {
outputNames: ['Document'], outputNames: ['Document'],
properties: [ properties: [
getConnectionHintNoticeField([NodeConnectionTypes.AiVectorStore]), getConnectionHintNoticeField([NodeConnectionTypes.AiVectorStore]),
{
displayName: 'Repository Link',
name: 'repository',
type: 'string',
default: '',
},
{
displayName: 'Branch',
name: 'branch',
type: 'string',
default: 'main',
},
{ {
displayName: 'Text Splitting', displayName: 'Text Splitting',
name: 'textSplittingMode', name: 'textSplittingMode',
@@ -87,27 +99,15 @@ export class DocumentGithubLoader implements INodeType {
{ {
name: 'Simple', name: 'Simple',
value: 'simple', value: 'simple',
description: 'Uses Recursive Character Text Splitter with default options', description: 'Splits every 1000 characters with a 200 character overlap',
}, },
{ {
name: 'Custom', name: 'Custom',
value: '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', displayName: 'Options',
name: 'additionalOptions', name: 'additionalOptions',