Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec
- 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
-
#embedding_vectors ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector>
The embedding vector used for retrieval.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec.
17637 17638 17639 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17637 def initialize(**args) update!(**args) end |
Instance Attribute Details
#embedding_vectors ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector>
The embedding vector used for retrieval. Limit to 1.
Corresponds to the JSON property embeddingVectors
17635 17636 17637 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17635 def @embedding_vectors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17642 17643 17644 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 17642 def update!(**args) @embedding_vectors = args[:embedding_vectors] if args.key?(:embedding_vectors) end |