Class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfig
- 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
Additional model features config.
Instance Attribute Summary collapse
-
#frequently_bought_together_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig
Additional configs for the frequently-bought-together model type.
-
#llm_embedding_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig
Config that turns on usage of llm embeddings as features to the model.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelModelFeaturesConfig
constructor
A new instance of GoogleCloudRetailV2alphaModelModelFeaturesConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaModelModelFeaturesConfig
Returns a new instance of GoogleCloudRetailV2alphaModelModelFeaturesConfig.
7421 7422 7423 |
# File 'lib/google/apis/retail_v2/classes.rb', line 7421 def initialize(**args) update!(**args) end |
Instance Attribute Details
#frequently_bought_together_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig
Additional configs for the frequently-bought-together model type.
Corresponds to the JSON property frequentlyBoughtTogetherConfig
7413 7414 7415 |
# File 'lib/google/apis/retail_v2/classes.rb', line 7413 def frequently_bought_together_config @frequently_bought_together_config end |
#llm_embedding_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig
Config that turns on usage of llm embeddings as features to the model.
Embeddings leverage unstructured text fields like description and title.
Corresponds to the JSON property llmEmbeddingConfig
7419 7420 7421 |
# File 'lib/google/apis/retail_v2/classes.rb', line 7419 def @llm_embedding_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7426 7427 7428 7429 |
# File 'lib/google/apis/retail_v2/classes.rb', line 7426 def update!(**args) @frequently_bought_together_config = args[:frequently_bought_together_config] if args.key?(:frequently_bought_together_config) @llm_embedding_config = args[:llm_embedding_config] if args.key?(:llm_embedding_config) end |