Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector

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

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector.



18581
18582
18583
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18581

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

Instance Attribute Details

#field_pathString

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

Returns:

  • (String)


18574
18575
18576
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18574

def field_path
  @field_path
end

#vectorArray<Float>

Query embedding vector. Corresponds to the JSON property vector

Returns:

  • (Array<Float>)


18579
18580
18581
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18579

def vector
  @vector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18586
18587
18588
18589
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18586

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