Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals

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

Contains a set of signals used by the relevance filter.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sourcesArray<String>

Optional. Indicates how the result was retrieved. Corresponds to the JSON property retrievalSources

Returns:

  • (Array<String>)


32847
32848
32849
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32847

def retrieval_sources
  @retrieval_sources
end

#semantic_relevance_scoreFloat

Optional. Relevance score used by the filter when semantic_relevance_threshold is set. Corresponds to the JSON property semanticRelevanceScore

Returns:

  • (Float)


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