Combine content embeddings (for cold start) with collaborative filtering (for warm users), then re-rank with an LLM for final personalization. Store vectors in pgvector, use Supabase real-time for events. Works for products, articles, videos, or users.
items.embedding.SELECT * FROM items ORDER BY embedding <=> target_embedding LIMIT 10.events (user_id, item_id, event_type, created_at). Event types: view, click, add_to_cart, purchase.SELECT user_id FROM user_embeddings ORDER BY embedding <=> target_user LIMIT 50. Recommend items they engaged with that target user hasn't seen.| Tool | Best For | Price |
|---|---|---|
| Supabase pgvector | Vector store + SQL | Free tier |
| Recombee | Hosted recs | Paid |
| LightFM | Hybrid model | Free |
| Qdrant | Alternative vector DB | Free tier |
| PostHog | Event tracking | Free tier |
Q: Do I need a dedicated recommender system like Recombee? Only at 100K+ users. Below that, pgvector + SQL beats hosted.
Q: Matrix factorization vs embeddings? Embeddings win for cold-start & multi-modal (text + image). MF still strong for warm users.
Q: How often to retrain? Content embeddings: when catalog changes. User embeddings: on every event (streaming).
Q: Can I explain recommendations? Yes — "because you viewed X" uses nearest-item attribution. Builds trust.
Q: Privacy concerns? Don't leak other users' data via recs. Apply k-anonymity thresholds.
Q: Do I need GPU? No for inference (pgvector is CPU). Yes for training custom models.
Recommendations compound revenue. Start with simple content-based, add collaborative as you gather events, layer LLM re-ranking for premium feel. Ship fast, measure lift, iterate monthly.
Free newsletter
Join thousands of creators and builders. One email a week — practical AI tips, platform updates, and curated reads.
No spam · Unsubscribe anytime
A complete list of 25 free AI writing tools in 2026 — Claude, ChatGPT, Gemini, Grammarly, QuillBot, Hemingway, and more…
The top free AI image generators in 2026 — DALL-E via Bing, Gemini, Ideogram, Leonardo, Stable Diffusion, Flux — with qu…
The top free AI tools for nonprofits in 2026 — grant writing, donor outreach, social posts, translations, research — wit…
Comments
Sign in to join the conversation
No comments yet. Be the first to share your thoughts!