Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec

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

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

Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec.



18557
18558
18559
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18557

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

Instance Attribute Details

#embedding_vectorsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector>

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



18555
18556
18557
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18555

def embedding_vectors
  @embedding_vectors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18562
18563
18564
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18562

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