mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 11:00:55 +03:00
add custom separators
This commit is contained in:
+8
-6
@@ -23,12 +23,6 @@ class CharacterTextSplitter_TextSplitters implements INode {
|
||||
this.description = `splits only on one type of character (defaults to "\\n\\n").`
|
||||
this.baseClasses = [this.type, ...getBaseClasses(CharacterTextSplitter)]
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Separator',
|
||||
name: 'separator',
|
||||
type: 'string',
|
||||
optional: true
|
||||
},
|
||||
{
|
||||
label: 'Chunk Size',
|
||||
name: 'chunkSize',
|
||||
@@ -41,6 +35,14 @@ class CharacterTextSplitter_TextSplitters implements INode {
|
||||
name: 'chunkOverlap',
|
||||
type: 'number',
|
||||
optional: true
|
||||
},
|
||||
{
|
||||
label: 'Custom Separator',
|
||||
name: 'separator',
|
||||
type: 'string',
|
||||
placeholder: `" "`,
|
||||
description: 'Seperator to determine when to split the text, will override the default separator',
|
||||
optional: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user