Skip to main content

Retrieval techniques have preconditions, not properties

I ran four standard RAG techniques against one pipeline and got four different outcomes. Every advantage turned out to be conditional on the corpus and the embedder — so the useful question is never which technique works, it's which precondition you actually have.

Updated 13 min readMarkdown

Retrieval techniques have preconditions, not properties

I ran four standard RAG techniques against the same retrieval pipeline across three experiments.

Multi-Query made it measurably worse. HyDE did nothing at all. Reranking gained ten points on top-1 — and lost five on top-5. Hybrid search rescued two queries out of forty-eight, at one weight setting and no other.

Before the numbers do any work, the arithmetic you should do on them: these evaluations ran 20 to 48 questions, so a "+10pp" is two queries, and a "−5pp" is one. The whole reranking result is five queries changing position out of twenty.

That is too thin to estimate how much any technique helps. It is enough to find out why — because at twenty questions I could open every failure and read it. This post is about mechanisms and the conditions they depend on, not about effect sizes. Where I give a number, read it as the thing that prompted the investigation, not as the finding.

Four techniques, four different outcomes, one pipeline. I went in expecting to learn which techniques work. What I got instead was that the question is malformed.

Every advantage I measured turned out to be conditional on my corpus and my embedding model — not a property of the technique. Reranking doesn't have a precision benefit; it converts a specific, measurable gap into precision, and on a well-ordered pool that gap is zero. BM25 doesn't have an identifier advantage; it earns one only when your corpus has enough lexical contrast for IDF to carry signal — and only on the queries where dense retrieval has actually lost the token.

That distinction matters because stacking techniques is the default move when retrieval quality is poor. And stacking folklore — properties that aren't real — is how you add latency and model calls for no lift.

Multi-Query didn't dilute my query. My rewriter did.

Multi-Query generates N paraphrases of the question, searches each, and fuses the ranked lists with Reciprocal Rank Fusion. The premise: one phrasing might miss what another catches.

Measured on a 20-paper corpus with bge-small and anchor-free queries — recall@1 fell to 0.600 (−5.0pp) and recall@5 to 0.850 (−10.0pp) against baseline.

The mechanism is not what I assumed. I expected the paraphraser to drop the load-bearing term.

It didn't. The proper-noun anchor survived in all four variants — a surname has no synonym. What diluted the result was the generic tail of each variant: four queries each carrying the anchor plus a cloud of broadened context, fused together, pulling the embedding toward the general neighbourhood and away from the specific chunk.

The failure mode is genericization, not deletion. That's a more uncomfortable finding, because prompt-engineering your way out of deletion is easy and prompt-engineering your way out of genericization is the thing paraphrasing is.

The precondition: anchor-loss is conditional, not intrinsic. It needs a trigger — an LLM rewrite step, or a corpus dense enough to crowd the neighbourhood. Hand the raw anchored query to dense retrieval on a small corpus and it saturates at rank 1. There is nothing for Multi-Query to rescue, and plenty for it to spoil.

HyDE solves a gap your embedder may have already closed

HyDE generates a hypothetical ~80-word answer, embeds that, and searches for real chunks near it. The rationale is sound: in a symmetric similarity space, question-vectors and answer-vectors sit in different regions, so an answer-shaped probe lands closer to real answers.

Measured: 0.0pp. Not harmful. Not useful.

The reason is that modern asymmetric retrievers — bge/e5 families, query:/passage: prefixes, trained on MS-MARCO with hard negatives — learn to pull queries toward their passages. The q↔a gap gets closed inside the embedding, which is precisely the gap HyDE was invented to bridge. The technique didn't underperform; its premise had already been absorbed upstream.

One sub-finding worth carrying: neighbourhood-match, not correctness, decides whether HyDE helps. A hypothetical answer that is factually wrong but lands in the right embedding neighbourhood retrieves correctly. A hypothetical that is factually correct but describes the general topic still misses. Chasing hallucination in the HyDE step is optimising the wrong variable.

The precondition: a symmetric embedding space. If yours is asymmetric, HyDE's original gain is already banked and you're paying a generation call to re-bank it.

The honest status of that claim: I did not ablate it. I never ran the same eval on a symmetric embedder, so "asymmetric training is why HyDE was neutral" is mechanism reasoning that fits the result, not a demonstrated cause. It's the explanation I'd bet on and the experiment I haven't run.

Reranking can only touch the buried population

A cross-encoder scores query and document jointly in one forward pass, instead of embedding them independently and comparing. It is slower and sharper.

Here's the framing that made it click: a reranker is a judge you hire to reorder a shortlist. It cannot add to the shortlist. Recall is frozen upstream by dense retrieval. Whatever the retriever never surfaced, the reranker will never see.

That gives you the number to measure before you buy:

headroom = recall@N − top-1 rate

Recall@N says the right document is in the pool. Top-1 says it's at the front. The gap is the buried band — the only population a reranker can promote.

Measured on a 50-paper / 5,230-chunk corpus with 20 anchor-free questions:

Metric Before After Delta
top-1 page hit 55% 65% +10pp
top-5 page hit 85% 80% −5pp
latency 31ms 443ms 14×

Headroom going in was 30pp; realised lift was 10pp — two queries of twenty. An earlier run on different data turned 40pp of headroom into the same +10pp.

Two observations, same embedder, same reranker, related data. That is not a rate. I carry "roughly a third of headroom converts" as a weak prior for sizing a decision, and I would not defend the fraction.

The −5pp is the finding I didn't predict. A reranker is a judge, not a filter — it demotes as well as promotes.

The full movement: three buried golds promoted to rank 1, one gold pushed off rank 1, one knocked out of the top five entirely. Net +10pp at the top, −5pp in the band below.

Be clear about what that is. Five individual queries moved, and the demotion half of the principle rests on two of them. I believe the mechanism because a cross-encoder reordering a list can obviously move items down as well as up, and because I read those two queries and saw a small model confidently misjudge them. I don't believe it because the numbers are large. If you take one thing from this section, take the retention check — measure top-k retention alongside top-1 lift — rather than my deltas.

So "reranking improves retrieval" is too coarse. It trades coverage for precision, and if you feed five chunks to a generator rather than showing one answer, that trade may run against you.

The precondition: nonzero headroom. If recall@N ≈ top-1, your pool is already correctly ordered and a reranker has nothing to promote.

And the diagnosis that follows: classify your failures as buried or never-retrieved. Buried is rerank's territory. Never-retrieved belongs to the retrieval layer — a different embedder, or a lexical branch.

Latency percentages decide nothing

A detour, because this one cost me an argument with myself.

The reranking stage added +412ms. Against the earlier run's slow 419ms dense baseline, that's +65% — sounds tolerable. Against this run's fast 31ms dense baseline, the same +412ms is +1,325% — sounds disqualifying.

Same stage. Same absolute cost. Two numbers an order of magnitude apart, both arithmetically correct, pointing to opposite decisions.

Percentage framing is baseline-relative and therefore decides nothing. Only absolute milliseconds against a stated budget supports a decision. If you haven't written down the budget, you aren't evaluating latency — you're picking whichever denominator flatters the conclusion you already hold.

The cost model itself is simple and worth internalising:

rerank time ≈ N × cost-per-pair × chunk-length factor

Doubling N measured 1.97× — perfectly linear, because batching parallelism is a GPU property and this ran on CPU. And chunk length is the hidden second variable: ~14ms/pair on toy chunks, ~23ms/pair on real ~1k-character chunks. Managed reranking APIs degrade the same way, with p99 climbing past 200ms beyond roughly 3k tokens. So a benchmark run on toy chunks is measuring a cheaper operation than the one you will ship — real chunks cost about 64% more per pair than the short ones most benchmarks use.

BM25's identifier edge is contrast-dependent

Hybrid search runs BM25 alongside dense retrieval and fuses the rankings. The folklore: embeddings underweight exact tokens — identifiers, version strings, proper nouns — and BM25 catches them.

Measured on the 50-paper corpus, recall@5:

  • Natural-language queries: net zero. Dense was saturated at 1.000. No headroom exists.
  • Identifier-style queries: 0.938 → 0.979 (+0.042) across 48 queries — but only at a BM25 weight of 1.0 or above. At weight 0.3, the lift was zero.

That +0.042 deserves to be stated the honest way: it is roughly two queries out of 48 rescued. A percentage-point figure makes it sound like a tuning win. Two queries is what it was.

Two preconditions hide in that small number.

First, IDF is corpus-relative. BM25's advantage on a rare token comes from contrast against the rest of the corpus. In a small or homogeneous corpus, ordinary words are nearly as "rare" as your identifier, the high-IDF advantage evaporates, and length-normalisation starts dominating. A toy-corpus experiment showing "hybrid ≈ neutral" isn't evidence about hybrid search. It's evidence your corpus had no contrast.

Second, dense retrieval is sturdier on identifiers than the folklore admits — and that is the measured reason the lift was only two queries. Subword tokenization splits TX-4471 into tx/44/71, which gives the embedder real grip on codes, and on-topic surrounding text rescues the rest. Dense only genuinely drifts when the code is the sole discriminating signal and the surrounding text is generic. BM25 wasn't underperforming; dense had left it almost nothing to rescue.

The payoff is a weighted sum over query types, and the weight is the lever:

Δ_total = w_anchor · (anchor lift) + w_NL · (wins − pollution ≈ 0)

A cautious BM25 weight of 0.3 produces a clean experiment proving hybrid search does nothing. The effect was real; the weight suppressed it.

One mechanical note, since RRF is where implementations diverge: true RRF fuses by position only — score(d) = Σ 1/(60 + rank) — discarding raw scores entirely. k=60 flattens the within-list curve so that cross-list agreement wins, which is also how a confidently-wrong list pollutes the fusion. Worth checking your library: LangChain's EnsembleRetriever is weighted round-robin, not strict RRF; LlamaIndex's reciprocal_rerank is the faithful implementation.

So when does stacking work

Two techniques compose when they attack different bottlenecks. Dense sets the recall budget; rerank sets the precision budget. Those are different populations, so they genuinely compose.

Two techniques aimed at the same bottleneck don't compose — and if that bottleneck is already closed, they interfere.

Multi-Query and HyDE both target the query-formulation gap. On an asymmetric embedder with anchored queries, that gap was shut: one added noise, one added nothing, and both added a model call per query.

The architect's job here is diagnosis, not accumulation.

How I nearly got this wrong

Two methodology failures, both mine, both caught late enough to be instructive.

A five-question probe told me headroom was zero. It found no buried golds at all, which produced a confident, clean, completely wrong conclusion: no headroom, don't bother reranking. The twenty-question run corrected it to 30pp. The rule I took away: small-n probes classify failure modes; they do not estimate rates. "Buried failures exist" is a claim n=5 can support. "Headroom is 0pp" is not.

My corpus and my manifest described different papers. The embedded vector store held 20 papers; the manifest file described a disjoint set of 50. Any gold-label evaluation built from that manifest would have scored retrieval against documents that were never indexed — and produced plausible, publishable, meaningless recall numbers. I found it by accident during a pre-flight check that now runs every time.

Both failures share a shape: the measurement looked healthy and was wrong. Which is worth more caution than a technique that underperforms, because an underperforming technique at least tells you something true.

The attack I'd make on this post

If I were reading this skeptically, here's where I'd push, and I think the push lands.

Twenty to fifty papers is not a corpus — and small corpora are exactly where these nulls come from. Dense retrieval saturating at 1.000 on natural-language queries is unsurprising at this scale. IDF having no contrast is a definitional property of a small, homogeneous collection. So my two most quotable nulls — HyDE neutral, BM25 marginal — are precisely what you would predict from toy scale, independent of whether the precondition thesis is true.

I know this failure mode first-hand, because I'd already fallen into it once: an earlier toy-corpus run showed "hybrid ≈ neutral" and I took it as a fact about hybrid search. It was a fact about the corpus.

So the correct reading is narrower than my title suggests. What these experiments demonstrate is that technique advantages are conditional on scale and embedder — they do not establish which way any specific technique breaks at production scale. On a few million heterogeneous documents I'd expect BM25's identifier edge to grow sharply, not shrink, because that's exactly where IDF contrast lives. The method survives the scale objection. My specific results mostly don't.

Three narrower limits, for completeness:

One embedder, one domain. The HyDE null is a property of an asymmetric model on academic text. On a symmetric embedder, or a domain where questions and answers are phrased very differently, HyDE should start earning its keep. The finding is "HyDE may be solving a gap your embedder already closed," not "HyDE doesn't work."

The reranker was small. The judge-demotion effect is partly model quality — a stronger cross-encoder would likely demote less. I haven't measured that, so I won't claim it.

Every number here is one run. Nothing was repeated with a different seed, a different question set, or a different chunking. For effect sizes that would be disqualifying. For "does this failure mode exist and why," it's enough to justify the next experiment, which is all I'm claiming.

The checklist I'd keep

What survives all of the above is the method, not my measurements. Before adding any retrieval stage, write down three things:

  1. The precondition. What has to be true of the corpus or the embedder for this to help at all? Symmetric space for HyDE. Nonzero headroom for rerank. Corpus contrast plus a query class where the discriminating token isn't shared, for BM25.
  2. The measurement that tests it. Headroom per query class. Recall@N saturation. IDF contrast on your actual corpus — not a toy one.
  3. The budget it spends. Absolute milliseconds, absolute cost per query, against a number you wrote down first.

If you can't fill in all three, you aren't ready to add the stage. You're ready to build the eval.


From the retrieval leg of an ongoing AI-architecture study track. All numbers from re-validation runs against a personal ArXiv corpus — small-n by design, run to classify effects rather than estimate them precisely.

About the author

  • Technical Architect · 20 years in software · Writing about AI architecture, system design, and real decisions at scale
OOlivia5h ago

The reranker-as-judge framing stuck with me — it demotes as well as promotes, so it can cost coverage while it buys precision. And translating '+10pp' into two queries out of twenty is a useful reality check on small evals.