Resource: ServingConfig
Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions). The ServingConfig is passed in the search and predict request and together with the Catalog.default_branch, generates results.
JSON representation |
---|
{ "name": string, "displayName": string, "modelId": string, "priceRerankingLevel": string, "facetControlIds": [ string ], "dynamicFacetSpec": { object ( |
Fields | |
---|---|
name |
Immutable. Fully qualified name |
displayName |
Required. The human readable serving config display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. |
modelId |
The id of the model to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when |
priceRerankingLevel |
How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are:
If not specified, we choose default based on model type. Default value: 'no-price-reranking'. Can only be set if |
facetControlIds[] |
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Can only be set if |
dynamicFacetSpec |
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if |
boostControlIds[] |
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both Can only be set if |
filterControlIds[] |
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if |
redirectControlIds[] |
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if |
twowaySynonymsControlIds[] |
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if |
onewaySynonymsControlIds[] |
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if |
doNotAssociateControlIds[] |
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if |
replacementControlIds[] |
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if |
ignoreControlIds[] |
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if |
diversityLevel |
How much diversity to use in recommendation model results e.g. 'medium-diversity' or 'high-diversity'. Currently supported values:
If not specified, we choose default based on recommendation model type. Default value: 'no-diversity'. Can only be set if |
enableCategoryFilterLevel |
Whether to add additional category filters on the 'similar-items' model. If not specified, we enable it by default. Allowed values are:
Can only be set if |
solutionTypes[] |
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution. |
DynamicFacetSpec
The specifications of dynamically generated facets.
JSON representation |
---|
{
"mode": enum ( |
Fields | |
---|---|
mode |
Mode of the DynamicFacet feature. Defaults to |
Mode
Enum to control DynamicFacet mode
Enums | |
---|---|
MODE_UNSPECIFIED |
Default value. |
DISABLED |
Disable Dynamic Facet. |
ENABLED |
Automatic mode built by Google Retail placements.search. |
Methods |
|
---|---|
|
Enables a Control on the specified ServingConfig. |
|
Creates a ServingConfig. |
|
Deletes a ServingConfig. |
|
Gets a ServingConfig. |
|
Lists all ServingConfigs linked to this catalog. |
|
Updates a ServingConfig. |
|
Makes a recommendation prediction. |
|
Disables a Control on the specified ServingConfig. |
|
Performs a search. |