Resource: ServingConfig
Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).
JSON representation |
---|
{ "name": string, "displayName": string, "modelId": string, "priceRerankingLevel": string, "facetControlIds": [ string ], "dynamicFacetSpec": { object ( |
Fields | |
---|---|
name |
Immutable. Fully qualified name |
display |
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. |
model |
The id of the model in the same Required when |
price |
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: Can only be set if |
facet |
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Can only be set if |
dynamic |
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if |
boost |
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 |
filter |
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 |
redirect |
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 |
twoway |
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 |
oneway |
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 |
do |
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 |
replacement |
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 |
ignore |
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 |
diversity |
How much diversity to use in recommendation model results e.g.
If not specified, we choose default based on recommendation model type. Default value: Can only be set if |
diversity |
What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to |
enable |
Whether to add additional category filters on the
Can only be set if |
ignore |
When the flag is enabled, the products in the denylist will not be filtered out in the recommendation filtering results. |
personalization |
The specification for personalization spec. Can only be set if Notice that if both |
solution |
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 servingConfigs.search. |
DiversityType
What type of diversity - data or rule based.
Enums | |
---|---|
DIVERSITY_TYPE_UNSPECIFIED |
Default value. |
RULE_BASED_DIVERSITY |
Rule based diversity. |
DATA_DRIVEN_DIVERSITY |
Data driven diversity. |
PersonalizationSpec
The specification for personalization.
JSON representation |
---|
{
"mode": enum ( |
Fields | |
---|---|
mode |
Defaults to |
Mode
The personalization mode of each search request.
Enums | |
---|---|
MODE_UNSPECIFIED |
Default value. In this case, server behavior defaults to Mode.AUTO . |
AUTO |
Let CRS decide whether to use personalization based on quality of user event data. |
DISABLED |
Disable personalization. |
Methods |
|
---|---|
|
Enables a Control on the specified ServingConfig. |
|
Performs a conversational search. |
|
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. |