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.
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
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.
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.
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.
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.
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
- Use the diversified variant when lists feel repetitive.
- Blend with content-based filtering for new items: see hybrid recommendations.