Labs โ€บ Design embedding-based personalization0 / 14

Step 1 of 14 ยท Intro

Design embedding-based personalization

A content app recommends items to millions of users. Size candidate generation, the reranker, caches and the embedding pipeline within a budget, and survive a cold cache and the loss of a vector node.

How it works

  • โ€บEmbed: users and items become vectors so that similar taste or content lies close together.
  • โ€บGenerate: an approximate nearest-neighbour search returns a few hundred candidates in milliseconds.
  • โ€บRank: a heavier model orders the candidates with fresh features, then diversity rules adjust the list.
  • โ€บLearn: events and exposure logs flow back through a stream into new embeddings, closing the loop.

What you'll build

  1. The API, and the events, embeddings and recommendation-log data
  2. The two-stage serving path with a per-user cache
  3. The event stream and workers that update embeddings
  4. A feature store, and a GPU fleet for batch embedding refresh
  5. A cold cache and a lost vector node, then the full peak design
  6. Deep dives: two stages, freshness, cold start, approximate recall, feedback loops