Class Document

java.lang.Object
ai.docling.serve.api.chunk.response.Document

public class Document extends Object
Represents the document being processed by a Docling chunker.
  • Method Details

    • builder

      public static @NonNull Document.Builder builder()
    • toBuilder

      public @NonNull Document.Builder toBuilder()
    • getKind

      public @Nullable String 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

      public ExportDocumentResponse getContent()
      The converted document content in various export formats. Contains the document data before chunking was applied.
      Returns:
      the exported document content
    • getStatus

      public String getStatus()
      Processing status of the document. Common values include "success", "failure", or "partial".
      Returns:
      the processing status
    • getErrors

      public List<ErrorItem> getErrors()
      List of errors that occurred during document processing. Empty if the document was processed without errors.
      Returns:
      the list of errors
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object