Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Topics Backend & APIs

Search

Search engines, indexing, ranking, full-text and semantic search.

Search within Search, or combine it with other topics →

2026

Faster Retrieval for Better, More Efficient RAG

Research 12 min +120 XP

Maximum inner product search can be amortized by training small neural networks offline on a known query distribution, exploiting the fact that the max-inner-product function is the convex support function of the key set, whose gradient is the best-matching key.

Distilling Long-Tail User Behavior into Scalable Embeddings for Job Search

Case study 11 min +110 XP

Indeed's user behavior model (UBM) runs heavy transformer sequence modeling over long user histories offline, distills each user into a fixed-length embedding refreshed daily via batch inference, and serves it through a feature store as one more dense feature for many compact production ranking, recommendation and bidding models.

Etsy Code as Craft

Making Ads Count: Using MMoE and Auxiliary Tasks to Better Connect Buyers & Sellers

Case study 11 min +110 XP

Etsy's Ads Search ranking model replaced its shared-bottom multitask architecture (DCN feature crossing plus CTR and post-click conversion towers with Platt-scaled calibration) with a Multigate Mixture of Experts layer, adding add-to-cart as an uncalibrated auxiliary task.

2025

Vinted Engineering

Dense Retrieval

Case study 12 min +120 XP

Vinted added embedding-based dense retrieval to its multilingual, highly visual marketplace search using a two-tower model: a fine-tuned projection head on frozen multilingual CLIP for queries, and an item tower fusing CLIP image embeddings with categorical metadata, trained contrastively on 100M+ pairs.

Teaching the Old Dog a New Trick

Case study 6 min +60 XP

Vinted moved per-user ranking cross-features from Redis into Vespa, then hit p99+ latency spikes above 100 ms after feeding bursts (500M+ updates/hour across 50+ schemas) because data redistribution broke the second-phase document summary fetch (.fill()), causing retries across content nodes.

Inside Husky’s query engine: Real-time access to 100 trillion events

Deep dive 27 min +270 XP

Husky, Datadog's third-generation event store, serves interactive queries over more than 100 trillion events through four multi-tenant services: a planner that splits queries into time-based steps, orchestrators that fetch fragment metadata from FoundationDB and prune with zone maps, a metadata service, and readers that execute against fragments in blob storage.

Hugging Face

Train 400x faster Static Embedding Models with Sentence Transformers

Research 39 min +390 XP

Static embedding models, which replace the attention-based encoder with a token embedding lookup plus mean pooling (an EmbeddingBag), can be trained with modern contrastive losses and Matryoshka Representation Learning to run 100x to 400x faster on CPU than models like all-mpnet-base-v2 and multilingual-e5-small, while keeping at least 85% of their benchmark quality.

2023

The quest for software engineering knowledge.

Look:
Layout: