Package com.hw.langchain.text.splitter
Class RecursiveCharacterTextSplitter
java.lang.Object
com.hw.langchain.text.splitter.TextSplitter
com.hw.langchain.text.splitter.RecursiveCharacterTextSplitter
- All Implemented Interfaces:
BaseDocumentTransformer
Implementation of splitting text that looks at characters.
Recursively tries to split by different characters to find one that works.
- Author:
- HamaWhite
-
Field Summary
Fields inherited from class com.hw.langchain.text.splitter.TextSplitter
addStartIndex, chunkOverlap, chunkSize, keepSeparator, lengthFunction
-
Constructor Summary
-
Method Summary
Methods inherited from class com.hw.langchain.text.splitter.TextSplitter
createDocuments, mergeSplits, splitDocuments, transformDocuments
-
Field Details
-
separators
-
-
Constructor Details
-
RecursiveCharacterTextSplitter
public RecursiveCharacterTextSplitter()
-
-
Method Details
-
innerSplitText
Split incoming text and return chunks. -
splitText
Description copied from class:TextSplitter
Split text into multiple components.- Specified by:
splitText
in classTextSplitter
-