This topic describes how to set an engine configuration for a recommendation scenario. The recommendation scenario is used as an example to introduce the basic configurations of RecallConfs, FilterConfs, Feature, ranking, and re-ranking, along with how to configure online data sources Hologres and FeatureStore.
Logic of defining engine configurations: You must first define the configurations of RecallConfs, FilterConfs, AlgoConfs, and SortConfs, and then reference them in the SceneConfs. For example, you first define the FilterConfs, and the configuration name is a unique identifier. FilterConfs are referenced in FilterNames, RecallConfs in SceneConfs, AlgoConfs in RankConfs, and SortConfs in SortNames. home_feed is the scenario name. However, the scenario name in FilterNames is default,
which means if the scenario configuration to be used cannot be found, it will use the default
.
The following table shows the details of the example:
Item | Description |
Data source | In this case two data sources, Hologres and FeatureStore, are configured. These mainly store data for online services, such as user features and item features, hot recall and i2i reacll data, and item IDs that a user has already viewed, as the basis for exposure filtering. If FeatureStore uses FeatureDB as the online data source, you must configure the username (FeatureDBUsername) and password (FeatureDBPassword) of FeatureDB. If FeatureStore uses other data sources, these two parameters do not need to be configured. The |
Recall | This case configures two recalls in RecallConfs, U2I recall and global hot recall. The data of the two recalls come from Hologres. The explanations of different recall parameters are as follows:
|
Filter | This case configures the following two filtering methods in FilterConfs:
Explanations of some parameters:
|
Feature | Load user features and item features into the engine. User features are used for model scoring, and item features are mostly used for re-ranking.
|
Ranking | The ranking service is first configured in AlgoConfs, and multiple ranking services can be defined. In RankConf, set a recommendation scenario to reference the ranking services defined in AlgoConfs, along with the scoring formula and weight adjustment. Multiple target prediction scores can be weighted and then added or multiplied. AlgoConfs:
RankConf:
|
Re-ranking | This case configures the following two re-ranking strategies in SortConfs:
Explanations of some configuration parameters:
|