Class HierarchicalChunkDocumentRequest

java.lang.Object
ai.docling.serve.api.chunk.request.HierarchicalChunkDocumentRequest

public class HierarchicalChunkDocumentRequest extends Object
Represents a request to convert a document and chunk it into smaller documents using the Docling hierarchical chunker.
  • Method Details

    • builder

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

      public @NonNull HierarchicalChunkDocumentRequest.Builder toBuilder()
    • 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
    • getChunkingOptions

      @NonNull public @NonNull HierarchicalChunkerOptions getChunkingOptions()
      Options specific to the chunker.
      Returns:
      the hierarchical chunker options
    • toString

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