Interface CfnDataSource.HierarchicalChunkingConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSource.HierarchicalChunkingConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSource
@Stability(Stable)
public static interface CfnDataSource.HierarchicalChunkingConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.bedrock.*; HierarchicalChunkingConfigurationProperty hierarchicalChunkingConfigurationProperty = HierarchicalChunkingConfigurationProperty.builder() .levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder() .maxTokens(123) .build())) .overlapTokens(123) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDataSource.HierarchicalChunkingConfigurationProperty
static final class
An implementation forCfnDataSource.HierarchicalChunkingConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Token settings for each layer.The number of tokens to repeat across chunks in the same layer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLevelConfigurations
Token settings for each layer.- See Also:
-
getOverlapTokens
The number of tokens to repeat across chunks in the same layer.- See Also:
-
builder
-