AI and LLMs · Comparison

Keyword vs vector vs hybrid search

Keyword search matches the words people type, vector search matches what they mean, and hybrid search runs both and merges the results.

3 options · 7 questions side by side · updated

CompareKeyword searchVector searchHybrid search
Matches onShared words, after stemmingSimilar meaningBoth
Good atNames, codes and exact phrasesParaphrases, synonyms, other languagesMixed, real-world queries
Weak atDifferent wording for the same ideaExact terms and rare wordsLittle, beyond extra complexity
NeedsA full-text indexAn embedding model and a vector indexBoth, plus a merge step
CostCheap, no model callsAn embedding call per document and queryBoth costs combined
Typical toolsSQLite FTS5, PostgreSQL, Meilisearchpgvector, sqlite-vec, PineconeElasticsearch, Weaviate, PostgreSQL with both
Example strength'SKU-4471' finds that exact product'shoes for rainy days' finds waterproof bootsHandles both kinds in one search box

How to choose between Keyword search, Vector search and Hybrid search

  • Pick keyword search for catalogues, codes and names, or as a cheap, predictable baseline.
  • Pick vector search when people describe what they want in their own words.
  • Pick hybrid search for RAG and general site search, where both kinds of query turn up.

The options

More comparisons

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.