Skip to content
Overview

Personalised "for you" list

Every person sees a list based on what they and people like them have watched or listened to, with a safe fallback for everyone else.

Personalised list: events feed a collaborative filtering task, vectors are stored in Dragonfly and Milvus, an endpoint serves the list with trending as fallback and a dashboard measures it

The need

A home page carousel should reflect each person's taste. It must work for people with a long history, for people with almost none, and for anonymous visitors, and you need proof that it beats a simple popular list.

How the stack handles it

Step 1 · Collect

Play events from your apps and sites

The client libraries send play events with a user or client id. They are archived and can be queried later.

Step 2 · Compute

A scheduled task learns from the history

A task decorated with @peach.task reads the events and trains collaborative filtering. Users with too little history and items with too few plays are left out by cold-start thresholds.

Step 3 · Store

User vectors in Dragonfly, item vectors in Milvus

A request usually needs one user, so user embeddings sit in Dragonfly for fast lookup. Items are searched by similarity, so item embeddings sit in Milvus.

Step 4 · Serve

An endpoint turns the vectors into a list

An @peach.endpoint loads the user vector, finds the nearest items in Milvus, applies business rules and returns the list. When nothing comes back, the fallback list is used.

Step 5 · Measure

Prove it with an A/B test

Split users between this list and a baseline. Impressions and clicks carry the experiment, so the dashboard shows click-through rate per variant.

Why it is built this way

  • Heavy computation is done ahead of time on a schedule, so each request only does a lookup and a nearest-neighbour search.
  • The fallback means the carousel is never empty, including for new and anonymous users.
  • Editorial goals are rules on top of the model, so you never retrain just to hide an item.

Variations

Go deeper