- Newest
- Most votes
- Most comments
The Trending-Now recipe in Amazon Personalize identifies items that are rapidly becoming more popular among users by analyzing interaction data. Based on your scenario, there are a few key points to understand about how this recipe works and how to achieve country-specific trending items.
First, the Trending-Now recipe only uses the Item interactions dataset for generating recommendations - it doesn't use data in Items or Users datasets when determining what's trending. This explains why you're seeing similar trending items across countries despite having different user interactions per country.
To achieve country-specific trending items, you should:
-
Move the LOCALE field to your Items dataset instead of keeping it only in the interactions dataset. The Trending-Now recipe doesn't consider categorical fields in the interactions dataset for determining trends.
-
Use filters properly to get country-specific recommendations. While the Trending-Now recipe doesn't use Items dataset for generating recommendations, you can still filter recommendations based on data in this dataset. Your filter approach (
INCLUDE ItemId WHERE Items.LOCALE IN ("PL")) would work if LOCALE is in the Items dataset. -
When calling GetRecommendations, you'll need to pass the appropriate filter and filter values to restrict results to items relevant to a specific country.
The Trending-Now recipe automatically evaluates your interactions data every two hours (by default, though this frequency is configurable) and identifies trending items. You don't need to retrain the model to consider new items.
For your use case, I recommend:
- Adding LOCALE as a field in your Items dataset
- Creating filters based on the Items.LOCALE attribute
- Applying these filters when calling GetRecommendations to get country-specific trending items
This approach should allow you to get different trending items per country based on the underlying interaction patterns.
Sources
Trending-Now recipe - Amazon Personalize
How new data influences real-time recommendations - Amazon Personalize
Filtering real-time recommendations - Amazon Personalize
VIDEO_ON_DEMAND use cases - Amazon Personalize
answered a year ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 2 years ago

Can I use other recipes that can handle this use case?