Class: AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterFieldMappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterFieldMappingProperty
- 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.
-
#vector_field ⇒ String
readonly
The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata_field:, text_field:, vector_field:) ⇒ OpenSearchManagedClusterFieldMappingProperty
constructor
A new instance of OpenSearchManagedClusterFieldMappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metadata_field:, text_field:, vector_field:) ⇒ OpenSearchManagedClusterFieldMappingProperty
Returns a new instance of OpenSearchManagedClusterFieldMappingProperty.
1396 1397 1398 1399 1400 1401 1402 1403 |
# File 'bedrock/cfn_knowledge_base.rb', line 1396 def initialize(metadata_field:, text_field:, vector_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") @vector_field = vector_field Jsii::Type.check_type(@vector_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vectorField") end |
Instance Attribute Details
#metadata_field ⇒ String (readonly)
The name of the field in which Amazon Bedrock stores metadata about the vector store.
1409 1410 1411 |
# File 'bedrock/cfn_knowledge_base.rb', line 1409 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.
1416 1417 1418 |
# File 'bedrock/cfn_knowledge_base.rb', line 1416 def text_field @text_field end |
#vector_field ⇒ String (readonly)
The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
1421 1422 1423 |
# File 'bedrock/cfn_knowledge_base.rb', line 1421 def vector_field @vector_field end |
Class Method Details
.jsii_properties ⇒ Object
1423 1424 1425 1426 1427 1428 1429 |
# File 'bedrock/cfn_knowledge_base.rb', line 1423 def self.jsii_properties { :metadata_field => "metadataField", :text_field => "textField", :vector_field => "vectorField", } end |
Instance Method Details
#to_jsii ⇒ Object
1431 1432 1433 1434 1435 1436 1437 1438 1439 |
# File 'bedrock/cfn_knowledge_base.rb', line 1431 def to_jsii result = {} result.merge!({ "metadataField" => @metadata_field, "textField" => @text_field, "vectorField" => @vector_field, }) result.compact end |