Enriching the online shopping experience with Helios Recommendation Engine

Alex Yip4 Jul 2023

Problem

Loblaw Digital runs online shopping for grocery, beauty and pharmacy, and apparel. Recommendations were first outsourced to a vendor. After they moved in-house, every ML pipeline was custom. Teams spent a large share of their time on Kubernetes, containers, alerting and monitoring instead of models. Each change in business requirements meant a manual code update, and components could not be reused. The article gives no figures for the cost.

Example from the article: a business user wants a "personalized-for-you" carousel of 60 items that falls back to bestsellers and excludes one brand, and gets it by submitting a configuration.

Solution in brief

Loblaw built Helios Recommendation Engine (HRE). ML engineers train models in templated pipelines that write precomputed recommendations in a standard schema. Each carousel (a "profile") is a YAML spec that picks models, fallback, filters, sorting and result count, and the platform turns it into a serving API on Kubernetes.

Questions this case answers
  • How to separate model training from serving so that a new ranked list can be configured and deployed from a declarative spec instead of custom code
  • How to apply changing business rules (filters, sorting, result count, fallback) on top of precomputed model outputs without redeploying models
  • How to let business users change recommendation carousels without code changes in the serving pipeline?
  • How to stop every recommendation model from needing its own serving infrastructure?

Tools and methods

  • Profile (YAML spec) — declarative description of one carousel.
  • Inference graph — order and dependencies of models and filters.
  • Combiner / filter — final step: sorting, include/exclude rules, fallback.
  • Prediction server — reusable serving component chosen by each model.
  • Model and component registry — central store of models, servers and combiners.
  • Vertex AI — training pipelines that write batch predictions.
  • Kubernetes — hosts the generated serving APIs.
  • Prometheus and Grafana — per-profile monitoring and alerts.
  • Bigtable and Redis — low-latency layer for recommendations and product metadata.
Continue reading — it's free

Google or a one-time email code. No password.