Vector Search
Searching for the nearest vectors to a query in the space of meanings.
How It Works
- The query is turned into an embedding.
- The nearest vectors are looked up in the vector DB.
- Closeness is measured with cosine similarity.
Vector Search vs Keywords
| Vector | Keywords | |
|---|---|---|
| Searches | By meaning | By exact match |
| Synonyms | Understands | Does not understand |
| Exact names | May miss | Finds |
That is why production systems often use hybrid search — both approaches together.
Where It Is Used
- RAG;
- semantic search over documents;
- recommender systems;
- searching for similar images.