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.
32840 32841 32842 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32840 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
32832 32833 32834 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32832 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
32838 32839 32840 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32838 def semantic_relevance_score @semantic_relevance_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32845 32846 32847 32848 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32845 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 |