Recursive Text Splitter
Last updated
Last updated
The RecursiveTextSplitter
is used to split a document into passages by recursively splitting on a list of separators. The class also allows for specifying a window size and overlap size to split the document into overlapping passages.
The most feature is similar with Langchain's .
First, initialize an instance of RecursiveTextSplitter
. For example:
You can split document using split_document()
method. It will return list of objects. For example: