Class: AWSCDK::Bedrock::CfnDataSource::ContextEnrichmentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnDataSource::ContextEnrichmentConfigurationProperty
- Defined in:
- bedrock/cfn_data_source.rb
Overview
Context enrichment configuration is used to provide additional context to the RAG application.
Instance Attribute Summary collapse
-
#bedrock_foundation_model_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The configuration of the Amazon Bedrock foundation model used for context enrichment.
-
#type ⇒ String
readonly
The method used for context enrichment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, bedrock_foundation_model_configuration: nil) ⇒ ContextEnrichmentConfigurationProperty
constructor
A new instance of ContextEnrichmentConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, bedrock_foundation_model_configuration: nil) ⇒ ContextEnrichmentConfigurationProperty
Returns a new instance of ContextEnrichmentConfigurationProperty.
1029 1030 1031 1032 1033 1034 |
# File 'bedrock/cfn_data_source.rb', line 1029 def initialize(type:, bedrock_foundation_model_configuration: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @bedrock_foundation_model_configuration = bedrock_foundation_model_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataSource::BedrockFoundationModelContextEnrichmentConfigurationProperty.new(**bedrock_foundation_model_configuration.transform_keys(&:to_sym)) : bedrock_foundation_model_configuration Jsii::Type.check_type(@bedrock_foundation_model_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFTb3VyY2UuQmVkcm9ja0ZvdW5kYXRpb25Nb2RlbENvbnRleHRFbnJpY2htZW50Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "bedrockFoundationModelConfiguration") unless @bedrock_foundation_model_configuration.nil? end |
Instance Attribute Details
#bedrock_foundation_model_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration of the Amazon Bedrock foundation model used for context enrichment.
1047 1048 1049 |
# File 'bedrock/cfn_data_source.rb', line 1047 def bedrock_foundation_model_configuration @bedrock_foundation_model_configuration end |
#type ⇒ String (readonly)
The method used for context enrichment.
It must be Amazon Bedrock foundation models.
1042 1043 1044 |
# File 'bedrock/cfn_data_source.rb', line 1042 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1049 1050 1051 1052 1053 1054 |
# File 'bedrock/cfn_data_source.rb', line 1049 def self.jsii_properties { :type => "type", :bedrock_foundation_model_configuration => "bedrockFoundationModelConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1056 1057 1058 1059 1060 1061 1062 1063 |
# File 'bedrock/cfn_data_source.rb', line 1056 def to_jsii result = {} result.merge!({ "type" => @type, "bedrockFoundationModelConfiguration" => @bedrock_foundation_model_configuration, }) result.compact end |