- All Courses
- Retrieval-Augmented Generation in Practice
- Chunking and Embeddings
- Vector stores and indexes
Vector stores and indexes
Exact nearest-neighbour search compares the query against every vector and is fine up to a point.
Overview
Approximate, on purpose
Exact nearest-neighbour search compares the query against every vector and is fine up to a point. Beyond that, approximate indexes trade a small amount of recall for orders of magnitude less latency.
Index parameters are a dial between speed and completeness. Tune them against your own evaluation set rather than accepting defaults, because the right point depends on how much recall your application can lose.
Ask how the store handles updates before you pick it. Some indexes degrade as documents are deleted and need periodic rebuilds, which is an operational cost you inherit.
In this lesson you will:
- Compare exact and approximate search
- Understand the recall and latency trade-off
- Plan for updates and deletions
Resources
Notes are not saved yet — they clear when you leave this page.
Choosing an embedding model
4m
Metadata filtering
34m