AlgoViz

Phrase, filter and hybrid retrieval

medium 4 min

Different query shapes ask different questions.

Video lesson · Chapter 1 of 5

Two nearly identical bike listings

0:00 / 3:21

An error code and a paraphrase find the same runbook

1:19Reel

Theory

Read or listen first. About 1 min.

What it is

A literal error code and a description of a symptom can refer to the same runbook. Token matching and similarity search offer different ways for that document to enter the candidate pool.

Two ways into the same search result

“AUTH_4017”Lexical indexSemantic indexTenant filterTenant filterExact code → matching token → eligible runbook
A literal error code gives the lexical index a strong signal. Candidate documents from either retrieval path must still satisfy the tenant filter.

Why it exists

Each candidate source must honor the same access rules. Measuring exact-code and descriptive queries separately reveals when one path hides a weakness in the other.

Words to know

Hybrid retrieval
Combining candidates or scores from different retrieval methods for a single query.

How it works

Step through the idea, or press Play.

Step 1 of 3

Retrieve by terms. Exact identifiers produce lexical candidates.

Understand it

Worked example

Phrase, filter and hybrid retrieval in practice

A help center combines lexical matches for error codes with semantic candidates for paraphrases. Apply tenant access controls to both paths before returning results. Evaluate exact-code and descriptive queries separately.

Related case

Why did this document rank first?

An internal engineering search returns a long glossary above a precise two-paragraph runbook. Another user cannot find a document they just published.

The missing reset guide
Finding the reset guideRunbookjust writtenIndexold viewResultsno guideSearch has an older index view

Check refresh, terms and access filters.

Sources