Class ChunkDocumentRequest
java.lang.Object
ai.docling.serve.api.chunk.request.ChunkDocumentRequest
- Direct Known Subclasses:
HierarchicalChunkDocumentRequest,HybridChunkDocumentRequest
public abstract sealed class ChunkDocumentRequest
extends Object
permits HierarchicalChunkDocumentRequest, HybridChunkDocumentRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classChunkDocumentRequest.Builder<C extends ChunkDocumentRequest,B extends ChunkDocumentRequest.Builder<C, B>> static classChunkDocumentRequest.ChunkDocumentRequestBuilder<C extends ChunkDocumentRequest,B extends ChunkDocumentRequest.ChunkDocumentRequestBuilder<C, B>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescription@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()
-
Constructor Details
-
ChunkDocumentRequest
-
-
Method Details
-
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
-
toString
-