Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Configuration for the layout based chunking.
Instance Attribute Summary collapse
-
#chunk_size ⇒ Fixnum
The token size limit for each chunk.
-
#include_ancestor_headings ⇒ Boolean
(also: #include_ancestor_headings?)
Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
Returns a new instance of GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig.
2742 2743 2744 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2742 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk_size ⇒ Fixnum
The token size limit for each chunk. Supported values: 100-500 (inclusive).
Default value: 500.
Corresponds to the JSON property chunkSize
2733 2734 2735 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2733 def chunk_size @chunk_size end |
#include_ancestor_headings ⇒ Boolean Also known as: include_ancestor_headings?
Whether to include appending different levels of headings to chunks from the
middle of the document to prevent context loss. Default value: False.
Corresponds to the JSON property includeAncestorHeadings
2739 2740 2741 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2739 def include_ancestor_headings @include_ancestor_headings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2747 2748 2749 2750 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2747 def update!(**args) @chunk_size = args[:chunk_size] if args.key?(:chunk_size) @include_ancestor_headings = args[:include_ancestor_headings] if args.key?(:include_ancestor_headings) end |