Matryoshka embeddings: How to make vector search 5x faster
sderosiaux.substack.com·1w·
Discuss: Substack
🔢Embeddings
Preview
Report Post

OpenAI’s text-embedding-3-large model, when truncated to just 256 dimensions, outperforms their previous text-embedding-ada-002 at 1,536 dimensions on the MTEB benchmark. Read that again. A 6x smaller embedding beats the full-size version of the previous generation.

This is Matryoshka Representation Learning (MRL) in action. It’s a training technique that lets you slice embeddings to any size and still get useful representations. I recently implemented this for a semantic search system and cut our vector search latency by 80% while barely touching accuracy.

If you’re running vector search at scale, you’re probably storing full-dimension embeddings when you could be using a fraction of the space. Here’s…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help