Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec
- 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
-
#embedding_vectors ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector>
The embedding vector used for retrieval.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec.
5686 5687 5688 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5686 def initialize(**args) update!(**args) end |
Instance Attribute Details
#embedding_vectors ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector>
The embedding vector used for retrieval. Limit to 1.
Corresponds to the JSON property embeddingVectors
5684 5685 5686 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5684 def @embedding_vectors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5691 5692 5693 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5691 def update!(**args) @embedding_vectors = args[:embedding_vectors] if args.key?(:embedding_vectors) end |