Class: AWSCDK::Bedrock::CfnFlowVersion::MetadataConfigurationForRerankingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlowVersion::MetadataConfigurationForRerankingProperty
- Defined in:
- bedrock/cfn_flow_version.rb
Overview
Configuration for how metadata should be used during the reranking process in Knowledge Base vector searches.
This determines which metadata fields are included or excluded when reordering search results.
Instance Attribute Summary collapse
-
#selection_mode ⇒ String
readonly
The mode for selecting which metadata fields to include in the reranking process.
-
#selective_mode_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for selective mode, which allows you to explicitly include or exclude specific metadata fields during reranking.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(selection_mode:, selective_mode_configuration: nil) ⇒ MetadataConfigurationForRerankingProperty
constructor
A new instance of MetadataConfigurationForRerankingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(selection_mode:, selective_mode_configuration: nil) ⇒ MetadataConfigurationForRerankingProperty
Returns a new instance of MetadataConfigurationForRerankingProperty.
1818 1819 1820 1821 1822 1823 |
# File 'bedrock/cfn_flow_version.rb', line 1818 def initialize(selection_mode:, selective_mode_configuration: nil) @selection_mode = selection_mode Jsii::Type.check_type(@selection_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "selectionMode") @selective_mode_configuration = selective_mode_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnFlowVersion::RerankingMetadataSelectiveModeConfigurationProperty.new(**selective_mode_configuration.transform_keys(&:to_sym)) : selective_mode_configuration Jsii::Type.check_type(@selective_mode_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkZsb3dWZXJzaW9uLlJlcmFua2luZ01ldGFkYXRhU2VsZWN0aXZlTW9kZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "selectiveModeConfiguration") unless @selective_mode_configuration.nil? end |
Instance Attribute Details
#selection_mode ⇒ String (readonly)
The mode for selecting which metadata fields to include in the reranking process.
Valid values are ALL (use all available metadata fields) or SELECTIVE (use only specified fields).
1831 1832 1833 |
# File 'bedrock/cfn_flow_version.rb', line 1831 def selection_mode @selection_mode end |
#selective_mode_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration for selective mode, which allows you to explicitly include or exclude specific metadata fields during reranking.
This is only used when selectionMode is set to SELECTIVE.
1838 1839 1840 |
# File 'bedrock/cfn_flow_version.rb', line 1838 def selective_mode_configuration @selective_mode_configuration end |
Class Method Details
.jsii_properties ⇒ Object
1840 1841 1842 1843 1844 1845 |
# File 'bedrock/cfn_flow_version.rb', line 1840 def self.jsii_properties { :selection_mode => "selectionMode", :selective_mode_configuration => "selectiveModeConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1847 1848 1849 1850 1851 1852 1853 1854 |
# File 'bedrock/cfn_flow_version.rb', line 1847 def to_jsii result = {} result.merge!({ "selectionMode" => @selection_mode, "selectiveModeConfiguration" => @selective_mode_configuration, }) result.compact end |