Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector

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

Overview

Embedding vector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector.



12840
12841
12842
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12840

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

Instance Attribute Details

#field_pathString

Embedding field path in schema. Corresponds to the JSON property fieldPath

Returns:

  • (String)


12833
12834
12835
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12833

def field_path
  @field_path
end

#vectorArray<Float>

Query embedding vector. Corresponds to the JSON property vector

Returns:

  • (Array<Float>)


12838
12839
12840
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12838

def vector
  @vector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12845
12846
12847
12848
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 12845

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