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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则