Class ChunkDocumentResponse

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

public class ChunkDocumentResponse extends Object
Response returned by the Chunk API for a single conversion request.

Serialization uses JsonInclude.Include.NON_EMPTY, so nulls and empty collections/strings are omitted from JSON output.

  • Method Details

    • builder

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

      public @NonNull ChunkDocumentResponse.Builder toBuilder()
    • getChunks

      public List<Chunk> getChunks()
      List of document chunks.
      Returns:
      the list of chunks
    • getDocuments

      public List<Document> getDocuments()
      List of converted documents (if include_converted_doc was true).
      Returns:
      the list of converted documents
    • getProcessingTime

      public Double getProcessingTime()
      Total processing time in seconds.
      Returns:
      the processing time in seconds
    • toString

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