Class: AWSCDK::Bedrock::CfnFlowVersion::RerankingMetadataSelectiveModeConfigurationProperty

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

Overview

Configuration for selectively including or excluding metadata fields during the reranking process.

This allows you to control which metadata attributes are considered when reordering search results.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields_to_exclude: nil, fields_to_include: nil) ⇒ RerankingMetadataSelectiveModeConfigurationProperty

Returns a new instance of RerankingMetadataSelectiveModeConfigurationProperty.

Parameters:



2252
2253
2254
2255
2256
2257
# File 'bedrock/cfn_flow_version.rb', line 2252

def initialize(fields_to_exclude: nil, fields_to_include: nil)
  @fields_to_exclude = fields_to_exclude
  Jsii::Type.check_type(@fields_to_exclude, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5GbG93VmVyc2lvbi5GaWVsZEZvclJlcmFua2luZ1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "fieldsToExclude") unless @fields_to_exclude.nil?
  @fields_to_include = fields_to_include
  Jsii::Type.check_type(@fields_to_include, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5GbG93VmVyc2lvbi5GaWVsZEZvclJlcmFua2luZ1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "fieldsToInclude") unless @fields_to_include.nil?
end

Instance Attribute Details

#fields_to_excludeAWSCDK::IResolvable, ... (readonly)

A list of metadata field names to explicitly exclude from the reranking process.

All metadata fields except these will be considered when reordering search results. This parameter cannot be used together with fieldsToInclude.



2265
2266
2267
# File 'bedrock/cfn_flow_version.rb', line 2265

def fields_to_exclude
  @fields_to_exclude
end

#fields_to_includeAWSCDK::IResolvable, ... (readonly)

A list of metadata field names to explicitly include in the reranking process.

Only these fields will be considered when reordering search results. This parameter cannot be used together with fieldsToExclude.



2272
2273
2274
# File 'bedrock/cfn_flow_version.rb', line 2272

def fields_to_include
  @fields_to_include
end

Class Method Details

.jsii_propertiesObject



2274
2275
2276
2277
2278
2279
# File 'bedrock/cfn_flow_version.rb', line 2274

def self.jsii_properties
  {
    :fields_to_exclude => "fieldsToExclude",
    :fields_to_include => "fieldsToInclude",
  }
end

Instance Method Details

#to_jsiiObject



2281
2282
2283
2284
2285
2286
2287
2288
# File 'bedrock/cfn_flow_version.rb', line 2281

def to_jsii
  result = {}
  result.merge!({
    "fieldsToExclude" => @fields_to_exclude,
    "fieldsToInclude" => @fields_to_include,
  })
  result.compact
end