A text splitter that splits text based on a fixed character count. This is a wrapper around Langchain's CharacterTextSplitter.
CharacterTextSplitter
Creates an instance of CharacterTextSplitter.
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 based on character count.
The input text to be split.
A promise that resolves to an array of string chunks.
A text splitter that splits text based on a fixed character count. This is a wrapper around Langchain's
CharacterTextSplitter
.