01 / PCA projection

A better space to search.

Align the index with the data. Preserve the original distances.

An orthonormal PCA projection creates an index; full-space distances still rank candidates.ORIGINAL FEATURESPCA SEARCH INDEXx₁x₂PC1012345qpqp1.60Original distance 1.711.60 ≤ 1.71Projected ≤ original distance

An orthonormal PCA projection creates an index; full-space distances still rank candidates.

Search with projected bounds. Rank neighbors with full-space distances.

Illustrative 2D → 1D projection; the benchmark uses 8D → 3D. Pacing is explanatory.

View implementation ↗