public sealed class DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig : IMessage<DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig>, IEquatable<DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig>, IDeepCloneable<DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1beta API class DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig.
Configuration for the layout based chunking.
Implements
IMessageDocumentProcessingConfigTypesChunkingConfigTypesLayoutBasedChunkingConfig, IEquatableDocumentProcessingConfigTypesChunkingConfigTypesLayoutBasedChunkingConfig, IDeepCloneableDocumentProcessingConfigTypesChunkingConfigTypesLayoutBasedChunkingConfig, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Constructors
LayoutBasedChunkingConfig()
public LayoutBasedChunkingConfig()LayoutBasedChunkingConfig(LayoutBasedChunkingConfig)
public LayoutBasedChunkingConfig(DocumentProcessingConfig.Types.ChunkingConfig.Types.LayoutBasedChunkingConfig other)| Parameter | |
|---|---|
| Name | Description | 
| other | DocumentProcessingConfigTypesChunkingConfigTypesLayoutBasedChunkingConfig | 
Properties
ChunkSize
public int ChunkSize { get; set; }The token size limit for each chunk.
Supported values: 100-500 (inclusive). Default value: 500.
| Property Value | |
|---|---|
| Type | Description | 
| int | |
IncludeAncestorHeadings
public bool IncludeAncestorHeadings { get; set; }Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss.
Default value: False.
| Property Value | |
|---|---|
| Type | Description | 
| bool | |