Class Document
java.lang.Object
ai.docling.serve.api.chunk.response.Document
Represents the document being processed by a Docling chunker.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Document.Builderbuilder()The converted document content in various export formats.List of errors that occurred during document processing.@Nullable StringgetKind()The type or kind of document.Processing status of the document.@NonNull Document.Builder@NonNull StringtoString()
-
Method Details
-
builder
-
toBuilder
-
getKind
The type or kind of document. This may indicate the document format or processing pipeline used.- Returns:
- the document kind, or null if not specified
-
getContent
The converted document content in various export formats. Contains the document data before chunking was applied.- Returns:
- the exported document content
-
getStatus
Processing status of the document. Common values include "success", "failure", or "partial".- Returns:
- the processing status
-
getErrors
List of errors that occurred during document processing. Empty if the document was processed without errors.- Returns:
- the list of errors
-
toString
-