Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec

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

Specification for relevance filtering on a specific sub-search.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.



16514
16515
16516
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16514

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

Instance Attribute Details

#relevance_thresholdString

Pre-defined relevance threshold for the sub-search. Corresponds to the JSON property relevanceThreshold

Returns:

  • (String)


16507
16508
16509
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16507

def relevance_threshold
  @relevance_threshold
end

#semantic_relevance_thresholdFloat

Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0]. Corresponds to the JSON property semanticRelevanceThreshold

Returns:

  • (Float)


16512
16513
16514
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16512

def semantic_relevance_threshold
  @semantic_relevance_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16519
16520
16521
16522
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16519

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