Interface DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigOrBuilder (0.51.0)

public static interface DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getChunkSize()

public abstract int getChunkSize()

The token size limit for each chunk.

Supported values: 100-500 (inclusive). Default value: 500.

int32 chunk_size = 1;

Returns
Type Description
int

The chunkSize.

getIncludeAncestorHeadings()

public abstract 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
Type Description
boolean

The includeAncestorHeadings.