Tbf Amazon has the least experience with ML of the FAANGs.
So, they would take your recent purchases, clicks, searches and wish listed products and recommended products from some accessory category or related products. ie. Traditional mining combined with heuristics.
It also helps to have separate widgets for similar products and for cross-sell products.
In general I think that all of the personal surveillance / categorization will end up being more truly profitable (as opposed to 'twinkie calorie' profits of ad networks) as they are used to suggest price points for products and services rather than to direct attention to products.