Class: AWSCDK::Bedrock::CfnKnowledgeBase::NeptuneAnalyticsFieldMappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::NeptuneAnalyticsFieldMappingProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
Contains the names of the fields to which to map information about the vector store.
Instance Attribute Summary collapse
-
#metadata_field ⇒ String
readonly
The name of the field in which Amazon Bedrock stores metadata about the vector store.
-
#text_field ⇒ String
readonly
The name of the field in which Amazon Bedrock stores the raw text from your data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata_field:, text_field:) ⇒ NeptuneAnalyticsFieldMappingProperty
constructor
A new instance of NeptuneAnalyticsFieldMappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metadata_field:, text_field:) ⇒ NeptuneAnalyticsFieldMappingProperty
Returns a new instance of NeptuneAnalyticsFieldMappingProperty.
1285 1286 1287 1288 1289 1290 |
# File 'bedrock/cfn_knowledge_base.rb', line 1285 def initialize(metadata_field:, text_field:) @metadata_field = Jsii::Type.check_type(@metadata_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metadataField") @text_field = text_field Jsii::Type.check_type(@text_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textField") end |
Instance Attribute Details
#metadata_field ⇒ String (readonly)
The name of the field in which Amazon Bedrock stores metadata about the vector store.
1296 1297 1298 |
# File 'bedrock/cfn_knowledge_base.rb', line 1296 def @metadata_field end |
#text_field ⇒ String (readonly)
The name of the field in which Amazon Bedrock stores the raw text from your data.
The text is split according to the chunking strategy you choose.
1303 1304 1305 |
# File 'bedrock/cfn_knowledge_base.rb', line 1303 def text_field @text_field end |
Class Method Details
.jsii_properties ⇒ Object
1305 1306 1307 1308 1309 1310 |
# File 'bedrock/cfn_knowledge_base.rb', line 1305 def self.jsii_properties { :metadata_field => "metadataField", :text_field => "textField", } end |
Instance Method Details
#to_jsii ⇒ Object
1312 1313 1314 1315 1316 1317 1318 1319 |
# File 'bedrock/cfn_knowledge_base.rb', line 1312 def to_jsii result = {} result.merge!({ "metadataField" => @metadata_field, "textField" => @text_field, }) result.compact end |