Personalize filters - Users metadata

1

For user-personalization recipe, I have the following metadata:

  • Users: User_id, age, gender,
  • Interactions: User_id, Item_id, event_type,
  • Items: Item_id, Genre and Item_title.

We want to get the recommendations filtered based on the age. Currently in the create filter step, we aren't able to add Users.age property in our filter for the where clause. Any suggestions on how we can filter on different users metadata for the user personalization recipe?

已提問 2 年前檢視次數 350 次
2 個答案
0

Hello,

Is the age column listed in the User dataset schema? You should have an entry similar to:

{
	"name": "AGE",
	"type": "int"
},

For the filter, when you go to build the expression, you should select:

  • Action = Include
  • ID = UserID

This should allow you to select the WHERE property of Users.age. Screenshot of this below:

Filter Example

profile pictureAWS
專家
Chris_G
已回答 2 年前
  • Hi.. thanks for the above answer. I am looking specific to user-personalization recipe. I want the recommended items based on the location/age. Just wondering if the users metadata can be used to filter in this scenario or do I need to use it as a context?

0

Hi, adding to the above.

First: Filters are deterministic, Context is a nudge. A filter will determine the recommendations fully, i.e. nothing that does not match the filter is recommended, while the context will subtly influence the recommendations, i.e. recommendations will be different if your user behaviour is different in different contexts, but there may be overlap in recommended items.

You should use item and user metadata fields if the attribute does not change over (a short) time for the same user or item (user age, user city). You should use context attributes of the interaction that change over time (device type, time of day, ...). Read more about context here

To apply a filter using an user-metadata attribute in the user-personalization recipe, you can add an "IF" clause to the expression:

Enter image description here Click on the "+" to add the condition and select the "IF" operator.

AWS
Anna_G
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南