Offline LLMs, Online Personalization: Generating carousels at DoorDash

Yucong Ji, Raghav Saboo, Kyle Hsiao, Vivek Paharia, Pradeep Muthukrishnan, Veronica Sih27 May 2026

Problem

Store-page carousels take their titles and themes from a fixed library. An LLM could write them per user, but calling it on every page load of a high-traffic page adds latency, cost and outage risk. Judging prompt changes by clicks or orders is too slow and noisy.

Example from the article: a DoorDash user in a two-cat household saw a "Best Sellers" carousel in a pet store, many items irrelevant to a cat-only household. After launch the top carousel was "Cat Dry Food", built from a recurring purchase.

Solution in brief

An LLM runs offline in batch, once per eligible user. It reads a trimmed, typed summary of the user's state and returns titles, subtitles, confidence and search intents. The intents are embedded and stored in a vector database. At request time the service only looks up stored definitions and runs vector plus taxonomy retrieval, with no LLM call. Prompts pass offline rule and LLM-judge checks before any A/B test.

Questions this case answers
  • How to generate per-user content with an LLM at high traffic when an LLM call in the request path is too slow, costly and unreliable
  • How to iterate on LLM prompts that produce user-facing artifacts when online metrics are too slow and noisy for the inner loop
  • How to show every user their own carousel titles and themes without calling an LLM on each page load?
  • How to feed an LLM the right slice of a user's history so its output is specific and not generic?

Tools and methods

  • Consumer memory block — typed JSON user state as LLM input
  • Batch LLM generation, strict JSON schema — carousel definitions with abstention
  • Embedding model and Milvus — intent vectors, nearest-neighbor search
  • Taxonomy retrieval — second path
  • Rule checks and LLM-as-judge — offline gate for each prompt revision
  • Metaflow on Kubernetes, Apache Iceberg — sharded batch jobs
  • A/B test — per-theme online validation
Continue reading — it's free

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