Class HybridChunkDocumentRequest
java.lang.Object
ai.docling.serve.api.chunk.request.HybridChunkDocumentRequest
Represents a request to convert a document and chunk it into smaller documents
using the Docling hybrid chunker.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingHybridChunkDocumentRequestinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull HybridChunkDocumentRequest.Builderbuilder()@NonNull HybridChunkerOptionsOptions 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 HybridChunkDocumentRequest.Builder@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 hybrid chunker options
-
toString
-