{"id":498,"date":"2025-11-12T08:14:07","date_gmt":"2025-11-12T08:14:07","guid":{"rendered":"https:\/\/blog.adlington.fr\/index.php\/2025\/11\/12\/scaling-hierarchical-navigable-small-world-hnsw-vector-in-redis\/"},"modified":"2025-11-16T11:22:07","modified_gmt":"2025-11-16T11:22:07","slug":"scaling-hierarchical-navigable-small-world-hnsw-vector-in-redis","status":"publish","type":"post","link":"https:\/\/blog.adlington.fr\/index.php\/2025\/11\/12\/scaling-hierarchical-navigable-small-world-hnsw-vector-in-redis\/","title":{"rendered":"Scaling Hierarchical Navigable Small World (HNSW) Vector in Redis"},"content":{"rendered":"<blockquote><p>if you have different vectors about the same use case split in different instances \/ keys, you can ask VSIM for the same query vector into all the instances, and add the WITHSCORES option (that returns the cosine distance) and merge the results client-side, and you have magically scaled your hundred of millions of vectors into multiple instances, splitting your dataset N times<br \/>\n\u2014 Read on <a href=\"https:\/\/simonwillison.net\/2025\/Nov\/11\/scaling-hnsws\/\">simonwillison.net\/2025\/Nov\/11\/scaling-hnsws\/<\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>if you have different vectors about the same use case split in different instances \/ keys, you can ask VSIM for the same query vector into all the instances, and add the WITHSCORES option (that returns the cosine distance) and merge the results client-side, and you have magically scaled your hundred of millions of vectors [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[24,9,8],"class_list":["post-498","post","type-post","status-publish","format-standard","hentry","category-blog","tag-computing","tag-memory","tag-vector-databases"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/posts\/498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/comments?post=498"}],"version-history":[{"count":1,"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/posts\/498\/revisions"}],"predecessor-version":[{"id":501,"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/posts\/498\/revisions\/501"}],"wp:attachment":[{"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/media?parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/categories?post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.adlington.fr\/index.php\/wp-json\/wp\/v2\/tags?post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}