Uses of Class
dev.langchain4j.data.document.splitter.HierarchicalDocumentSplitter
Packages that use HierarchicalDocumentSplitter
-
Uses of HierarchicalDocumentSplitter in dev.langchain4j.data.document.splitter
Subclasses of HierarchicalDocumentSplitter in dev.langchain4j.data.document.splitterModifier and TypeClassDescriptionclassSplits the providedDocumentinto characters and attempts to fit as many characters as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.classSplits the providedDocumentinto lines and attempts to fit as many lines as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.classSplits the providedDocumentinto paragraphs and attempts to fit as many paragraphs as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.classSplits the providedDocumentinto parts using the providedregexand attempts to fit as many parts as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.classSplits the providedDocumentinto sentences and attempts to fit as many sentences as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.classSplits the providedDocumentinto words and attempts to fit as many words as possible into a singleTextSegment, adhering to the limit set bymaxSegmentSize.Constructors in dev.langchain4j.data.document.splitter with parameters of type HierarchicalDocumentSplitterModifierConstructorDescriptionprotectedHierarchicalDocumentSplitter(int maxSegmentSizeInChars, int maxOverlapSizeInChars, HierarchicalDocumentSplitter subSplitter) Creates a new instance ofHierarchicalDocumentSplitter.