Class ChunkDocumentRequest

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

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

  • Method Details

    • getSources

      public List<Source> getSources()
      List of input document sources to process.
      Returns:
      the list of document sources
    • getOptions

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

      public @Nullable Target getTarget()
      Specification for the type of output target.
      Returns:
      the output target specification, or null if not specified
    • 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 Object