Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals
- 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
Contains a set of signals used by the relevance filter.
Instance Attribute Summary collapse
-
#retrieval_sources ⇒ Array<String>
Optional.
-
#semantic_relevance_score ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals.
32855 32856 32857 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32855 def initialize(**args) update!(**args) end |
Instance Attribute Details
#retrieval_sources ⇒ Array<String>
Optional. Indicates how the result was retrieved.
Corresponds to the JSON property retrievalSources
32847 32848 32849 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32847 def retrieval_sources @retrieval_sources end |
#semantic_relevance_score ⇒ Float
Optional. Relevance score used by the filter when semantic_relevance_threshold
is set.
Corresponds to the JSON property semanticRelevanceScore
32853 32854 32855 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32853 def semantic_relevance_score @semantic_relevance_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32860 32861 32862 32863 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32860 def update!(**args) @retrieval_sources = args[:retrieval_sources] if args.key?(:retrieval_sources) @semantic_relevance_score = args[:semantic_relevance_score] if args.key?(:semantic_relevance_score) end |