A visual guide to hybrid search

From a question
to relevance.

Good search connects what you type with what you mean. See how meaning, words, and a second look work together to find more useful results.

The anatomy of a good resultFig. 01
One question, two search signals, a closer look A question branches into meaning and words. Both paths converge into a shortlist. A reranker reviews it and the most relevant passages rise to the top. Your question MeaningDENSE SEARCH WordsSPARSE SEARCH Fuse + rerank Relevance, in order TWO SIGNALS. ONE SHORTLIST.
Search broadly. Then look closely.
An explainer from Smart Semantic Searcher
01 / Retrieve→02 / Combine→03 / Rerank
01 / The intuition

Three ideas. Better search.

Imagine asking a librarian for help. They look for related ideas, check the important terms, then read the promising passages more closely.

01 / DENSE

Look for meaning.

Turn text into a list of numbers called a vector. Texts with similar meanings can land near each other, even when they use different words.

“change my flight” can find “modify a booking”.
02 / SPARSE

Keep the words that matter.

Use a small set of weighted vocabulary signals. Names, specialist terms, and other specific words provide clues that meaning alone can miss.

“change fee” helps surface fee-related passages.
03 / RERANK

Take a closer look.

A second model reads the question alongside each shortlisted passage. It can move a direct answer above a result that is only broadly related.

A policy that answers the question can rise above a fee glossary.
02 / Follow one question

A search, from the inside.

Follow a question through six steps. Press play for the animated tour, or choose any step and read at your own pace.

Inside the search pipelineReady when you are
01 / Start with a question

Ask naturally.
The system does the translation.

You ask about changing a flight. The middleware receives the request, checks access and inputs, and coordinates the search.

Middleware · request orchestration
A query is simply the question or phrase you search for.
Your question

“Can I change my flight without paying a fee?”

MiddlewareCheck the request · choose the collection
POST /query/search

Searching an already indexed collection of travel passages.

02 / Give the question two representations

One question.
Two useful signals.

Smart Embedder creates a dense vector for meaning and a learned sparse vector for vocabulary signals. They must match the models used to index the collection.

Smart Embedder · embedding models
Sparse does not mean simple keyword counting. These weights are learned.

◎ Meaning / dense

A compact numerical representation

[0.12, −0.38, 0.71, …]
Dimensions depend on the model.

# Vocabulary / sparse

A few weighted vocabulary entries

flight
change
fee
paying

Token labels and weights are illustrative.

Both representations describe the same question.

03 / Cast a wide net

Two searches.
Different strengths.

Qdrant searches the stored dense and sparse vectors in two branches. Each returns its own ranked list of likely matches, called candidates.

Qdrant · two prefetch branches
Retrieve enough possibilities before spending more work on each one.
Dense · up to 50
1Booking changesA
2Flexible faresC
3Change-fee policyB
4Cancellation rulesE
Sparse · up to 50
1Fee glossaryD
2Booking changesA
3Change-fee policyB
4Baggage chargesF

Four entries shown per branch. Lists can overlap.

04 / Combine the evidence

Two rankings become one shortlist.

Reciprocal Rank Fusion (RRF) gives credit for a passage’s position in each list. Higher positions contribute more. The same passage appears only once in the fused list.

Qdrant · server-side fusion
RRF combines ranks, so it does not need matching dense and sparse score scales.
◎ Dense ranking# Sparse ranking
Credit from each list → one scoreEqual weights · bars show each list’s contribution
1A · Booking changes0.833
2D · Fee glossary0.667
3B · Change-fee policy0.500
4C · Flexible fares0.500

Up to 50 fused candidates return to the middleware.

05 / Read the promising passages

A closer look.
A more useful order.

The middleware sends the top 20 candidates’ text to Smart Embedder. Its reranker scores each question–passage pair, then the middleware reorders that window.

Smart Embedder · cross-encoder reranker
The model sees the actual text. This step runs outside Qdrant.
The shortlist, reconsidered20 pairs at most
QUESTION×PASSAGE TEXT
3→1Change-fee policy0.94
4→2Flexible fares0.72
1→3Booking changes0.45
2→4Fee glossary0.18

Illustrative model scores. They are not confidence in an answer.

06 / Return useful evidence

The best matches.
Ready to read.

The middleware returns up to five results in this example, with their source text and scores. Your application can display the passages or use them as context for an answer.

Middleware → your application
Search returns evidence. Generating an answer is a separate step.
01 / Top-ranked passage

Change-fee policy

“You can change a standard ticket without a change fee. If the new flight costs more, you still pay the fare difference.”

A fictional policy, used only to explain search.

You control the pace. Nothing plays automatically.Example: 50 per branch → up to 50 fused → 20 reranked → 5 returned
Prefer to read? The whole journey in six sentences
  1. Ask. The middleware receives your question and coordinates the request.
  2. Encode. Smart Embedder creates dense and learned sparse query vectors.
  3. Retrieve. Qdrant runs two searches over vectors already stored for your passages.
  4. Fuse. Qdrant combines rank contributions and returns a deduplicated candidate pool.
  5. Rerank. Smart Embedder scores question–passage pairs from a limited window; the middleware reorders it.
  6. Return. The middleware returns the requested page of matches, with text and scores.
03 / The ranking lab

What changes the result?

Use a tiny collection to make every decision visible. Change the shortlist, switch the reranker on or off, and select a result to see why it is there.

An illustrative collection · 6 passages

“Can I change my flight without paying a fee?”

5 + 5 retrieved→5 fused→4 reranked→3 shown
See the two retrieval lists

Meaning · dense

  1. A · Booking changes
  2. C · Flexible fares
  3. B · Change-fee policy
  4. E · Cancellation rules
  5. D · Fee glossary

Vocabulary · sparse

  1. D · Fee glossary
  2. A · Booking changes
  3. B · Change-fee policy
  4. F · Baggage charges
  5. C · Flexible fares
  1. 01Change-fee policyTravel handbook · B0.5000.94
  2. 02Flexible faresTravel handbook · C0.5000.72
  3. 03Booking changesTravel handbook · A0.8330.45

Inside the top result · Passage B

“You can change a standard ticket without a change fee. If the new flight costs more, you still pay the fare difference.”

This passage answers the question directly and adds an important condition.

Dense #3 + sparse #3 → 1/4 + 1/4 = 0.500 RRF

The closer look matters: the policy starts at fused rank #3 and moves to #1.

This is a teaching simulation, not a live search or benchmark. Passage text, retrieval rankings and reranker scores are hand-authored. RRF scores and the shortlist are calculated in your browser. The examples use equal weights, k = 2, and a stable passage-ID tie-break. Reranker scores are not probabilities that the passage is correct.

Under the hood: how the RRF score is calculated

Each list contributes credit based on where it places a passage. Add those contributions; a missing passage contributes zero. In Qdrant’s equal-weight RRF, ranks start at zero.

RRF = 1 / (k + dense rank) + 1 / (k + sparse rank)

For the policy at visible position #3 in both lists, the internal ranks are 2 and 2. With k = 2: 1 / (2 + 2) + 1 / (2 + 2) = 0.500. A passage found by only one branch has only one term. The lab keeps the best N fused candidates, reranks only the selected head, and appends the unchanged tail before showing three results.

RRF is the default in this stack. DBSF is another supported fusion method; it normalizes score distributions before combining them. The lab demonstrates RRF only. Read Qdrant’s fusion reference ↗

04 / In Smart Semantic Searcher

Who does what?

The animation follows this repository’s architecture. Three separate services cooperate through explicit HTTP requests.

01 / THE COORDINATOR

Middleware

Your application’s entry point. Checks the request, calls the models and Qdrant, reorders the results, then returns them.

middleware-qdrant-manager
02 / THE MODELS

Smart Embedder

Turns text into vectors and scores query–passage pairs. Models run locally on CPU or GPU; this service does not store your collection.

server-embedder-reranker
03 / THE VECTOR DATABASE

Qdrant

Stores vectors and passage payloads. Runs the two retrieval branches and fuses their rankings before returning candidates.

Your Qdrant instance, external or bundled

Application → Middleware → Smart Embedder (encode) → Middleware → Qdrant (retrieve + fuse) → Middleware → Smart Embedder (rerank) → Middleware → Application

Before the search startsDocuments must already be split into passages, embedded and stored. Querying does not re-embed the whole collection. The optional MCP server gives agent clients another way to call the middleware.

Two model profiles, the same flowbasic uses BGE-M3 embeddings and a BGE reranker. advanced uses Qwen dense embeddings, MILCO sparse embeddings and a Qwen reranker. The dense+sparse flow here does not use ColBERT. Why ColBERT stays out ↗.

05 / What to remember

Better results are a trade-off.

There is no setting that wins for every collection. Evaluate with real questions and passages you know should be found.

Candidate pool

Give good evidence a chance.

Retrieving more candidates may catch useful passages a smaller pool misses. It also adds work. A reranker cannot recover anything that never reached its shortlist.

Rerank window

Spend attention selectively.

A larger window gives the model more passages to compare with the question. It usually costs more time and compute. A window of one cannot change the order.

Source quality

Relevance is not truth.

A well-ranked passage can still be outdated, incomplete, or wrong. Preserve source information, check the evidence, and measure quality on your own use case.

Retrieve for coverage.
Rerank for a better first result.
Keep the source in view.

The animation uses 50 candidates per branch, a rerank window of 20, and a return limit of 5. The shipped return-limit default is 10. These are configurable limits, not guaranteed result counts or performance claims. See the middleware query reference for the actual request contract.

A little less jargon.

What is a chunk or passage?

A piece of a document that can be retrieved on its own. It should contain enough context to be useful. Splitting a policy in the wrong place can separate an answer from its conditions.

What is an embedding?

A numerical representation of text produced by a model. Dense embeddings use a fixed-length list of numbers; sparse embeddings retain weighted entries from a much larger vocabulary space.

What is a candidate?

A passage retrieved as a possible match. It may be discarded when lists are fused, fall outside the rerank window, or rank below the final results you requested.

What is a cross-encoder?

A model that scores the query and passage together. Unlike comparing separately stored vectors, it can examine how the two texts interact. This closer reading is why it is used on a shortlist.

Are fusion and reranking the same thing?

No. Fusion combines the evidence from retrieval rankings. Reranking uses a model to score query–passage pairs. In this stack, Qdrant performs fusion and Smart Embedder performs the cross-encoder reranking.

Is this retrieval-augmented generation (RAG)?

This is the retrieval part that a RAG application can use. A separate language-model step can generate an answer from the returned passages. This search pipeline itself returns ranked evidence, not a generated answer.

Go one level deeper.

The technical explanation was checked against the repository and the linked primary documentation. All travel, support and API passages in the lab are fictional teaching examples.