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.



32840
32841
32842
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32840

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>)


32832
32833
32834
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 32832

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)


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