Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponseEmbedding

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

A list of floats representing an embedding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EmbedContentResponseEmbedding

Returns a new instance of GoogleCloudAiplatformV1beta1EmbedContentResponseEmbedding.



9598
9599
9600
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9598

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

Instance Attribute Details

#valuesArray<Float>

Embedding vector values. Corresponds to the JSON property values

Returns:

  • (Array<Float>)


9596
9597
9598
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9596

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9603
9604
9605
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9603

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