Embeddings alone beat the hybrid search I shipped
Solvo is an embeddable AI support agent: one script tag, and a site answers its own visitors from its own docs, with the source attached to every answer. The first version of its search was hybrid, embeddings and a keyword search merged by rank. Fusion promised the best of both.
A model I can’t measure is a demo, not a product. So retrieval has a fixed benchmark, and any change to chunking, embeddings or ranking gets scored against it.
The benchmark
It is the app’s own crawl, chunking, embeddings and search, run against a public help centre: the Plausible Analytics docs, 126 pages, 330 chunks. The first 45 questions are written the way customers type them, not the way the docs title things. Each one has exactly one right page, and a pass means that page is in the top 5.
What it said
On those 45 questions the hybrid search found 41. Then I ran each half on its own, with the same embeddings. Embeddings alone beat the hybrid search I shipped, and every question it missed, they ranked first or second.
That wasn’t yet a fair fight. None of those 45 questions had an exact token in it, such as an endpoint, a file name or an error code, the case the keyword half is there for. So I wrote 17 that do before changing anything. Embeddings won those too: 17 of 17 in the top 5, against hybrid’s 16.
The table names each run the way the case study does: “Hybrid, as first shipped” is the first version, “Exact tokens as fallback” is the search that ships now, and “Embeddings alone” has no literal search at all.
| Search | Top 5 | First | MRR |
|---|---|---|---|
| Exact tokens as fallbackliveembeddings rank; a literal search fills the gaps | 100% | 94% | 0.97 |
| Embeddings aloneembeddings only, no literal search | 100% | 94% | 0.97 |
| Exact tokens fused by rankembeddings and a literal search, merged by rank | 100% | 87% | 0.91 |
| Hybrid, as first shippedembeddings and keywords, fused by rank | 92% | 79% | 0.84 |
| Keywords aloneno embeddings | 73% | 44% | 0.54 |
Why the hybrid lost
The first version missed 5 of the 62: four of the first 45, and one of the 17 exact-token questions, whose text wasn’t recorded. The four had one thing in common: the right topic came back, just the wrong page of it. Asked “i want a weekly summary of my traffic in my inbox”, it returned Slack reports and traffic-spike alerts, not the email reports page.
My first guess was chunking: a 400-word chunk cut from the middle of a page doesn’t say which page it came from. The numbers said otherwise. The culprit was rank fusion, which rewards a chunk both searches return, and a keyword search for “weekly”, “summary”, “traffic” and “inbox” returns plenty of pages that aren’t about email reports.
What ships now
The embeddings rank, and the literal search only speaks when they come back short. When a question has an exact token in it, a literal search for it fills any of the top 5 places the embeddings left empty. As a fallback it can’t push a right answer down. On all 62 questions that finds the right page in the top 5 every time, ranks it first for 58, and the four misses above are all found, three of them ranked first.
On these 62 the fallback never had to speak: embeddings alone return the same top 5 for every question, which is why their two rows match. It stays for the question it was built for, a code the docs mention once that the embeddings don’t place, and this corpus doesn’t have one.
What the benchmark still doesn’t score is a question with no right page. Customers also ask what the docs don’t cover, where the right answer is a handoff, and that path has no number yet.
Nor can it rule out that I fit the search to my own questions. I wrote all 62 and chose the design on the same set. A held-out set, ideally on a second corpus, is what would settle that.