Class TokenTextSplitter
java.lang.Object
org.springframework.ai.transformer.splitter.TextSplitter
org.springframework.ai.transformer.splitter.TokenTextSplitter
- Author:
- Raphael Yu, Christian Tzolov
-
Constructor Summary
ConstructorDescriptionTokenTextSplitter
(boolean keepSeparator) TokenTextSplitter
(int defaultChunkSize, int minChunkSizeChars, int minChunkLengthToEmbed, int maxNumChunks, boolean keepSeparator) -
Method Summary
Methods inherited from class org.springframework.ai.transformer.splitter.TextSplitter
apply, isCopyContentFormatter, setCopyContentFormatter
-
Constructor Details
-
TokenTextSplitter
public TokenTextSplitter() -
TokenTextSplitter
public TokenTextSplitter(boolean keepSeparator) -
TokenTextSplitter
public TokenTextSplitter(int defaultChunkSize, int minChunkSizeChars, int minChunkLengthToEmbed, int maxNumChunks, boolean keepSeparator)
-
-
Method Details
-
splitText
- Specified by:
splitText
in classTextSplitter
-
split
-