Relevant retrieval w/ predictable latency (daily search tip)


The higher the scale, the stronger the incentive to simplify your retrieval.

There’s two conflicting incentives:

  • Improving relevance: Requiring more complex retrieval to get all the best candidates
  • Improving reliability: Consistent latency and throughput + easier for an infra engineer to manage / debug

What does “simpler retrieval” look like?

  • Single vector retrieval with a few filters
  • A first pass BM25 retrieval with a recency boost
  • An assumption you’re fetching top 1000 and reranking outside the search engine

Of course, how far you sacrifice relevance for reliability requires measurement. And that requires actually deploying your retrieval changes early. Then measuring under actual load using shadow traffic.

Related articles

-Doug

​Events · Consulting · Training (use code search-tips)

You're subscribed to Doug Turnbull's daily search tips where I share tips, blog articles, events, and more. You can always manage your profile:

Doug Turnbull

I share search tips, blog articles, and free events I'm hosting about the search+retreval industry, vector databases, information retrieval and more.

Read more from Doug Turnbull

I am a loyal customer of Alamo Drafthouse and Cinema - a boutique movie theater chain in the US. One nice perk is they allow you to order with a QR code ordering system from your table. Sadly the search doesn't work that well, when you search for "burger" you get "nachos" as the first result. Well that's an annoyance purpose-built for me. So I took it upon myself to recreate the search, then fix it. Did I build vector search? No. Did I try to improve query understanding? No. What I did...

This week+next there's some upcoming, free search events I'm cohosting: AI-Search Fundamentals (free 'intro to search' training) Today 12PM ET (w/ Me + Trey Grainger) Sign up -- https://maven.com/p/b9e696/ai-search-fundamentals-vector-spaces-matching-ranking This session covers foundational concepts in information retrieval around matching and ranking. We'll cover sparse vs. dense vector spaces, lexical (BM25) vs. semantic (embedding) search, and matching and relevance ranking fundamentals....

I wrote a detailed blog article critiquing the traditional judgment list search evaluation regime. It's impossible to NOT have some kind of sampling bias. IE your labels all come from BM25 or some legacy search algorithm. So solutions can, at best, measure their effectiveness reranking within that sample. Indeed, its hard to think of an alternative. Labeling random results will just end up wasting time (99% of the corpus will be irrelevant). In the end, you need a sampling algorithm to mine...