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 TypeClassDescriptionclass
Splits the providedDocument
into characters and attempts to fit as many characters as possible into a singleTextSegment
, adhering to the limit set bymaxSegmentSize
.class
Splits the providedDocument
into lines and attempts to fit as many lines as possible into a singleTextSegment
, adhering to the limit set bymaxSegmentSize
.class
Splits the providedDocument
into paragraphs and attempts to fit as many paragraphs as possible into a singleTextSegment
, adhering to the limit set bymaxSegmentSize
.class
Splits the providedDocument
into parts using the providedregex
and attempts to fit as many parts as possible into a singleTextSegment
, adhering to the limit set bymaxSegmentSize
.class
Splits the providedDocument
into sentences and attempts to fit as many sentences as possible into a singleTextSegment
, adhering to the limit set bymaxSegmentSize
.class
Splits the providedDocument
into 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 HierarchicalDocumentSplitterModifierConstructorDescriptionprotected
HierarchicalDocumentSplitter
(int maxSegmentSizeInChars, int maxOverlapSizeInChars, HierarchicalDocumentSplitter subSplitter) Creates a new instance ofHierarchicalDocumentSplitter
.