Interface CfnDataSource.ChunkingConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDataSource.ChunkingConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnDataSource

@Stability(Stable) public static interface CfnDataSource.ChunkingConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Details about how to chunk the documents in the data source.

A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.

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.*;
 ChunkingConfigurationProperty chunkingConfigurationProperty = ChunkingConfigurationProperty.builder()
         .chunkingStrategy("chunkingStrategy")
         // the properties below are optional
         .fixedSizeChunkingConfiguration(FixedSizeChunkingConfigurationProperty.builder()
                 .maxTokens(123)
                 .overlapPercentage(123)
                 .build())
         .hierarchicalChunkingConfiguration(HierarchicalChunkingConfigurationProperty.builder()
                 .levelConfigurations(List.of(HierarchicalChunkingLevelConfigurationProperty.builder()
                         .maxTokens(123)
                         .build()))
                 .overlapTokens(123)
                 .build())
         .semanticChunkingConfiguration(SemanticChunkingConfigurationProperty.builder()
                 .breakpointPercentileThreshold(123)
                 .bufferSize(123)
                 .maxTokens(123)
                 .build())
         .build();
 

See Also: