Back to case studies

recruitRyte: Candidate Search over 800M+ Profiles

Project:recruitRyte
Period: July 2023 to June 2026
Outcome: sub-900ms p95 search across 800M+ candidate profiles with under 2% recall loss after quantization
Stack:QdrantHybrid RetrievalCross-Encoder RerankingFine-Tuned EmbeddingsBinary QuantizationFastAPIvLLMPython

Organization: recruitRyte
Role: Chief Data Scientist
Period: July 2023 to June 2026
Stack: Qdrant, hybrid retrieval, cross-encoder reranking, fine-tuned embeddings, binary quantization, FastAPI, vLLM, Python

The problem

recruitRyte runs a recruiter-facing search product. The promise is simple: type a natural-language hiring query ("senior backend engineers in Berlin with FastAPI plus Postgres plus 5+ years"), get the right candidates back in under a second.

The hard part is the scale. The candidate index is 800M+ profiles. Naive cosine similarity over 800M dense vectors does not work. Off-the-shelf hosted vector DBs do not work at this price point. And the relevance bar is not "good enough for retrieval", it is "good enough for a recruiter to pay for".

So three constraints had to coexist: 800M-record scale, sub-second p95 latency, and recall good enough to win against keyword-only Boolean search.

What I built

A three-stage retrieval system tuned for the specific shape of recruiter queries.

Stage 1: hybrid candidate retrieval. Each profile is encoded into a dense vector (semantic meaning of skills, experience, seniority) and indexed in Qdrant. Alongside the dense vector, structured payload fields (location, years of experience, current role, tech stack) are stored on the same record. Qdrant runs payload-filtered HNSW so the filters apply DURING the search rather than after, which is what makes the latency budget work. A keyword search step runs in parallel on critical exact-match fields. The two retrieval paths get fused.

Stage 2: cross-encoder reranking. The top 100 from stage 1 go through a cross-encoder model that compares each profile against the original query with full bidirectional attention. This is roughly 1000x slower per pair than the bi-encoder used in stage 1, but on only 100 candidates the latency is acceptable. The reranker is what makes the difference between "this person is in tech" and "this person has shipped the exact stack you asked for".

Stage 3: structured re-ordering. Final ordering blends the reranker score with recruiter-relevant signals (recency of role change, response rate to past outreach, fit confidence). This is the boring layer that most demo systems skip, and it is where the production product actually wins.

The engineering work that made it ship

Binary quantization on the dense vectors. Raw f32 embeddings would be 2.4 TB of memory. Binary quantization compresses to roughly 75 GB at under 2% recall loss. Without this the infrastructure cost would have killed the unit economics.

Fine-tuned embeddings. Off-the-shelf embedding models score recruiter queries poorly because the domain language is so specific ("ex-FAANG", "10x", "into game design", "shipped at YC backed"). I fine-tuned a smaller embedding model on millions of triplet examples mined from recruiter-candidate matches and rejections. The fine-tuned model produces tighter clusters in the hiring-domain space, which is what made the dense retrieval stage usable.

Cross-encoder training. Same idea applied at the reranker layer. A general-purpose cross-encoder treats every text-text pair the same. A domain-tuned one understands that "senior" plus "5 years" plus "FastAPI" is a stronger match signal than the words individually would suggest.

Latency engineering. p95 under 900 ms across 800M profiles required Qdrant configuration tuning (HNSW M and ef_construct), payload-index ordering by selectivity, and aggressive use of Qdrant filters as pre-conditions rather than post-filters. The cross-encoder runs on a separate GPU-backed service via vLLM so the API path stays uncoupled from model inference latency.

The outcome

MetricResult
Index size800M+ candidate profiles
Storage (after quantization)~75 GB (compressed from 2.4 TB)
p95 search latencyunder 900 ms
Recall loss from quantizationunder 2%
Recruiter NPSsignificant lift vs the prior Boolean-only system

Key takeaways

Most RAG demos run over 10,000 documents where naive cosine similarity hides every systems problem. Shipping retrieval at 800M+ scale is a different category of engineering: pre-filtered HNSW, binary quantization validated against brute-force exact search, domain-tuned bi-encoders and cross-encoders, and decoupled GPU inference all have to work together.