Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponseSimilarExample

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

The result of the similar example.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SearchExamplesResponseSimilarExample

Returns a new instance of GoogleCloudAiplatformV1beta1SearchExamplesResponseSimilarExample.



55904
55905
55906
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 55904

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#exampleGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Example

The example that is similar to the searched query. Corresponds to the JSON property example



55897
55898
55899
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 55897

def example
  @example
end

#similarity_scoreFloat

The similarity score of this example. Corresponds to the JSON property similarityScore

Returns:

  • (Float)


55902
55903
55904
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 55902

def similarity_score
  @similarity_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



55909
55910
55911
55912
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 55909

def update!(**args)
  @example = args[:example] if args.key?(:example)
  @similarity_score = args[:similarity_score] if args.key?(:similarity_score)
end