What is this about?
Returns the top product attributes and the last visited specific products for a specific user and session. While “userPreferences” are query-agnostic, “userLastViewedProducts” are returned for the specific query requested.
The product attribute preferences are calculated based on user clicks, add-to-carts and purchases and the values are normalized using a linear function.
“userLastViewedProducts” weight is calculated using the difference between the last time there was an interaction with the product and “now”. So, the more recent events will have more weight than others that happened long ago.