Wild ยท feature-extraction ยท WASM
mxbai's 1024-d vector is trained like a Russian doll โ the leading slice is still a good embedding on its own. So you can truncate after the fact to shrink a vector database without re-embedding. Embed once here, then drag the dimension from 1024 down to 32 and watch the ranking hold โ until it doesn't. The results below re-rank instantly because we only truncate + re-normalize the vectors we already have.
A million documents at 1024 int8 dims is ~1 GB of vectors. Truncate to 256 and it's ~256 MB โ a 4ร cut in index size, memory and nearest-neighbour compute, for a small, tunable quality hit you can measure on your own data (that's the "full top-3 kept" number above). Ordinary embedders force you to re-train or re-embed to change dimension; a Matryoshka model lets you dial it at query time.