Better Retrieval

Five Techniques That Find the Right Passage More Often

Basic search by meaning is a starting point. Five well-known techniques raise the chance that the right passage reaches the model.

Ranjit Nethi

·

Better Retrieval

The short version

  • Basic semantic search misses exact terms and poorly worded questions.
  • Five techniques help: rewrite the question, combine keyword and meaning search, rerank the results, search with a draft answer, and check results before use.
  • Add one at a time and measure each. Every technique adds cost and delay.

The idea

Query rewriting. Users ask short, unclear questions. A model rewrites the question into a clear search query, or into several, using the conversation so far.

Hybrid search. Run keyword search and semantic search together and merge the results. Keywords catch part numbers and names. Meaning catches paraphrases.

Reranking. Fetch a wide set, such as 50 passages, then use a second, more precise model to reorder them and keep the best five.

Hypothetical answer search. Ask a model to write a plausible answer first, then search with that text. An answer often looks more like the target passage than the question does. The research name is HyDE.

Corrective retrieval. Grade the retrieved passages before using them. If they are weak, search again in another way or say that the answer was not found.

A good reference librarian does all five. They ask what you really mean. They check both the catalogue and the shelves. They hand you the best three books and leave the other fifty. They think about what the answer might look like. And they say “we do not have that” when they should.

  1. Question
  2. Rewrite
  3. Keyword and meaning search
  4. Rerank
  5. Check quality
  6. Send the best passages to the model

An example

Engineers ask an assistant about component ratings. A question like “max temp for the 7A-220 in a sealed box?” fails with semantic search alone, because the part number is treated as noise. Hybrid search fixes the part number. Reranking moves the derating table above the marketing text. A quality check stops the assistant from answering from a similar part’s data sheet when the right one is missing. Each change is measured against 100 test questions before release.

Common mistakes

  • Adding every technique at once, so nobody knows which one helped.
  • Sending 30 passages to the model “to be safe”.
  • Skipping the “not found” path, so weak results become confident answers.
  • Tuning retrieval without a test set.

What to do this week

  1. Collect 30 questions your assistant answered badly.
  2. For each, check whether the right passage was retrieved at all.
  3. If part numbers and codes fail, add hybrid search first.

The terms, in plain language

TermWhat it means
Query rewritingTurning a user’s question into a better search query
Hybrid searchCombining keyword search and search by meaning
RerankingReordering results with a more precise model
HyDESearching with a draft answer in place of the question
Corrective retrievalChecking results and searching again if they are weak

Section 4.4 of the AI Engineering Guide · Last reviewed November 2026

All parts of the guideChecklists and templates

About the author

Ranjit Nethi leads AI and data for commercial operations at a global industrial manufacturer. He writes about the operating model that turns AI pilots into results finance will sign. Kellogg Executive MBA; MS in Computer Science. This site is his own perspective and view, with no affiliation with any organization.