Rachis

Should you search documents by words, meaning or both?

24 November 2026, updated 28 November 2026

Choosing between keyword, semantic and hybrid search affects which passages your application finds, and a passage that search misses cannot reach the request your application builds for the model. Comparing the three on your own questions helps you choose a first setup and check which passages it misses.

Keyword search finds passages that contain the words of a question. Embedding search, also called semantic or vector search, compares numerical representations of text for similar meaning. Hybrid search runs both and merges their results.

When exact wording matters

Take a traveller who types the code printed on their policy and asks what it covers. Keyword search can find the passages that contain that code. Embedding search can miss them.

An embedding model turns text into numbers that search can compare. Google Cloud says semantic search can only find data that the embedding model can make sense of. Its examples of out-of-domain data, which the model's training data does not include, are arbitrary product numbers or SKUs, brand new product names and corporate proprietary codenames. For such cases it says to combine semantic search with keyword-based search.

BM25 is a keyword-search method that scores a passage higher the more often it contains the question's terms, and higher still when those terms are rare across the collection and common in the passage. A rare policy code can therefore be a strong match.

Microsoft lists product codes, highly specialized jargon, dates and people's names as queries that perform better with keyword search, because it can identify exact matches.

When users use different words

Another traveller asks, "My flight was scrapped because of a strike. Am I covered?" The policy uses "cancellation" and "industrial action". Embedding search can find that clause despite the different words; keyword search may miss it.

Microsoft documents this ability to find conceptually similar information even without keyword matches. Test embedding search with questions phrased by people who have never read your documents.

One team reported on Hacker News that its tests relied too heavily on exact keywords. The team knew the knowledge base it tested on, and real users did not know the exact terminology used in its articles.

How hybrid search combines the results

Keyword and embedding search assign scores, numbers used to rank matches, on different scales. MongoDB's score fusion can normalize them to a common scale and multiply each by a weight for its search method. By default it then averages the weighted scores, and a higher weight gives that method more importance.

Azure AI Search's reciprocal rank fusion (RRF) assigns each match a contribution of 1/(rank + k) from each list. Here rank is its position in that list, and k is a constant such as 60. It adds a match's contributions from every list into a combined score.

Check what a weight means in your search system. Weaviate's weight, alpha, runs from 0, keyword search only, to 1, vector search only.

Alpha's server default is 0.75, but depending on your client and your server version the effective weighting can differ, and in some cases can be a pure keyword search. Set alpha explicitly whenever the weighting matters.

One RAGFlow user reported that correct results ranked relatively low. They wrote that their image showed the correct data with higher vector similarity than the top-ranked incorrect data, yet quite low hybrid similarity.

A contributor replied that they could not reproduce it from the file sent. The author answered, "It's this file. I just manually adjusted the chunking." Chunking is the division of text into passages for search. The thread shows no confirmed fix.

The missing documents and recall collection gathers related reports.

What the comparisons show

A 2026 study of financial questions with numerical answers measured Recall@5: the share of supporting documents found in the first five results. Recall@5 was 0.644 for BM25, 0.587 for embedding search, 0.695 for RRF hybrid search with k set to 60 and 0.726 for an equal-weight score blend. The main experiments searched whole text-and-table documents using one embedding model.

In a second 2026 study of corporate filings, BM25 led on accounting, financials and legal questions; embedding search led on company overviews, risk and shareholder returns. Combining them beat either alone overall. Three lightweight routers that set weights per question did not reliably beat equal weighting. The study used one compact embedding model and automatically produced relevance labels.

The two studies disagree on the better combination: the equal-weight blend led in the first, and RRF scored highest in the second, a result its authors treat as exploratory.

One team reported on Hacker News that embedding-only search had a higher hit rate than hybrid search over its scientific PDFs (69.2% against 63.5%), and that Mistral Embed worked well in English but not in French.

A first setup and a check

Start with hybrid search using your search system's documented default combination. Record the method and set any weights explicitly. Keep keyword-only and embedding-only search available for comparison.

Take real user questions from your document-answer test set, if you have one. Separate questions containing exact identifiers, names or codes from those phrased in everyday language. Note the passage that settles each question.

Run every question through keyword, embedding and hybrid search, keeping the documents and number of results the same. Record whether the deciding passage appears and at what position. Then inspect whether your application includes it in the request for the model, alongside the question.

Use those results to choose the combination and its weights. Rerun the comparison after changing the embedding model or the mix of document languages, keeping the original user wording in the test questions.

Join the waitlist: one email when there is something to try.

Read the pain map: Retrieval and citations.