Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignals
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignals
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
A set of ranking signals.
Instance Attribute Summary collapse
-
#boosting_factor ⇒ Float
Optional.
-
#custom_signals ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal>
Optional.
-
#default_rank ⇒ Float
Optional.
-
#document_age ⇒ Float
Optional.
-
#keyword_similarity_score ⇒ Float
Optional.
-
#pctr_rank ⇒ Float
Optional.
-
#precomputed_expression_values ⇒ Array<Float>
Optional.
-
#relevance_score ⇒ Float
Optional.
-
#semantic_similarity_score ⇒ Float
Optional.
-
#topicality_rank ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignals
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignals.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignals
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignals.
31659 31660 31661 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31659 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boosting_factor ⇒ Float
Optional. Combined custom boosts for a doc.
Corresponds to the JSON property boostingFactor
31610 31611 31612 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31610 def boosting_factor @boosting_factor end |
#custom_signals ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignalsCustomSignal>
Optional. A list of custom clearbox signals.
Corresponds to the JSON property customSignals
31615 31616 31617 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31615 def custom_signals @custom_signals end |
#default_rank ⇒ Float
Optional. The default rank of the result.
Corresponds to the JSON property defaultRank
31620 31621 31622 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31620 def default_rank @default_rank end |
#document_age ⇒ Float
Optional. Age of the document in hours.
Corresponds to the JSON property documentAge
31625 31626 31627 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31625 def document_age @document_age end |
#keyword_similarity_score ⇒ Float
Optional. Keyword matching adjustment.
Corresponds to the JSON property keywordSimilarityScore
31630 31631 31632 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31630 def keyword_similarity_score @keyword_similarity_score end |
#pctr_rank ⇒ Float
Optional. Predicted conversion rate adjustment as a rank.
Corresponds to the JSON property pctrRank
31635 31636 31637 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31635 def pctr_rank @pctr_rank end |
#precomputed_expression_values ⇒ Array<Float>
Optional. A list of precomputed expression results for a given document, in
the same order as requested in SearchRequest.custom_ranking_params.
expressions_to_precompute.
Corresponds to the JSON property precomputedExpressionValues
31642 31643 31644 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31642 def precomputed_expression_values @precomputed_expression_values end |
#relevance_score ⇒ Float
Optional. Semantic relevance adjustment.
Corresponds to the JSON property relevanceScore
31647 31648 31649 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31647 def relevance_score @relevance_score end |
#semantic_similarity_score ⇒ Float
Optional. Semantic similarity adjustment.
Corresponds to the JSON property semanticSimilarityScore
31652 31653 31654 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31652 def semantic_similarity_score @semantic_similarity_score end |
#topicality_rank ⇒ Float
Optional. Topicality adjustment as a rank.
Corresponds to the JSON property topicalityRank
31657 31658 31659 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31657 def topicality_rank @topicality_rank end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31664 31665 31666 31667 31668 31669 31670 31671 31672 31673 31674 31675 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31664 def update!(**args) @boosting_factor = args[:boosting_factor] if args.key?(:boosting_factor) @custom_signals = args[:custom_signals] if args.key?(:custom_signals) @default_rank = args[:default_rank] if args.key?(:default_rank) @document_age = args[:document_age] if args.key?(:document_age) @keyword_similarity_score = args[:keyword_similarity_score] if args.key?(:keyword_similarity_score) @pctr_rank = args[:pctr_rank] if args.key?(:pctr_rank) @precomputed_expression_values = args[:precomputed_expression_values] if args.key?(:precomputed_expression_values) @relevance_score = args[:relevance_score] if args.key?(:relevance_score) @semantic_similarity_score = args[:semantic_similarity_score] if args.key?(:semantic_similarity_score) @topicality_rank = args[:topicality_rank] if args.key?(:topicality_rank) end |