Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector

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

Overview

Embedding vector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector.



16705
16706
16707
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16705

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

Instance Attribute Details

#field_pathString

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

Returns:

  • (String)


16698
16699
16700
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16698

def field_path
  @field_path
end

#vectorArray<Float>

Query embedding vector. Corresponds to the JSON property vector

Returns:

  • (Array<Float>)


16703
16704
16705
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16703

def vector
  @vector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16710
16711
16712
16713
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 16710

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