What are Matryoshka embeddings?
LLM Engineer Interview Questions: Embeddings, Vector Search, and Cosine Similarity Explained
Audio flashcard · 0:21Nortren·
What are Matryoshka embeddings?
0:21
Matryoshka embeddings are trained so that prefixes of the full embedding vector are themselves usable as lower-dimensional embeddings. For example, the first 256 dimensions of a 1536-dimensional Matryoshka embedding are still meaningful, allowing applications to choose dimensionality at query time. This enables flexible tradeoffs between accuracy, storage, and latency without retraining.
huggingface.co