Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions textsplitter/recursive_character.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ type RecursiveCharacter struct {
}

// NewRecursiveCharacter creates a new recursive character splitter with default values. By
// default, the separators used are "\n\n", "\n", " " and "". The chunk size is set to 4000
// and chunk overlap is set to 200.
// default, the separators used are "\n\n", "\n", " " and "". The chunk size is set to 512
// and chunk overlap is set to 100, both measured in characters.
func NewRecursiveCharacter(opts ...Option) RecursiveCharacter {
options := DefaultOptions()
for _, o := range opts {
Expand Down
Loading