Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams

Inherits:
Object
  • Object
show all
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

Configuration parameters for the Custom Ranking feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams.



30378
30379
30380
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30378

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#expressions_to_precomputeArray<String>

Optional. A list of ranking expressions (see ranking_expression for the syntax documentation) to evaluate. The evaluation results will be returned in SearchResponse.SearchResult.rank_signals.precomputed_expression_values field. Corresponds to the JSON property expressionsToPrecompute

Returns:

  • (Array<String>)


30376
30377
30378
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30376

def expressions_to_precompute
  @expressions_to_precompute
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30383
30384
30385
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30383

def update!(**args)
  @expressions_to_precompute = args[:expressions_to_precompute] if args.key?(:expressions_to_precompute)
end