Search error code E-4012 with semantic search and you may get a thoughtful paragraph about error handling in general.

Search why do customers stop paying with keyword search and you get nothing, because no document in your corpus contains that exact sentence.

The two failures have different causes. Keyword and semantic search are different tools for different jobs, and "which is better" is the wrong question.

What each one is actually doing

Keyword search matches the literal terms, usually ranked with BM25 so that rare terms count for more. It is fast, precise, explainable, and completely indifferent to the fact that "cancel" and "terminate" mean the same thing to your users.

Semantic search compares meaning through embeddings. It handles paraphrase beautifully and is oddly unreliable on the exact tokens (part numbers, error codes, policy names) where a single character changes everything.

Retrieval signalStrong atWeak at
KeywordExact terms, IDs, SKUs, error codes, quoted phrases, rare jargonParaphrase, synonyms, questions phrased in user language
SemanticIntent, related concepts, natural-language questions, vocabulary mismatchExact identifiers, negation, recency, precise policy names
RerankingChoosing the best few from many candidatesFinding anything that first-stage retrieval never returned

That last row matters more than it looks. Reranking is often proposed as the fix for retrieval problems, and it cannot promote a document that never made it into the candidate set.

Read your query logs

The useful move here is empirical rather than architectural, and it takes about an hour.

Pull a day of real production queries. Sort them into two piles, separating the ones that hinge on an exact string from the ones that describe an intent. Nearly every real query stream has substantial volume in both piles. The ratio is almost never what the team assumed in the design meeting.

Now check which pile your retrieval currently serves. Choosing a single method is choosing which of those users to quietly fail, and because a missed result looks like one unlucky answer rather than a systematic gap, you can fail them for months without noticing.

The failure is invisible per query

This is why the problem persists. When keyword-only search misses a paraphrased question, the user sees "no results" and rephrases or leaves. When semantic-only search mangles an invoice number, the user sees a plausible-but-wrong document and may not realise it is wrong.

Neither event looks like a retrieval architecture problem. Both look like one bad day. The pattern only becomes visible when you look at queries in aggregate.

What the log sort decides

If the exact-string pile is more than a rounding error, a semantic-only system needs a lexical path beside it. If the intent pile is, a keyword-only system needs embeddings. When both piles carry real volume, the design question becomes how to merge two rankings whose scores live on different scales.

Next: what happens when you put both of them on the same case.

About this explainer

Format
Explainer
Level
Practitioner
Read
2 min read
Published
Jun 6, 2026
Disciplines

Short mental models: one idea, why it matters, what to do about it.