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.

field PluginConfig.last_months: int = 6#

Consider item popularity events within range of last N months.

field PluginConfig.top_k: int = 30#

Amount of top ranked popular items to consider for boosting.

field PluginConfig.scope: str = 'project'#

Choose popularity scope: user or project