Class: AWSCDK::Bedrock::CfnFlowVersion::FieldForRerankingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlowVersion::FieldForRerankingProperty
- 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
-
#field_name ⇒ String
readonly
The name of the metadata field to be used during the reranking process.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_name:) ⇒ FieldForRerankingProperty
constructor
A new instance of FieldForRerankingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_name:) ⇒ FieldForRerankingProperty
Returns a new instance of FieldForRerankingProperty.
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_name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |