Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
- 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
-
#relevance_threshold ⇒ String
Pre-defined relevance threshold for the sub-search.
-
#semantic_relevance_threshold ⇒ Float
Custom relevance threshold for the sub-search.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec.
30817 30818 30819 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#relevance_threshold ⇒ String
Pre-defined relevance threshold for the sub-search.
Corresponds to the JSON property relevanceThreshold
30810 30811 30812 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30810 def relevance_threshold @relevance_threshold end |
#semantic_relevance_threshold ⇒ Float
Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
Corresponds to the JSON property semanticRelevanceThreshold
30815 30816 30817 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30815 def semantic_relevance_threshold @semantic_relevance_threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
30822 30823 30824 30825 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30822 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 |