Scaling HNSWs
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Redis 8's vector sets can now scale to hundreds of millions of vectors across nodes, with parallel reads and writes, giving engineers a practical sharding recipe for embedding search.
Redis, a popular open-source database, added a feature called vector sets in its version 8 release in May. Vectors are long number lists that computers use to compare things like text or images for similarity. Redis's creator wrote a detailed guide explaining how to spread huge collections of these vectors across many servers, so searches and updates can run in parallel instead of on one overloaded machine.
Redis 8's vector sets, shipped in May, now include documented techniques for scaling similarity search across many Redis instances: clients can fan a query out to N servers and merge scored results, and hash writes modulo N to parallelize indexing. Teams running embedding search at hundreds-of-millions scale gain a free, well-explained scaling path instead of adopting a separate vector database. Competitors like Pinecone and pgvector face price pressure.
Salvatore Sanfilippo details his HNSW implementation in Redis 8's vector-sets module (hnsw.c, vset.c), including contributions around efficient deletion and updating of existing indexes, historically a weak spot of HNSW. For scaling, VSIM queries against partitioned instances can return WITHSCORES (cosine distance) for client-side merge, and parallel queryable via multiplexing; writes shard by hashing the element modulo N across instances. No benchmark numbers are given.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.