PopularItemClauseBuilder#
- class PopularItemClauseBuilder#
popular_item | Boost trendy items
Returns list of item_id clauses containing the most read items within the requested time-period. - Item popularity (number of item.read events) corresponds to the item boost value. - Activity-Data fetching is cached via the globally conigured scoring_profile_cache cache
- pydantic model PluginConfig#
- Fields:
last_months (int)
min_popularity (int)
scope (str)
top_k (int)
-
PluginConfig.plugin_name:
ClassVar
[str
] = 'popular_item'# Used to register and reference the plugin within a query.
-
field PluginConfig.min_popularity:
int
= 2# Mininum amount of read events to consier a item being popular.