↓ Skip to main content
  1. Glossary/

Matryoshka embeddings

Embeddings trained so that their first values hold the most information. A system can then cut each embedding to a shorter length, to save storage and speed up search, and still get usable results. The name comes from Russian nesting dolls.

A model gives embeddings of 3,072 values. A team keeps only the first 768 values of each one, so the index needs a quarter of the storage. Before the change, the team measures recall@k at both lengths on its own test queries.

Appears in