Lesson 2.3

Vector stores and indexes

Exact nearest-neighbour search compares the query against every vector and is fine up to a point.

6mAdvanced5.9k students

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

Previous Lesson
Next Lesson
Vector stores and indexes — Retrieval-Augmented Generation in Practice — Vertex