Skip to content

MarkdownTextSplitter

PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ implementationNoconstNo-Implementation
- chunk_sizeNointegerNo-Chunk Size
- chunk_overlapNointegerNo-Chunk Overlap
- keep_separatorNobooleanNo-Keep Separator
- strip_whitespaceNobooleanNo-Strip Whitespace
- separatorsNoarray of stringNo-Separators
- is_separator_regexNobooleanNo-Is Separator Regex

1. Property implementation

Title: Implementation

Typeconst
RequiredYes

Specific value: "MarkdownTextSplitter"

2. Property chunk_size

Title: Chunk Size

Typeinteger
RequiredNo
Default4000

Description: Maximum size of chunks to return

3. Property chunk_overlap

Title: Chunk Overlap

Typeinteger
RequiredNo
Default200

Description: Overlap in characters between chunks

4. Property keep_separator

Title: Keep Separator

Typeboolean
RequiredNo
Defaultfalse

Description: Whether to keep the separator in the chunks

5. Property strip_whitespace

Title: Strip Whitespace

Typeboolean
RequiredNo
Defaulttrue

Description: If True, strips whitespace from the start and end of every document

6. Property separators

Title: Separators

Typearray of string
RequiredNo
Defaultnull

Description: Separators to split on

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
separators items-

6.1. separators items

Typestring
RequiredNo

7. Property is_separator_regex

Title: Is Separator Regex

Typeboolean
RequiredNo
Defaultfalse

Description: Whether the separator is a regex