RAG 與知識系統

Semantic Search vs. Keyword Search: Why Enterprise Knowledge Q&A Can't Run on Keywords Alone

An employee searches for "Does my car get covered if it floods in a typhoon" but the policy says "loss caused by flood or inundation." Not a single word matches. Keyword-only search cannot support enterprise knowledge Q&A. Analysis of 200 real support tickets reveals how semantic and keyword search diverge: across synonyms, colloquial phrasing, and questions spanning multiple documents. Hybrid retrieval emerges as the answer.

By

Tenten AI 研究團隊

AI 基礎設施

Published

January 22, 2026

Read time

5 分鐘

語意檢索關鍵字搜尋RAG企業知識庫混合檢索AI問答

Semantic search uses vector comparison to find documents by meaning, while keyword search uses literal matching to find documents by terms. The former understands synonyms and rephrasing; the latter only recognizes the exact string typed. Choosing correctly between them is essential for enterprise knowledge Q&A to function.

One real question: where the two methods diverge

We built a knowledge base for a property and casualty insurance company last quarter. An employee searched for: "If a customer's car gets flooded in a typhoon, does Type B comprehensive coverage pay out?"

Not a single word appears in the policy language. The policy text states: "Loss or damage caused by flood or inundation." Additionally, "Type B" is formally listed as "Vehicle Loss Insurance (excluding Type C)" in official documents. Keyword search attempts to match "flooded," "typhoon," and "Type B" but finds no results. It may instead retrieve unrelated administrative memos that mention "typhoon day announcement."

Semantic search encodes the entire question as a vector and finds the paragraph with the closest semantic match. Even when no single word overlaps literally, it retrieves the "Loss or damage caused by flood or inundation" clause. This is the core difference: semantic search recognizes that "flooded" means the same as "water damage," while keyword search does not.

Three question types where keyword search inevitably fails

Historical support tickets from this customer provided test data. When 200 tickets ran through both systems, failures concentrated in three categories. These patterns reflect fundamental limitations of keyword search.

Question typeWhat users askWhat's in the docsKeyword searchSemantic search
SynonymsDo I withdraw my pension when I leave?Individual retirement fund account withdrawalFails, no match for "withdraw pension"Matches "fund withdrawal"
Colloquial vs. formalWho pays return shipping?Shipping cost responsibility for returnsNo match for "who pays"Understands as cost responsibility
Cross-documentHow much longer is Product A's warranty?Warranty terms in separate spec sheetsRetrieves each separatelyRetrieves both, then compares

Cross-document questions are the most problematic. Business questions rarely have answers confined to a single document. For example, "How many times has this supplier been penalized in the past three years, and why?" requires information from procurement contracts, inspection records, and accounting adjustments. Keyword search processes one string of terms at a time. Across multiple documents with different structures, it cannot synthesize answers. It lacks the semantic dimension to connect related information across files.

Why keyword search still exists

Keyword search remains useful in specific scenarios. Both methods run in most deployments.

Part numbers, contract IDs, legal section numbers, names, and SKUs benefit from keyword search. Searching for "Contract CT-2024-0871" requires exact matching. Semantic search's approximation approach returns similar-looking results that reduce precision. Keyword search is also cheaper, explainable, and avoids vector index maintenance. Failures are immediately traceable.

The question is when to use each method. Hybrid retrieval suits most enterprise knowledge bases. Semantic vectors recall candidates by meaning, keyword search (usually BM25) weights exact matches higher, and a reranking step orders results by relevance before passing them to the model. Semantic-only approaches miss part numbers. Keyword-only approaches miss paraphrases. Hybrid retrieval avoids both problems.

What this means for people building enterprise AI Q&A

When evaluating an enterprise knowledge Q&A or RAG system, test beyond demo questions. Take 50 common questions from support, compliance, and operations that use colloquial language and span departments. Feed these into the system directly.

Predictable failure points exist. Employees use plain language while documents use formal terms, and answers often span multiple files. Failure in any area suppresses adoption. Systems that answer poorly on real user questions see declining use; employees stop asking after receiving inaccurate responses.

Retrieval layer performance determines model performance. The model can only answer questions about retrieved content. When retrieval returns nothing, the model generates inaccurate responses.

We prioritize testing retrieval before deploying a model when building RAG systems. Customer historical questions serve as test sets. We validate hybrid retrieval's recall question by question until all three question types return accurate results. The goal is user adoption, not impressive demonstrations.

One stuck workflow
is enough to begin

Tell us what the team does today, where it breaks down, and what a better working day should look like.