Personalize Recommendations for Anonymous Users using SessionId

0

For the User-Personalization recipe:

According to this documentation: https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#recording-anonymous-user-events:~:text=You%20can%20record%20events%20for%20users%20before%20they%20create%20an%20account.%20This%20allows%20you%20to%20get%20recommendations%20for%20anonymous%20users.%20You%20can%20provide%20the%20sessionId%20as%20the%20userID%20in%20your%20GetRecommendations%20request.

It seems like we should be able to query the Personalize engine for a session_id if it has interactions and does not have a user_id. However, when trying this and querying with a session_id, it still returns the high popularity items instead of relevant item recommendations.

Is this incorrect, or will it only return relevant items after the user creates an account (e.g. has a user_id in the Users dataset)?

Thanks in advance

已提問 2 年前檢視次數 454 次
1 個回答
0

If you call the PutEvents API without a userId to send in new interactions for an anonymous user, you can call the GetRecommendations API after 1-2 seconds with the sessionId as the userId to retrieve recommendations that are personalized to the session. Of course, the sessionId from the PutEvents call needs to be the same value in the GetRecommendations API call.

If your PutEvents call(s) have a sessionId and userId specified, you must use the userId as the userId in the GetRecommendations call.

AWS
James_J
已回答 2 年前
  • When we do a bulk upload from a csv (dataset import job), with interactions having session_ids but no user_ids, is it supposed to be the same way? Or is this functionality dependent upon using the PutEvents functionality? Thanks for your quick response

  • Real-time recommendations (i.e., where recommendations change in (near) real-time based on new interactions) requires that a campaign (or recommender) be used and new interactions are streamed in via the PutEvents API. This also only applies to specific recipes. Check the docs for details. https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html

    New interactions uploaded via import jobs (bulk or incremental imports), will only impact recommendations for known users after the model is fully retrained.

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

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

回答問題指南