Zero Embeddings Finds the Contract. It Misses the Clause.
Verdict: if your agent searches documents, keep the embeddings. Word-matching search finds the exact passage when the question reuses the document's own words, and almost never when it doesn't. On 200 paraphrased questions about 300 contracts, a zero-embedding retriever put the right clause first 7% of the time. Our pipeline, a 0.6B embedding model to find the document and a reranker to find the sentence inside it, put it first 78% of the time and in the top three 99% of the time.
WonderSearch, a new Y Combinator (F26) company, describes its product as search for AI agents that "finds anything in your data, instantly, with zero embeddings: no vector database, just the exact passage and its source." The exact passage and its source is the right promise. It is the contract every search tool we build is held to. Zero embeddings is the part we measured.
We did not have access to WonderSearch itself, so we measured the approach it describes: BM25, the standard word-matching ranker, against embedding retrieval on the same documents and the same questions.
The test: 300 contracts that all look alike
We generated 300 contracts between one owner and 56 vendors: master services agreements, statements of work, subcontracts, equipment leases, software licenses and maintenance contracts. Every contract carries the same 15 clauses with different values: a liability cap, a termination notice period, payment terms, governing law, a warranty, insurance minimums, an arbitration venue and eight more, mixed with boilerplate. That is what a real contract folder looks like, and it is what makes search hard. Every document has a liability cap, so the words "liability cap" never tell you which one.
We asked 200 questions, each in two ways:
- Keyword: "How many days' written notice is required to terminate the Pinecrest Engineering Master Services Agreement for convenience?"
- Paraphrased: "How far ahead do we have to tell Pinecrest Engineering if we want to walk away from the Master Services Agreement?"
The right answer is one sentence in one contract. A hit means the retriever returned that exact sentence from that exact contract. The corpus is generated from a seed, so every run rebuilds it byte for byte. We report one seed and checked every row of the table against a second; they agree within five points. The documents are cleaner than real scans, which makes every retriever's job easier, not ours alone.
The results
| Retriever | Keyword, top 1 | Keyword, top 3 | Paraphrased, top 1 | Paraphrased, top 3 |
|---|---|---|---|---|
| Zero embeddings (BM25) | 81.5% | 91.5% | 7% | 38% |
| Zero embeddings + an LLM rewriting the question | 82.5% | 97.5% | 19% | 49% |
| 0.6B embedding model (Qwen3-Embedding) | 98% | 100% | 73% | 86.5% |
| Find the document, then rerank its sentences | 99.5% | 99.5% | 78% | 99% |
Every retriever in the table found the right contract 98-100% of the time, because the vendor's name is in the document. What separates them is the clause.
Why words are not enough
A contract says "Either party may terminate this Agreement for convenience upon 30 days' written notice." A person asks "how far ahead do we have to tell them if we want to walk away?" Apart from the vendor's name, those two sentences share no content words. A retriever that counts shared words ranks the right contract highly and then has nothing to choose the right sentence with, so it falls back on whichever clause happens to repeat the vendor or the word "agreement". That is how 100% of contracts becomes 7% of clauses.
An embedding model places both sentences close together because it learned that "walk away" and "terminate" mean the same thing. That one change moves the paraphrased top three from 38% to 86.5%. Even a 22M-parameter model (MiniLM) puts the right clause first 63% of the time, nine times the word-matching result.
Agents help, but they cannot rewrite their way out
The natural objection is that an agent can rewrite the question into contract language before it searches. With a small local model doing the rewrite, the paraphrased top one rose from 7% to 19%. A stronger model would rewrite better, but there is a ceiling: a perfect rewrite turns a paraphrased question into a keyword question, and keyword questions reach about 82% top one with word matching. Our pipeline gets 78% on paraphrased questions with no rewrite at all, and puts the right clause in the top three 99% of the time.
Two stages: the document, then the sentence
The best row is two simple steps. The embedding model finds the contract, which it gets right 199 times in 200. A cross-encoder reranker (Qwen3-Reranker, 0.6B) then reads each sentence of that one contract against the question and puts them in order. The order of the two steps matters. Run the reranker across the whole collection and it identifies the right kind of clause but often picks it from a look-alike contract, because every contract has an arbitration clause. On one GPU the pipeline answers in about 90 milliseconds; word matching takes a few.
Our own embedder, aither-code-embed, was distilled for code search. It puts the right clause first on 99.5% of the keyword questions, and for paraphrased prose we use the general-purpose model above.
Exact means checkable
Returning a passage is easy. Returning the exact passage is a promise a reader should be able to check. Our search tools enforce it in code: awfind's federated find, AitherSearch answers and "ask this file" in Strata return each passage with where it came from (character offsets, or file and line), confirm that the source text there is the passage character for character, drop anything that does not match, and report how many they dropped. An agent never has to trust that a quote is real. It can check.
What to do with this
If you are giving an agent search over your own documents:
- Index with embeddings, even small ones. They are what turn a paraphrase into a hit.
- Find the document first, then rerank the sentences inside it.
- Make "exact passage" a check, not a promise: offsets out, verification in.
Word matching is fast and transparent, and it is the right first stage when people type the document's own words. Most people don't. If WonderSearch handles paraphrases better than the approach it describes, this is the benchmark we would like to see it run.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.