Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec

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

The specification that uses customized query embedding vector to do semantic document retrieval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec.



3897
3898
3899
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3897

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

Instance Attribute Details

#embedding_vectorsArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector>

The embedding vector used for retrieval. Limit to 1. Corresponds to the JSON property embeddingVectors



3895
3896
3897
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3895

def embedding_vectors
  @embedding_vectors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3902
3903
3904
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3902

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