Class: Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ChunkingConfig::LayoutBasedChunkingConfig
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::DocumentProcessingConfig::ChunkingConfig::LayoutBasedChunkingConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb
Overview
Configuration for the layout based chunking.
Instance Attribute Summary collapse
-
#chunk_size ⇒ ::Integer
The token size limit for each chunk.
-
#include_ancestor_headings ⇒ ::Boolean
Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss.
Instance Attribute Details
#chunk_size ⇒ ::Integer
Returns The token size limit for each chunk.
Supported values: 100-500 (inclusive). Default value: 500.
86 87 88 89 |
# File 'proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb', line 86 class LayoutBasedChunkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#include_ancestor_headings ⇒ ::Boolean
Returns Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss.
Default value: False.
86 87 88 89 |
# File 'proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb', line 86 class LayoutBasedChunkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |