Recommend Items for Item Stage
The Recommend Items for Item query pipeline stage uses signals about users' item choices to recommend related items based on a specific item. Relationships between items can be based on different criteria, such as click patterns, people who bought this also bought that, percentage match of document tags, and so on.
Given an item ID, this stage performs a secondary query to the COLLECTION_NAME_items_for_item_recommendations
collection to find related items, then retrieves those items from the main collection.
This pipeline stage uses items-for-item recommendations that have been precomputed by the BPR Recommender.
See also Items-for-item Recommendations to learn how to configure this recommender type and fetch recommendations.
Prerequisites
Recommendations are not enabled by default. You can enable recommendations using one of the following methods:
-
Collections Manager. Sign in to Fusion and select your application. Then click Collections > Collections Manager. Click the gear icon of your collection and select Enable Recommendations.
The system displays the Enable Recommendations dialog box. Click Enable Recommendations to automatically enable the items-for-user and items-for-item recommendation methods. To use additional recommendation methods, you must configure them separately.
-
Relevance. Sign in to Fusion and select your application. Then click Relevance > Recommendations. The system displays the Enable Recommendations dialog box. Click Enable Recommendations to automatically enable the items-for-user and items-for-item recommendation methods. To use additional recommendation methods, you must configure them separately.
-
REST API. Use this command to enable recommendations:
curl -u USERNAME:PASSWORD -X PUT http://FUSION_HOST:FUSION_PORT/api/collections/COLLECTION_NAME/features/recommendations -H 'content-type: application/json' -d '{"enabled":true}'
When you enable recommendations, Fusion creates a query pipeline that already contains this stage, and that is configured for boosting. The query pipeline is COLLECTION_NAME_items_for_item_recommendations .
|
Using live signals
The Estimate Recent Results option uses live signals to augment items-for-user recommendations with real-time recommendations.
When this is enabled, Fusion first looks up items (from previously-generated recommendations) that are similar to the new items. If there are none then it looks up similar users (who also interacted with that item) to get a list of recommendations based on the new items. It then combines those new recommendations with the job-based recommendations already generated for that user (if any), to generate a final list of recommendations.
Configuration
When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.
|