Class: AWSCDK::Bedrock::CfnKnowledgeBase::BedrockEmbeddingModelConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::BedrockEmbeddingModelConfigurationProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
The vector configuration details for the Bedrock embeddings model.
Instance Attribute Summary collapse
-
#audio ⇒ AWSCDK::IResolvable, ...
readonly
Configuration settings for processing audio content in multimodal knowledge bases.
-
#dimensions ⇒ Numeric?
readonly
The dimensions details for the vector configuration used on the Bedrock embeddings model.
-
#embedding_data_type ⇒ String?
readonly
The data type for the vectors when using a model to convert text into vector embeddings.
-
#video ⇒ AWSCDK::IResolvable, ...
readonly
Configuration settings for processing video content in multimodal knowledge bases.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(audio: nil, dimensions: nil, embedding_data_type: nil, video: nil) ⇒ BedrockEmbeddingModelConfigurationProperty
constructor
A new instance of BedrockEmbeddingModelConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(audio: nil, dimensions: nil, embedding_data_type: nil, video: nil) ⇒ BedrockEmbeddingModelConfigurationProperty
Returns a new instance of BedrockEmbeddingModelConfigurationProperty.
737 738 739 740 741 742 743 744 745 746 |
# File 'bedrock/cfn_knowledge_base.rb', line 737 def initialize(audio: nil, dimensions: nil, embedding_data_type: nil, video: nil) @audio = audio Jsii::Type.check_type(@audio, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5Lbm93bGVkZ2VCYXNlLkF1ZGlvQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "audio") unless @audio.nil? @dimensions = dimensions Jsii::Type.check_type(@dimensions, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "dimensions") unless @dimensions.nil? @embedding_data_type = Jsii::Type.check_type(@embedding_data_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "embeddingDataType") unless @embedding_data_type.nil? @video = video Jsii::Type.check_type(@video, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5Lbm93bGVkZ2VCYXNlLlZpZGVvQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "video") unless @video.nil? end |
Instance Attribute Details
#audio ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration settings for processing audio content in multimodal knowledge bases.
752 753 754 |
# File 'bedrock/cfn_knowledge_base.rb', line 752 def audio @audio end |
#dimensions ⇒ Numeric? (readonly)
The dimensions details for the vector configuration used on the Bedrock embeddings model.
757 758 759 |
# File 'bedrock/cfn_knowledge_base.rb', line 757 def dimensions @dimensions end |
#embedding_data_type ⇒ String? (readonly)
The data type for the vectors when using a model to convert text into vector embeddings.
The model must support the specified data type for vector embeddings. Floating-point (float32) is the default data type, and is supported by most models for vector embeddings. See Supported embeddings models for information on the available models and their vector data types.
764 765 766 |
# File 'bedrock/cfn_knowledge_base.rb', line 764 def @embedding_data_type end |
#video ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration settings for processing video content in multimodal knowledge bases.
769 770 771 |
# File 'bedrock/cfn_knowledge_base.rb', line 769 def video @video end |
Class Method Details
.jsii_properties ⇒ Object
771 772 773 774 775 776 777 778 |
# File 'bedrock/cfn_knowledge_base.rb', line 771 def self.jsii_properties { :audio => "audio", :dimensions => "dimensions", :embedding_data_type => "embeddingDataType", :video => "video", } end |
Instance Method Details
#to_jsii ⇒ Object
780 781 782 783 784 785 786 787 788 789 |
# File 'bedrock/cfn_knowledge_base.rb', line 780 def to_jsii result = {} result.merge!({ "audio" => @audio, "dimensions" => @dimensions, "embeddingDataType" => @embedding_data_type, "video" => @video, }) result.compact end |