Interface DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig, DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.Builder
Enclosing class:
DocumentProcessingConfig.ChunkingConfig

public static interface DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The token size limit for each chunk.
    boolean
    Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getChunkSize

      int getChunkSize()
       The token size limit for each chunk.
      
       Supported values: 100-500 (inclusive).
       Default value: 500.
       
      int32 chunk_size = 1;
      Returns:
      The chunkSize.
    • getIncludeAncestorHeadings

      boolean getIncludeAncestorHeadings()
       Whether to include appending different levels of headings to chunks
       from the middle of the document to prevent context loss.
      
       Default value: False.
       
      bool include_ancestor_headings = 2;
      Returns:
      The includeAncestorHeadings.