UsersItemHistoryRecommender#

class UsersItemHistoryRecommender#

recommend_on_user_items | Recommend items based on users item interaction history

pydantic model PluginConfig#
Fields:
  • count (int)

  • last_days (int)

  • target_fields (List[str])

PluginConfig.plugin_name: ClassVar[str] = 'recommend_on_user_items'#

Used to register and reference the plugin within a query.

field PluginConfig.target_fields: List[str] = ['title', 'body', 'nlp_tag__phrases']#

Target fields that are used to perform tf-idf similarity matching on.

field PluginConfig.count: int = 6#

Amount of items in the history to use for recommendation

field PluginConfig.last_days: int = 30#

Date range in days to consider user search activities.