Redis 合并 Vector Sets,成为 Redis 8 原生数据类型
Redis 作者 antirez 宣布 Vector Sets 已合并进 Redis,从 Redis 8 起作为原生数据类型提供,目前仍是 beta 功能。它采用类似 Sorted Set 的接口,用 VADD 添加、VREM 删除元素,VSIM 做向量相似查询,并支持 8 bit 与二进制量化,其中 int8 量化占用 FP32 约 25% 内存。作者重写了 HNSW 实现以支持真正的节点删除和带谓词的图扫描,VSIM 请求走多线程,Vector Sets 以图的形式序列化到磁盘,重启后加载每百万元素只需几秒。
also reimplement from scratch HNSWs (you can see my implementation in hnsw.c), because that was going to be my core data structure, and I didn’t want to grab some random code from GitHub and be happy with it. However, as I started reading the papers, I started to understand that a few pieces were missing. So, as I did in the past with HyperLogLog, where I had to fill a few gaps (here: https://antirez.com/news/75 ), there was already some new algorithmic challenges. Especially I wanted two things
匹配字段正文



