Class HierarchicalChunkDocumentRequest
java.lang.Object
ai.docling.serve.api.chunk.request.HierarchicalChunkDocumentRequest
Represents a request to convert a document and chunk it into smaller documents
using the Docling hierarchical chunker.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingHierarchicalChunkDocumentRequestinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull HierarchicalChunkDocumentRequest.Builderbuilder()@NonNull HierarchicalChunkerOptionsOptions specific to the chunker.@NonNull ConvertDocumentOptionsConversion options.List of input document sources to process.@Nullable TargetSpecification for the type of output target.booleanIf true, the output will include both the chunks and the converted document.@NonNull StringtoString()
-
Method Details
-
builder
-
toBuilder
-
getSources
List of input document sources to process.- Returns:
- the list of document sources
-
getOptions
Conversion options.- Returns:
- the conversion options
-
getTarget
Specification for the type of output target.- Returns:
- the output target specification, or null if not specified
-
isIncludeConvertedDoc
public boolean isIncludeConvertedDoc()If true, the output will include both the chunks and the converted document.- Returns:
- true if the converted document should be included, false otherwise
-
getChunkingOptions
Options specific to the chunker.- Returns:
- the hierarchical chunker options
-
toString
-