Supabase 实测 pgvector 与 Pinecone 的成本和性能
📊 核心数据与事实(2023-10-10):
Supabase 用 dbpedia 的 100 万条 OpenAI embeddings(1536 维)对比 pgvector 与 Pinecone 的查询性能和成本。
• 原文实测切片:Type Capacity / Vectors QPS Accuracy Price per unit per month s1 5,000,000 768d (~2,500,000 1536d) Slowest 0.98 $80 p1 1,000,000 768d (~500,000 1536d) Medium 0.99 $80 p2 1,100,000 768d (~550,000 1536d) Fastest 0.94 $120 Pods can be scaled in 2…
• 原文实测切片:To match the measured .98 accuracy@10 of Pinecone s1 pods, we set ef_search=32 for pgvector (HNSW) queries, and observed the following results: The pgvector HNSW index can manage 1185% more queries per second while being $70 cheaper per month.
• 原文实测切片:However, even the pgvector IVFFlat index on the same compute exceeds the Pinecone s1 pod and manages 143% more queries per second: p1 pod type # With Pinecone p1 pods, we can fit the dbpedia dataset into the index on a single p1.x2 pod ($160/mo…
💡 对独立开发者的启发:
1/ Supabase 用同一数据集对比 pgvector 与 Pinecone 的 QPS、精度和月成本,可据此估算向量检索方案的开销。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。
📅 日期:2023-10-10(北京时间)
📰 信息源出处:Supabase Blog(supabase.com)
🔗 原文:https://supabase.com/blog/pgvector-vs-pinecone
📡 归档:https://billionare.me/items/doudhixb85c9fhqcbg5uhy833
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发