Package dev.langchain4j.data.document.splitter
package dev.langchain4j.data.document.splitter
-
ClassesClassDescriptionSplits the provided
Documentinto characters and attempts to fit as many characters as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.Splits the providedDocumentinto lines and attempts to fit as many lines as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.Splits the providedDocumentinto paragraphs and attempts to fit as many paragraphs as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.Splits the providedDocumentinto parts using the providedregexand attempts to fit as many parts as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.Splits the providedDocumentinto sentences and attempts to fit as many sentences as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.Splits the providedDocumentinto words and attempts to fit as many words as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.Base class for hierarchical document splitters.