Class CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wisdom.CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty>
A builder for
CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.chunkingStrategy(String chunkingStrategy) fixedSizeChunkingConfiguration(CfnKnowledgeBasePropsMixin.FixedSizeChunkingConfigurationProperty fixedSizeChunkingConfiguration) fixedSizeChunkingConfiguration(IResolvable fixedSizeChunkingConfiguration) hierarchicalChunkingConfiguration(CfnKnowledgeBasePropsMixin.HierarchicalChunkingConfigurationProperty hierarchicalChunkingConfiguration) hierarchicalChunkingConfiguration(IResolvable hierarchicalChunkingConfiguration) semanticChunkingConfiguration(CfnKnowledgeBasePropsMixin.SemanticChunkingConfigurationProperty semanticChunkingConfiguration) semanticChunkingConfiguration(IResolvable semanticChunkingConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
chunkingStrategy
@Stability(Stable) public CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder chunkingStrategy(String chunkingStrategy) - Parameters:
chunkingStrategy- Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt forNONE, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.- Returns:
this
-
fixedSizeChunkingConfiguration
@Stability(Stable) public CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder fixedSizeChunkingConfiguration(IResolvable fixedSizeChunkingConfiguration) Sets the value ofCfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.getFixedSizeChunkingConfiguration()- Parameters:
fixedSizeChunkingConfiguration- Configurations for when you choose fixed-size chunking. If you set thechunkingStrategyasNONE, exclude this field.- Returns:
this
-
fixedSizeChunkingConfiguration
@Stability(Stable) public CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder fixedSizeChunkingConfiguration(CfnKnowledgeBasePropsMixin.FixedSizeChunkingConfigurationProperty fixedSizeChunkingConfiguration) Sets the value ofCfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.getFixedSizeChunkingConfiguration()- Parameters:
fixedSizeChunkingConfiguration- Configurations for when you choose fixed-size chunking. If you set thechunkingStrategyasNONE, exclude this field.- Returns:
this
-
hierarchicalChunkingConfiguration
@Stability(Stable) public CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder hierarchicalChunkingConfiguration(IResolvable hierarchicalChunkingConfiguration) Sets the value ofCfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.getHierarchicalChunkingConfiguration()- Parameters:
hierarchicalChunkingConfiguration- 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.- Returns:
this
-
hierarchicalChunkingConfiguration
@Stability(Stable) public CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder hierarchicalChunkingConfiguration(CfnKnowledgeBasePropsMixin.HierarchicalChunkingConfigurationProperty hierarchicalChunkingConfiguration) Sets the value ofCfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.getHierarchicalChunkingConfiguration()- Parameters:
hierarchicalChunkingConfiguration- 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.- Returns:
this
-
semanticChunkingConfiguration
@Stability(Stable) public CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder semanticChunkingConfiguration(IResolvable semanticChunkingConfiguration) Sets the value ofCfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.getSemanticChunkingConfiguration()- Parameters:
semanticChunkingConfiguration- Settings for semantic document chunking for a data source. Semantic chunking splits a document into smaller documents based on groups of similar content derived from the text with natural language processing.- Returns:
this
-
semanticChunkingConfiguration
@Stability(Stable) public CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.Builder semanticChunkingConfiguration(CfnKnowledgeBasePropsMixin.SemanticChunkingConfigurationProperty semanticChunkingConfiguration) Sets the value ofCfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty.getSemanticChunkingConfiguration()- Parameters:
semanticChunkingConfiguration- Settings for semantic document chunking for a data source. Semantic chunking splits a document into smaller documents based on groups of similar content derived from the text with natural language processing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty>- Returns:
- a new instance of
CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-