Package ai.docling.serve.api
Interface DoclingServeApi
public interface DoclingServeApi
Docling Serve API interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDoclingServeApi.DoclingApiBuilder<T extends DoclingServeApi,B extends DoclingServeApi.DoclingApiBuilder<T, B>> A builder interface for constructing implementations ofDoclingServeApi. -
Method Summary
Modifier and TypeMethodDescriptionConverts and chunks the provided document source(s) into a processed document based on the specified options and using a hierarchical chunker for splitting the document into smaller chunks.Converts and chunks the provided document source(s) into a processed document based on the specified options and using a hybrid chunker for splitting the document into smaller chunks.convertSource(ConvertDocumentRequest request) Converts the provided document source(s) into a processed document based on the specified options.health()Executes a health check for the API and retrieves the health status of the service.<T extends DoclingServeApi,B extends DoclingServeApi.DoclingApiBuilder<T, B>>
DoclingServeApi.DoclingApiBuilder<T,B> Creates and returns a builder instance capable of constructing a duplicate or modified version of the current API instance.
-
Method Details
-
health
HealthCheckResponse health()Executes a health check for the API and retrieves the health status of the service.- Returns:
- a
HealthCheckResponseobject containing the health status of the API.
-
convertSource
Converts the provided document source(s) into a processed document based on the specified options.- Parameters:
request- theConvertDocumentRequestcontaining the source(s), conversion options, and optional target.- Returns:
- a
ConvertDocumentResponsecontaining the processed document data, processing details, and any errors.
-
chunkSourceWithHierarchicalChunker
Converts and chunks the provided document source(s) into a processed document based on the specified options and using a hierarchical chunker for splitting the document into smaller chunks. -
chunkSourceWithHybridChunker
Converts and chunks the provided document source(s) into a processed document based on the specified options and using a hybrid chunker for splitting the document into smaller chunks. -
toBuilder
<T extends DoclingServeApi,B extends DoclingServeApi.DoclingApiBuilder<T, DoclingServeApi.DoclingApiBuilder<T,B>> B> toBuilder()Creates and returns a builder instance capable of constructing a duplicate or modified version of the current API instance. The builder provides a customizable way to adjust configuration or properties before constructing a new API instance.- Returns:
- a
DoclingServeApi.DoclingApiBuilderinitialized with the state of the current API instance.
-