跳到正文
原文
Supabase Blog·· 2023-09-06精选AI 评分60

Supabase 新数据库默认搭载 pgvector v0.5.0,新增 HNSW 索引

pgvector v0.5.0: Faster semantic search with HNSW indexes

AI 导读

Supabase 宣布新建数据库将默认搭载 pgvector v0.5.0,该版本新增 HNSW 索引,用于高维 embedding 的近似最近邻搜索。在 224,482 条 OpenAI 向量(1536 维)测试中,HNSW 性能约为 IVFFlat 的 3 倍且准确率更高;在 100 万条向量测试中,达到 accuracy@10 0.99 时性能超过 6 倍。

推荐理由

Supabase 新库默认搭载 pgvector v0.5.0,文中给出 HNSW 与 IVFFlat 的 QPS 对比和建索引参数,可据此判断是否迁移。

社媒成稿工作台 · 一键复制

飞书同步推送 · 含数据/日期/出处/启发
核心数据发布日期信源出处独立开发启发
1499
Supabase 新数据库默认搭载 pgvector v0.5.0,新增 HNSW 索引

📊 核心数据与事实(2023-09-06):
Supabase 宣布新建数据库将默认搭载 pgvector v0.5.0,该版本新增 HNSW 索引,用于高维 embedding 的近似最近邻搜索。在 224,482 条 OpenAI 向量(1536 维)测试中,HNSW 性能约为 IVFFlat 的 3 倍且准确率更高;在 100 万条向量测试中,达到 accuracy@10 0.99 时性能超过 6 倍。
• 原文实测切片:Switching to a 4XL compute add-on (with a 16-core CPU and 64GB of RAM) resulted in a 69% increase in QPS for an accuracy@10 of 0.99 compared to the 2XL instance.
• 原文实测切片:In this experiment, we utilized the same 4XL instance as in the previous test but modified the building parameters: m : 32 ef_construction : 80 This adjustment enabled us to achieve the same level of accuracy@10 of 0.99 with an ef_search = 100…
• 原文实测切片:lists = 1000 lists = 5000 The index build time has decreased by over 50%, and this ratio remains consistent when you adjust the index build parameters ( specifically, the lists value ).

💡 对独立开发者的启发:
1/ Supabase 新库默认搭载 pgvector v0.5.0,文中给出 HNSW 与 IVFFlat 的 QPS 对比和建索引参数,可据此判断是否迁移。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。

📅 日期:2023-09-06(北京时间)
📰 信息源出处:Supabase Blog(supabase.com)
🔗 原文:https://supabase.com/blog/increase-performance-pgvector-hnsw
📡 归档:https://billionare.me/items/g9sff7cdf0zss0dvxh5dyuypv
去 X 发推
每天 08:00 邮件 / 08:30 飞书准点推送一手高信噪比情报与拆解免费订阅简报

来源:Supabase Blog · supabase.com