Class CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty>
- Enclosing interface:
CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty
@Stability(Stable)
public static final class CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.embeddingModelArn
(String embeddingModelArn) embeddingModelConfiguration
(IResolvable embeddingModelConfiguration) embeddingModelConfiguration
(CfnKnowledgeBase.EmbeddingModelConfigurationProperty embeddingModelConfiguration) supplementalDataStorageConfiguration
(IResolvable supplementalDataStorageConfiguration) supplementalDataStorageConfiguration
(CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty supplementalDataStorageConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
embeddingModelArn
@Stability(Stable) public CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder embeddingModelArn(String embeddingModelArn) - Parameters:
embeddingModelArn
- The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base. This parameter is required.- Returns:
this
-
embeddingModelConfiguration
@Stability(Stable) public CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder embeddingModelConfiguration(IResolvable embeddingModelConfiguration) Sets the value ofCfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.getEmbeddingModelConfiguration()
- Parameters:
embeddingModelConfiguration
- The embeddings model configuration details for the vector model used in Knowledge Base.- Returns:
this
-
embeddingModelConfiguration
@Stability(Stable) public CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder embeddingModelConfiguration(CfnKnowledgeBase.EmbeddingModelConfigurationProperty embeddingModelConfiguration) Sets the value ofCfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.getEmbeddingModelConfiguration()
- Parameters:
embeddingModelConfiguration
- The embeddings model configuration details for the vector model used in Knowledge Base.- Returns:
this
-
supplementalDataStorageConfiguration
@Stability(Stable) public CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder supplementalDataStorageConfiguration(IResolvable supplementalDataStorageConfiguration) Sets the value ofCfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.getSupplementalDataStorageConfiguration()
- Parameters:
supplementalDataStorageConfiguration
- If you include multimodal data from your data source, use this object to specify configurations for the storage location of the images extracted from your documents. These images can be retrieved and returned to the end user. They can also be used in generation when using RetrieveAndGenerate .- Returns:
this
-
supplementalDataStorageConfiguration
@Stability(Stable) public CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.Builder supplementalDataStorageConfiguration(CfnKnowledgeBase.SupplementalDataStorageConfigurationProperty supplementalDataStorageConfiguration) Sets the value ofCfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty.getSupplementalDataStorageConfiguration()
- Parameters:
supplementalDataStorageConfiguration
- If you include multimodal data from your data source, use this object to specify configurations for the storage location of the images extracted from your documents. These images can be retrieved and returned to the end user. They can also be used in generation when using RetrieveAndGenerate .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty>
- Returns:
- a new instance of
CfnKnowledgeBase.VectorKnowledgeBaseConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-