Class: Aws::BedrockAgent::Types::HierarchicalChunkingConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb

Overview

Settings for hierarchical document chunking for a data source. Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.

You configure the number of tokens to overlap, or repeat across adjacent chunks. For example, if you set overlap tokens to 60, the last 60 tokens in the first chunk are also included at the beginning of the second chunk. For each layer, you must also configure the maximum number of tokens in a chunk.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#level_configurationsArray<Types::HierarchicalChunkingLevelConfiguration>

Token settings for each layer.



4500
4501
4502
4503
4504
4505
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 4500

class HierarchicalChunkingConfiguration < Struct.new(
  :level_configurations,
  :overlap_tokens)
  SENSITIVE = []
  include Aws::Structure
end

#overlap_tokensInteger

The number of tokens to repeat across chunks in the same layer.

Returns:

  • (Integer)


4500
4501
4502
4503
4504
4505
# File 'gems/aws-sdk-bedrockagent/lib/aws-sdk-bedrockagent/types.rb', line 4500

class HierarchicalChunkingConfiguration < Struct.new(
  :level_configurations,
  :overlap_tokens)
  SENSITIVE = []
  include Aws::Structure
end