Class: AWSCDK::Bedrock::CfnKnowledgeBase::OpenSearchManagedClusterFieldMappingProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata_field:, text_field:, vector_field:) ⇒ OpenSearchManagedClusterFieldMappingProperty

Returns a new instance of OpenSearchManagedClusterFieldMappingProperty.

Parameters:

  • metadata_field (String)

    The name of the field in which Amazon Bedrock stores metadata about the vector store.

  • text_field (String)

    The name of the field in which Amazon Bedrock stores the raw text from your data.

  • vector_field (String)

    The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.



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_fieldString (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_fieldString (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_fieldString (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_propertiesObject



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_jsiiObject



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