What is this about?
Returns the user context information (top product attributes and the last visited products) and the query context (top product attributes and the top specific products) for a specific user and query. While the “userPreferences” are query agnostic, “userLastViewedProducts“and the “queryContext” information are returned for the specific requested query.
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.