Class: AWSCDK::Bedrock::CfnFlow::RerankingMetadataSelectiveModeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow.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:



2431
2432
2433
2434
2435
2436
# File 'bedrock/cfn_flow.rb', line 2431

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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5GbG93LkZpZWxkRm9yUmVyYW5raW5nUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "fieldsToExclude") unless @fields_to_exclude.nil?
  @fields_to_include = fields_to_include
  Jsii::Type.check_type(@fields_to_include, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5GbG93LkZpZWxkRm9yUmVyYW5raW5nUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "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.



2444
2445
2446
# File 'bedrock/cfn_flow.rb', line 2444

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.



2451
2452
2453
# File 'bedrock/cfn_flow.rb', line 2451

def fields_to_include
  @fields_to_include
end

Class Method Details

.jsii_propertiesObject



2453
2454
2455
2456
2457
2458
# File 'bedrock/cfn_flow.rb', line 2453

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

Instance Method Details

#to_jsiiObject



2460
2461
2462
2463
2464
2465
2466
2467
# File 'bedrock/cfn_flow.rb', line 2460

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