A text splitter that attempts to preserve semantic boundaries by recursively trying different separators. This is a wrapper around Langchain's RecursiveCharacterTextSplitter.
RecursiveCharacterTextSplitter
Creates an instance of RecursiveCharacterTextSplitter.
Parameters for the text splitter.
The maximum size of each text chunk.
The amount of overlap between consecutive text chunks.
Splits the given text into chunks using a recursive character splitting strategy.
The input text to be split.
A promise that resolves to an array of string chunks.
A text splitter that attempts to preserve semantic boundaries by recursively trying different separators. This is a wrapper around Langchain's
RecursiveCharacterTextSplitter
.