FixedSizeChunkingConfigurationProperty Struct
Configurations for when you choose fixed-size chunking.
If you set the chunkingStrategy as NONE , exclude this field.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wisdom as wisdom } from 'aws-cdk-lib';
const fixedSizeChunkingConfigurationProperty: wisdom.CfnKnowledgeBase.FixedSizeChunkingConfigurationProperty = {
maxTokens: 123,
overlapPercentage: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wisdom as wisdom
fixed_size_chunking_configuration_property = wisdom.CfnKnowledgeBase.FixedSizeChunkingConfigurationProperty(
max_tokens=123,
overlap_percentage=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wisdom.*;
FixedSizeChunkingConfigurationProperty fixedSizeChunkingConfigurationProperty = FixedSizeChunkingConfigurationProperty.builder()
.maxTokens(123)
.overlapPercentage(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Wisdom;
var fixedSizeChunkingConfigurationProperty = new FixedSizeChunkingConfigurationProperty {
MaxTokens = 123,
OverlapPercentage = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
fixedSizeChunkingConfigurationProperty := &FixedSizeChunkingConfigurationProperty{
MaxTokens: jsii.Number(123),
OverlapPercentage: jsii.Number(123),
}
Properties
The maximum number of tokens to include in a chunk.
overlapPercentagenumberoverlap_percentageint | floatoverlapPercentageNumberOverlapPercentagedoubleOverlapPercentage*float64 required #The percentage of overlap between adjacent chunks of a data source.