A

A production-style recommender using vector retrieval and re-ranking

Hacker News

A production-style recommender using vector retrieval and re-ranking

I’ve been exploring how recommendation systems are actually implemented in production, beyond just training models. A common pattern I kept seeing is to split the problem into two stages: 1. Retrieve a small set of relevant candidates 2. Re-rank them using a model Instead of doing brute-force inference across all items, I built a small prototype around this idea. The flow looks like this: - Store embeddings in a vector database (ChromaDB) - Retrieve the Top-K most similar items/users based on vector similarity - Run a TensorFlow.js model to re-rank the candidates The goal is to reduce the search space before applying inference, which seems necessary when latency and scale matter. What I found interesting is that once you move to this approach, a lot of the complexity shifts from the model itself to the retrieval layer: - choosing K - filtering candidates - embedding quality - latency vs recall trade-offs Curious how others approach this in real systems: - How do you decide on K? - Do you rely purely on vector similarity or add heuristics? - How do you handle re-ranking at scale? Project: https://github.com/ftonato/recommendation-system-chromadb-tf...

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: model, user, models · Missing: mac, agents, macos
88%88% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
66%66% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
66%66% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: users · Missing: mobile apps, ios, personal
43%43% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: users · Missing: plus, platform, intuitive
37%37% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
22%22% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Ra
RankFight – We're Ranking Everything50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

RankFight – We're Ranking Everything

Hacker News6
Co
Covid-19 infection ranking adjusted by population45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Covid-19 infection ranking adjusted by population

Hacker News5
MissedQueries
MissedQueries57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

You're ranking for searches you never wrote about.

Indie Hackers1analytics
I
I made a HARO (Help A Reporter Out) matcher using vector similarity44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a HARO (Help A Reporter Out) matcher using vector similarity

Hacker News1
C+
C++ virtual_vec vector implementation47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C++ virtual_vec vector implementation

Hacker News39
C+
C++23 constexpr n-dimensional Euclidean vector56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C++23 constexpr n-dimensional Euclidean vector

Hacker News1
I
I made SEO tool using vector embeddings61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made SEO tool using vector embeddings

Hacker News6
Ra
Ranking Data Sets for AI on Ethereum36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ranking Data Sets for AI on Ethereum

Hacker News1
Ra
RankIt - Private leagues w/ranking for tabletennis, shuffleboard, dart47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

RankIt - Private leagues w/ranking for tabletennis, shuffleboard, dart

Hacker News2
Mo
Modify search engine ranking using subreddits66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Modify search engine ranking using subreddits

Hacker News1