SimilarItemsRecommender#

class SimilarItemsRecommender#

recommend_on_item | Recommend other items based on provided item-id’s

pydantic model PluginConfig#
Fields:
  • item_ids (List[str])

  • target_fields (List[str])

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

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.item_ids: List[str] [Required]#

Whitespace separated list of item ids used to recommend similar items