Log inStart free
LESSON 35.06 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Incremental vector indexing

Watch a vector index take in new, edited and deleted documents.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 35.06 · INDEX BAY200 VECTORS · 8 LISTS · 17 TO 47 EACH
01
Stage 1 of 6 · The index
A vector index sorts 200 document vectors into 8 cells. Each cell keeps an inverted list of its vectors.
Explain it simply

Each teal dot is one document, turned into a vector by an embedding model. The ochre diamonds are the 8 centroids of the IVF index. Each row on the right is one cell's list. A search reads one list instead of all 200 vectors.

200 teal dots in 8 cells around ochre diamonds. List sizes: 47, 17, 17, 20, 22, 39, 21, 17.

document vectorscentroidstombstones, misses, far vectorssearch results
200 documents in 8 cellsc0c1c2c3c4c5c6c7inverted lists (8)c047c117c217c320c422c539c621c71747 + 17 + 17 + 20 + 22 + 39 + 21 + 17 = 200200 documents in 8 cellsc0c1c2c3c4c5c6c7inverted lists (8)c047c117c217c320c422c539c621c71747 + 17 + 17 + 20 + 22 + 39 + 21 + 17 = 200
Toy: 22.C2's 200 points as documents, plus new ones; 8 IVF cells, 1 probe
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
c(x)=arg⁡min⁡j∥x−cj∥\sy{c}{param}{c}(\sy{x}{data}{x}) = \arg\min_j \lVert \sy{x}{data}{x} - \sy{c}{param}{c_j} \rVert
47+17+17+20+22+39+21+17=20047 + 17 + 17 + 20 + 22 + 39 + 21 + 17 = 200

Each vector joins the list of its nearest centroid.

Common mix-ups

MYTHA new document is found as soon as it is indexed.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01Do new documents on the old topics sit far from their centroids?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.