2 min read · Updated 2026-05-22

Hybrid retrieval for technical documentation

When semantic search fails on alphanumeric error codes, hybrid retrieval is the unlock. Field-tested recipe with real numbers.

by helpcode research team · Research @ helpcode

The semantic-only failure mode

You build a RAG system over a 1,200-page industrial-pump manual. You test it on conversational queries — "what does the F112 error mean" — and it works beautifully. You ship.

Two days in, an installer asks: "startup noise model P-340". Your embedding-based retriever returns a passage about general startup procedures. The actual answer — on page 847, under "P-340 troubleshooting" — never makes the top-50. Why?

Embeddings encode meaning. They don't encode that P-340 is a literal token the user needs verbatim. Semantic similarity puts P-340 close to P-330 and P-350 and various part-numbers from other pages. The relevant passage gets buried.

Hybrid pattern explained

Hybrid retrieval runs two retrievers in parallel:

  1. Vector retrieval — embeddings + ANN search. Captures semantics.
  2. Lexical retrieval — BM25 (or similar). Captures literal tokens.

The two result sets are fused. The top-K of the fused set goes through a reranker cross-encoder, which scores each candidate against the original query. The final top-12 goes to the LLM.

helpcode's defaults: K=50 from each retriever, fused to 100, reranked to 12.

Tuning the BM25 boost

The non-obvious knob is how much weight to give the lexical retriever in the fusion. Default to 0.5. Then, in eval:

  • If the corpus contains lots of alphanumeric codes (HVAC, sensors, machine tools) — push lexical weight up to 0.6-0.7.
  • If the corpus is mostly prose (a help-centre, marketing pages) — drop lexical weight to 0.3-0.4.

Always tune on a representative eval set. Never guess.

The reranker pass

The reranker is what makes hybrid retrieval feel intelligent. The fused result set has ~100 candidates with noisy scores; the cross-encoder reads each candidate alongside the original query and produces a fine-grained relevance score.

In our benchmarks, hybrid retrieval without a reranker gives a ~7-12 point precision-at-1 lift over semantic-only. Adding the reranker brings it to 20-30 points, depending on the corpus.

Field results from 3 deployments

Customer Domain Before (semantic only) After (hybrid + reranker)
Industrial pumps OEM 1,200-page manual + service bulletins 51% first-contact resolution 78% first-contact resolution
Heat-pump distributor 800-page manual × 8 brands 64% citation accuracy 91% citation accuracy
Sensor manufacturer Datasheets + calibration procedures 0.62 nDCG@10 0.83 nDCG@10

Pitfalls

  • Chunking matters as much as the retriever. Bad chunking destroys lexical recall too. Keep tables intact; consider contextual retrieval for ambiguous chunks.
  • Don't skip the reranker to save latency. It's the largest single lift. Cap the reranker at top-50 candidates to keep latency under 1.4s.
  • Eval, eval, eval. Hybrid retrieval has more knobs than semantic-only. Without an eval set you'll regress without noticing.

About the author

HR

helpcode research team

Research @ helpcode