All work

Recommenders & RankingEuropean B2B wholesale group

Request tracing that found the real recommender fault

Request-level tracing across a four-hop serving chain refuted a claim that approximately 80% of recommendations were missing. The real cause, a product-grain mismatch, was fixed.

of requests returned a full recommendation list
98.4%
logged responses analyzed in a 14-day window
~10.3M
diagnostic probes to trace one request end to end
7

The problem

A B2B wholesale storefront shows frequently-bought-together recommendations on product and search pages. An internal claim that approximately 80% of recommendations were missing began to influence product and engineering discussions. Each request crosses a four-hop chain involving three engineering organizations. Engine logs and frontend telemetry ran on different schedules and shared no verified customer identifier. When the carousel was not rendered, no frontend event was generated, so a missing event did not prove that the engine had failed.

What was built

The team built a reusable observability map that traces a request across the whole recommendation journey. It established the storefront event identifier as the only reliable bridge between serving logs and frontend telemetry. Joins on customer or tracing identifiers were tested and rejected where their integrity could not be demonstrated. That corrected an earlier conclusion based on a telemetry field that is absent whenever the carousel is not displayed.

A seven-probe diagnostic toolkit, runnable from a terminal or directly in BigQuery, answers for a single request:

  • Whether the engine received it, and with which anchor product
  • Whether the anchor exists in the trained corpus
  • Which products the model returned, and which survived downstream filtering
  • Whether the carousel rendered and fresh telemetry arrived

The complaint that the carousel was missing was then split into four failure classes, each assigned to the team that owns it.

Results

The investigation refuted the claim. Across approximately 10.3 million logged responses in a 14-day window, the engine returned a full recommendation list for 98.4% of requests, and the hypothesized empty response was not observed. The real cause of the incident was a product-grain mismatch: a class of products existed only at the coarsest article grain, while the model expected article-variant identifiers. It affected approximately 75–81% of customers in the problem segment. The mismatch was corrected and the carousel restored.

Where it applies

The approach fits any machine-learning service that sits behind several gateways, filters and frontend components, where an apparent failure can originate anywhere between training data and final rendering.

Delivered by Peak AI’s engineers, including in roles held before Peak AI. The organization is described rather than named, and sensitive details are left out.

Have a POC that needs to become a product?

Tell us what you are shipping. You will talk to the engineers who would build it.