Interface CfnKnowledgeBase.ManagedKnowledgeBaseConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKnowledgeBase.ManagedKnowledgeBaseConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnKnowledgeBase
@Stability(Stable)
public static interface CfnKnowledgeBase.ManagedKnowledgeBaseConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Contains details about the model used to create vector embeddings for a managed knowledge base.
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.*;
ManagedKnowledgeBaseConfigurationProperty managedKnowledgeBaseConfigurationProperty = ManagedKnowledgeBaseConfigurationProperty.builder()
.embeddingModelArn("embeddingModelArn")
// the properties below are optional
.embeddingModelConfiguration(EmbeddingModelConfigurationProperty.builder()
.bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfigurationProperty.builder()
.audio(List.of(AudioConfigurationProperty.builder()
.segmentationConfiguration(AudioSegmentationConfigurationProperty.builder()
.fixedLengthDuration(123)
.build())
.build()))
.dimensions(123)
.embeddingDataType("embeddingDataType")
.video(List.of(VideoConfigurationProperty.builder()
.segmentationConfiguration(VideoSegmentationConfigurationProperty.builder()
.fixedLengthDuration(123)
.build())
.build()))
.build())
.build())
.embeddingModelType("embeddingModelType")
.serverSideEncryptionConfiguration(ManagedKnowledgeBaseServerSideEncryptionConfigurationProperty.builder()
.kmsKeyArn("kmsKeyArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnKnowledgeBase.ManagedKnowledgeBaseConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The ARN of the model used to create vector embeddings for the knowledge base.default ObjectThe embeddings model configuration details for the vector model used in Knowledge Base.default StringThe type of embedding model to use for the managed knowledge base.default ObjectContains details about the server-side encryption for the managed knowledge base.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEmbeddingModelArn
The ARN of the model used to create vector embeddings for the knowledge base.- See Also:
-
getEmbeddingModelConfiguration
The embeddings model configuration details for the vector model used in Knowledge Base.Returns union: either
IResolvableorCfnKnowledgeBase.EmbeddingModelConfigurationProperty- See Also:
-
getEmbeddingModelType
The type of embedding model to use for the managed knowledge base.- See Also:
-
getServerSideEncryptionConfiguration
Contains details about the server-side encryption for the managed knowledge base.Returns union: either
IResolvableorCfnKnowledgeBase.ManagedKnowledgeBaseServerSideEncryptionConfigurationProperty- See Also:
-
builder
@Stability(Stable) static CfnKnowledgeBase.ManagedKnowledgeBaseConfigurationProperty.Builder builder()
-