Class ChunkDocumentRequest.Builder<C extends ChunkDocumentRequest,B extends ChunkDocumentRequest.Builder<C,B>>
java.lang.Object
ai.docling.serve.api.chunk.request.ChunkDocumentRequest.Builder<C,B>
- Direct Known Subclasses:
HierarchicalChunkDocumentRequest.Builder,HybridChunkDocumentRequest.Builder
- Enclosing class:
- ChunkDocumentRequest
public abstract static class ChunkDocumentRequest.Builder<C extends ChunkDocumentRequest,B extends ChunkDocumentRequest.Builder<C,B>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected B$fillValuesFrom(C instance) abstract Cbuild()@NonNull B@NonNull BincludeConvertedDoc(boolean includeConvertedDoc) If true, the output will include both the chunks and the converted document.@NonNull Boptions(@NonNull ConvertDocumentOptions options) Conversion options.protected abstract Bself()@NonNull B@NonNull Bsources(@NonNull Collection<? extends Source> sources) @NonNull BSpecification for the type of output target.@NonNull StringtoString()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
$fillValuesFrom
-
source
-
sources
-
clearSources
-
options
Conversion options.- Parameters:
options- the conversion options- Returns:
this.
-
target
Specification for the type of output target.- Parameters:
target- the output target specification, or null if not specified- Returns:
this.
-
includeConvertedDoc
If true, the output will include both the chunks and the converted document.- Parameters:
includeConvertedDoc- true if the converted document should be included, false otherwise- Returns:
this.
-
self
-
build
-
toString
-