interface HierarchicalChunkingConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Wisdom.Mixins.CfnKnowledgeBasePropsMixin.HierarchicalChunkingConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswisdom/mixins#CfnKnowledgeBasePropsMixin_HierarchicalChunkingConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.wisdom.mixins.CfnKnowledgeBasePropsMixin.HierarchicalChunkingConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_wisdom.mixins.CfnKnowledgeBasePropsMixin.HierarchicalChunkingConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_wisdom » mixins » CfnKnowledgeBasePropsMixin » HierarchicalChunkingConfigurationProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as wisdom_mixins } from '@aws-cdk/mixins-preview/aws-wisdom';
const hierarchicalChunkingConfigurationProperty: wisdom_mixins.CfnKnowledgeBasePropsMixin.HierarchicalChunkingConfigurationProperty = {
levelConfigurations: [{
maxTokens: 123,
}],
overlapTokens: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| level | IResolvable | (IResolvable | Hierarchical)[] | Token settings for each layer. |
| overlap | number | The number of tokens to repeat across chunks in the same layer. |
levelConfigurations?
Type:
IResolvable | (IResolvable | Hierarchical)[]
(optional)
Token settings for each layer.
overlapTokens?
Type:
number
(optional)
The number of tokens to repeat across chunks in the same layer.

.NET
Go
Java
Python
TypeScript