Lesson 1.2

Vector databases and indexes

Exact nearest-neighbour search does not scale, so vector indexes trade a little recall for a lot of speed. Knowing the trade-off keeps you out of trouble.

Duration
4m
Level
Advanced
Students
8.7k students

Overview

Exact nearest-neighbour search does not scale, so vector indexes trade a little recall for a lot of speed. Knowing the trade-off keeps you out of trouble.

In this lesson you will:

  • Understand approximate nearest neighbour search
  • Trade recall against latency deliberately
  • Store metadata alongside vectors for filtering

Resources

Sanity Context and content APIs

The official reference for the tools used in this lesson.