mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(Default Data Loader Node): Minor copy changes (#16053)
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user