Class ChunkDocumentRequest

java.lang.Object
ai.docling.serve.api.request.DocumentRequest
ai.docling.serve.api.chunk.request.ChunkDocumentRequest
Direct Known Subclasses:
HierarchicalChunkDocumentRequest, HybridChunkDocumentRequest

public abstract sealed class ChunkDocumentRequest extends DocumentRequest permits HierarchicalChunkDocumentRequest, HybridChunkDocumentRequest
  • Constructor Details

  • Method Details

    • toBuilder

      public abstract ChunkDocumentRequest.Builder<?,?> toBuilder()
      Description copied from class: DocumentRequest
      Returns a builder pre-populated with this request's current field values, allowing a modified copy to be created. Each concrete subtype returns its own builder covariantly.
      Specified by:
      toBuilder in class DocumentRequest
      Returns:
      a builder initialized from this request
    • getOptions

      @NonNull public @NonNull ConvertDocumentOptions getOptions()
      Conversion options.
      Returns:
      the conversion options
    • isIncludeConvertedDoc

      public boolean isIncludeConvertedDoc()
      If true, the output will include both the chunks and the converted document.
      Returns:
      true if the converted document should be included, false otherwise
    • toString

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