Class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb

Overview

Config that turns on usage of llm embeddings as features to the model. Embeddings leverage unstructured text fields like description and title.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig

Returns a new instance of GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig.



7443
7444
7445
# File 'lib/google/apis/retail_v2/classes.rb', line 7443

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

Instance Attribute Details

#llm_embedding_versionString

Optional. The LLM embedding version to use. Currently only v0 is supported. If not specified, feature will not be turned on. Corresponds to the JSON property llmEmbeddingVersion

Returns:

  • (String)


7441
7442
7443
# File 'lib/google/apis/retail_v2/classes.rb', line 7441

def llm_embedding_version
  @llm_embedding_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7448
7449
7450
# File 'lib/google/apis/retail_v2/classes.rb', line 7448

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