Class: AWSCDK::Bedrock::CfnFlowVersion::FieldForRerankingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow_version.rb

Overview

Specifies a field to be used during the reranking process in a Knowledge Base vector search.

This structure identifies metadata fields that should be considered when reordering search results to improve relevance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_name:) ⇒ FieldForRerankingProperty

Returns a new instance of FieldForRerankingProperty.

Parameters:

  • field_name (String)

    The name of the metadata field to be used during the reranking process.



647
648
649
650
# File 'bedrock/cfn_flow_version.rb', line 647

def initialize(field_name:)
  @field_name = field_name
  Jsii::Type.check_type(@field_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldName")
end

Instance Attribute Details

#field_nameString (readonly)

The name of the metadata field to be used during the reranking process.



656
657
658
# File 'bedrock/cfn_flow_version.rb', line 656

def field_name
  @field_name
end

Class Method Details

.jsii_propertiesObject



658
659
660
661
662
# File 'bedrock/cfn_flow_version.rb', line 658

def self.jsii_properties
  {
    :field_name => "fieldName",
  }
end

Instance Method Details

#to_jsiiObject



664
665
666
667
668
669
670
# File 'bedrock/cfn_flow_version.rb', line 664

def to_jsii
  result = {}
  result.merge!({
    "fieldName" => @field_name,
  })
  result.compact
end