Class: AWSCDK::Bedrock::CfnKnowledgeBase::PineconeFieldMappingProperty

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:) ⇒ PineconeFieldMappingProperty

Returns a new instance of PineconeFieldMappingProperty.

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.



1625
1626
1627
1628
1629
1630
# File 'bedrock/cfn_knowledge_base.rb', line 1625

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_fieldString (readonly)

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



1636
1637
1638
# File 'bedrock/cfn_knowledge_base.rb', line 1636

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.



1643
1644
1645
# File 'bedrock/cfn_knowledge_base.rb', line 1643

def text_field
  @text_field
end

Class Method Details

.jsii_propertiesObject



1645
1646
1647
1648
1649
1650
# File 'bedrock/cfn_knowledge_base.rb', line 1645

def self.jsii_properties
  {
    :metadata_field => "metadataField",
    :text_field => "textField",
  }
end

Instance Method Details

#to_jsiiObject



1652
1653
1654
1655
1656
1657
1658
1659
# File 'bedrock/cfn_knowledge_base.rb', line 1652

def to_jsii
  result = {}
  result.merge!({
    "metadataField" => @metadata_field,
    "textField" => @text_field,
  })
  result.compact
end