Retrieval quality · about 20 minutes of study

Hybrid search

Hybrid search combines complementary retrieval methods, commonly lexical and semantic search, to handle both exact terms and paraphrases.

Before you start: Review Vector search first. Python-like examples use variables, lists and functions.

Guided concept walkthrough

Follow the mechanism

Lexical branch

Find exact words and identifiers.

1 / 4

A conceptual animation, not a live model trace. Play advances every five seconds and stops at the final stage.

Start with an everyday explanation

Use both a book index for exact names and a librarian for related ideas. Combining the results can help when either method misses a clue.

See a concrete example

With RRF constant k=60, a document at ranks 1 and 3 scores 1/61 + 1/63 ≈ 0.03227. The constant is a tunable choice, not a guarantee.

A claim to question

Hybrid does not mean adding two arbitrary raw scores without calibration.

Try before revealing the answer

Run the toy search with POL-448210 and with a paraphrase of a rejected claim. Compare rankings.

Show the worked answer

Identifier queries benefit from lexical matches while paraphrases can benefit from semantic candidates. Use the observed errors to justify fusion, filtering or separate routing.

Now explain the idea to someone else using your own example. If you cannot explain a stage, revisit it before moving on.

Your explanation and revision notes

Loading local notes…

Read the primary reference

Retrieval-Augmented Generation

The explanation and exercises are original teaching material. The linked source provides background; examples and assumed numbers here are not claims about a particular company.