Skip to content

Commit 4a6bcff

Browse files
authored
feat(Default Data Loader Node): Minor copy changes (#16053)
1 parent e662998 commit 4a6bcff

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -77,31 +77,6 @@ export class DocumentDefaultDataLoader implements INodeType {
7777
type: 'notice',
7878
default: '',
7979
},
80-
{
81-
displayName: 'Text Splitting',
82-
name: 'textSplittingMode',
83-
type: 'options',
84-
default: 'simple',
85-
required: true,
86-
noDataExpression: true,
87-
displayOptions: {
88-
show: {
89-
'@version': [1.1],
90-
},
91-
},
92-
options: [
93-
{
94-
name: 'Simple',
95-
value: 'simple',
96-
description: 'Uses the Recursive Character Text Splitter with default options',
97-
},
98-
{
99-
name: 'Custom',
100-
value: 'custom',
101-
description: 'Connect a text splitter of your choice',
102-
},
103-
],
104-
},
10580
{
10681
displayName: 'Type of Data',
10782
name: 'dataType',
@@ -254,6 +229,31 @@ export class DocumentDefaultDataLoader implements INodeType {
254229
},
255230
},
256231
},
232+
{
233+
displayName: 'Text Splitting',
234+
name: 'textSplittingMode',
235+
type: 'options',
236+
default: 'simple',
237+
required: true,
238+
noDataExpression: true,
239+
displayOptions: {
240+
show: {
241+
'@version': [1.1],
242+
},
243+
},
244+
options: [
245+
{
246+
name: 'Simple',
247+
value: 'simple',
248+
description: 'Splits every 1000 characters with a 200 character overlap',
249+
},
250+
{
251+
name: 'Custom',
252+
value: 'custom',
253+
description: 'Connect a custom text-splitting sub-node',
254+
},
255+
],
256+
},
257257
{
258258
displayName: 'Options',
259259
name: 'options',

packages/@n8n/nodes-langchain/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ export class DocumentGithubLoader implements INodeType {
7171
outputNames: ['Document'],
7272
properties: [
7373
getConnectionHintNoticeField([NodeConnectionTypes.AiVectorStore]),
74+
{
75+
displayName: 'Repository Link',
76+
name: 'repository',
77+
type: 'string',
78+
default: '',
79+
},
80+
{
81+
displayName: 'Branch',
82+
name: 'branch',
83+
type: 'string',
84+
default: 'main',
85+
},
7486
{
7587
displayName: 'Text Splitting',
7688
name: 'textSplittingMode',
@@ -87,27 +99,15 @@ export class DocumentGithubLoader implements INodeType {
8799
{
88100
name: 'Simple',
89101
value: 'simple',
90-
description: 'Uses Recursive Character Text Splitter with default options',
102+
description: 'Splits every 1000 characters with a 200 character overlap',
91103
},
92104
{
93105
name: 'Custom',
94106
value: 'custom',
95-
description: 'Connect a text splitter of your choice',
107+
description: 'Connect a custom text-splitting sub-node',
96108
},
97109
],
98110
},
99-
{
100-
displayName: 'Repository Link',
101-
name: 'repository',
102-
type: 'string',
103-
default: '',
104-
},
105-
{
106-
displayName: 'Branch',
107-
name: 'branch',
108-
type: 'string',
109-
default: 'main',
110-
},
111111
{
112112
displayName: 'Options',
113113
name: 'additionalOptions',

0 commit comments

Comments
 (0)