use case · wild · nomic-ai/nomic-embed-text-v1.5 · WASM q8 · 137.30 MB

The Matryoshka constellation morph

Twenty sentences from four topics, embedded once with clustering: . Drag the slider and the 2D map morphs between the geometry seen at 64, 128, 256, 512 and 768 dimensions — then squash every float to a single bit and see what survives.

1 · Constellation morph

Between ticks the map interpolates between the two neighbouring PCA layouts (Procrustes-aligned so axes never flip).

Load the model to build the constellation.
Topic separation per Matryoshka dimension
Dims 1-NN topic accuracy Topic silhouette PCA variance (2D)
Waiting for embeddings.

2 · 1-bit binary vs float32 — what survives?

Each sentence queries the other 19. We compare the float32 cosine top-5 with the top-5 from sign-binarized vectors ranked by Hamming distance (XOR + popcount) at every dimension.

Binary quantization recall versus float32 per dimension
Dims Bytes/vec f32 → 1-bit Binary recall@5 Binary top-1 = float Binary 1-NN topic acc.
Waiting for embeddings.

Focused sentence: float32 vs binary neighbours at –

float32 cosine

    1-bit Hamming

      3 · Vector-store storage calculator

      Index size for every dimension and precision
      Dimsfloat32float16int81-bit

      How the morph works

      PCA is fitted separately at each dimension, every layout is normalized to unit RMS spread and aligned to the 768-d layout with 2D orthogonal Procrustes (best rotation or reflection), then the slider linearly interpolates between neighbouring layouts.

      Show the code — nomic-core.mjs alignPoints2D(): 2D Procrustes so PCA axes never flip
      Show the code — nomic-core.mjs hammingRank(): 1-bit sign quantization + popcount ranking