epochs

Learn · Module 09 · Search and retrieval · Lesson 3 of 5

Keyword and vector search

Keyword search finds exact words; vector search finds meaning. Each fails where the other works.

4 minute read

In short
  • Keyword search scores shared words, weighting rare words heavily (TF-IDF, BM25).
  • Vector search compares meanings, so it handles different wording.
  • Keyword search wins on exact names and codes; vector search on paraphrases.

This lesson is part of Pro

The first two lessons of every module are free. Pro opens every lesson and every project.

See Pro plansFrom ₹119 a month. No auto-renewal.