Beyond BM25 and dense embeddings: How we built smart and interpretable retrieval at Faire

Xiaomeng Hu31 Mar 2026

Problem

Faire is a wholesale marketplace where millions of products are described in inconsistent words. Its retrieval already combined BM25, dense nearest-neighbor search and engagement-graph signals, yet a retailer who types "kids coat" still misses an item titled "children's winter jacket". BM25 needs exact token overlap, dense vectors are hard to debug, and graph signals are biased toward past interactions and weak on new or rare queries. A new source also had to meet the latency budget on the existing Elasticsearch, without specialized vector hardware.

Example from the article: a search for "kids coat" does not retrieve "children's winter jacket", although the intent is the same.

Solution in brief

Faire trained SPLADE, a BERT-based model that expands queries and products with related terms and outputs sparse weighted term vectors. Those vectors sit in the ordinary inverted index, and engineers can read the expanded terms to see why a product matched. Training used weighted engagement data, and the product quality score was multiplied into document vectors at index time to keep queries fast.

Questions this case answers
  • How to add semantic matching to a keyword search engine while keeping each match explainable and query latency within budget
  • How to train a retriever on weighted behavioral feedback so that query representations stay small while document representations stay rich
  • How to close the vocabulary gap between queries and product descriptions without giving up interpretability?
  • How to add a neural retrieval source to an existing Elasticsearch stack within a strict latency budget?

Tools and methods

  • SPLADE — sparse learned expansion of queries and products, served from an inverted index
  • BERT with a domain WordPiece tokenizer — base model, pretrained on Faire product metadata
  • InfoNCE loss with L1 sparsity penalties — contrastive training plus control of vector size
  • Hard-negative curriculum — in-batch negatives narrowed over training
  • Elasticsearch — serves the sparse vectors as a dot product
Continue reading — it's free

Google or a one-time email code. No password.