{"version":"v1","id":"vector-db-rag-cost-calculator","matrix":"workflows","status":"live","updated":"2026-11-29","title":{"en":"Vector DB & RAG Cost Calculator","zh":"向量数据库与 RAG 成本计算器"},"h1":{"en":"Vector Database & RAG Monthly Cost Calculator","zh":"向量数据库与 RAG 月度真实账单计算器"},"description":{"en":"Expose the hidden RAG bill: vector RAM, read units, re-embedding and ops time — then compare four stacks over 36 months.","zh":"把向量内存、读单元、重新 embedding 与运维工时全部算进去，对比四种 RAG 方案的 36 个月真实成本。"},"answer":{"en":"Sogoh prices the whole RAG stack, not just embeddings: pages become chunks and vectors, storage drives Pinecone read units, dimensions drive Qdrant RAM, and self-hosting carries an hourly ops cost. At 200,000 pages and 500,000 queries/day, Pinecone’s per-read bill reaches about $700/month while Qdrant’s 4 GiB-equivalent cluster stays near $40. Below 500,000 vectors and 20,000 queries/day, pgvector or the free tier is enough.","zh":"Sogoh 算的是整条 RAG 账单，而不只是 embedding：页面先变成 chunk 与向量，存储量决定 Pinecone 的读单元，维度决定 Qdrant 的内存规格，自托管还要加上运维工时。以 20 万页、每天 50 万次查询为例，Pinecone 的按读账单约 $700/月，而 Qdrant 同级内存集群约 $40/月。向量少于 50 万且每天查询少于 2 万时，pgvector 或免费额度就够用。"},"keywords":{"en":["vector database pricing","vector database pricing comparison","rag cost calculator","pinecone pricing calculator","qdrant pricing","pgvector pricing","supabase vector database pricing","embedding cost calculator","openai embedding cost","pinecone vs qdrant cost","self hosted vector database cost","vector db cost","pinecone serverless pricing","weaviate vs pinecone pricing"],"zh":["向量数据库价格","向量数据库成本计算","RAG 成本计算器","Pinecone 价格","Qdrant 价格","pgvector 价格","Supabase 向量数据库价格","Embedding 成本计算","OpenAI embedding 价格","Pinecone vs Qdrant 成本","自建向量数据库成本","向量数据库 对比","RAG 账单","向量数据库 免费额度"]},"formula":[{"title":{"en":"Turn pages into tokens, chunks and vectors","zh":"先把页面换算成 token、chunk 与向量"},"body":{"en":"One page is about 500 words, or 650 tokens. With 512-token chunks and 10% overlap the stride is 460.8 tokens, so a 650-token page becomes two chunks. That is why 20,000 pages is 40,000 vectors, not 20,000 — and why storage estimates that count documents instead of chunks are always low.","zh":"一页约 500 词，也就是 650 tokens。按 512-token chunk、10% overlap 计算，步长是 460.8 tokens，所以一页 650 tokens 会切成 2 个 chunk。2 万页因此是 4 万个向量，而不是 2 万个；按「文档数」估存储的算法一定会偏低。"}},{"title":{"en":"Price reads separately from storage","zh":"读流量与存储必须分开算"},"body":{"en":"Pinecone charges one read unit per GB of the namespace searched, with a 0.25 minimum. A 10 GB namespace at 1 million queries a month is 10 million read units; the same workload on a 10 GB Qdrant cluster is a flat RAM price. This is the single biggest reason a per-read bill can pass a RAM-sized cluster without the dataset growing.","zh":"Pinecone 每次查询按被检索 namespace 的 GB 数收读单元，最低 0.25。10 GB namespace、每月 100 万次查询就是 1000 万读单元；同样负载放在 10 GB 的 Qdrant 集群上则是固定内存价。这就是「数据没涨、按读计费却超过按内存计费」的最主要原因。"}},{"title":{"en":"Add upserts and re-embedding from your change rate","zh":"按更新率补上写入与重新 embedding"},"body":{"en":"A 5% monthly change rate means 5% of the corpus is embedded and upserted again every month. Pinecone bills writes by request KB with a 5-unit minimum, so batching 100 records cuts the per-record cost sharply. Qdrant and Supabase include writes; the embedding API bill still applies to all four.","zh":"每月 5% 的更新率意味着 5% 的语料要重新 embedding 并 upsert。Pinecone 按请求 KB 收写单元、每请求最低 5 units，所以把 100 条合并成一批能显著摊薄单条成本。Qdrant 与 Supabase 不收写入费，但四个方案的 embedding API 账单都照付。"}},{"title":{"en":"Compare first month, recurring and 36-month payback","zh":"同时看首月、月账单与 36 个月回本"},"body":{"en":"The first month includes the full index build; later months include only the change rate. Migration hours are a one-time cost in the self-hosted column, and ops hours recur. The verdict compares 36-month TCO, then shows the payback month only when self-hosting actually wins after engineering time.","zh":"首月包含全量建索引；之后每月只算更新比例。迁移工时是自托管的一次性成本，运维工时每月重复。诊断先比较 36 个月总成本，只有在把工时算进去后自托管仍更便宜时，才给出回本月份。"}}],"faq":[{"q":{"en":"Is Pinecone’s free tier enough for production?","zh":"Pinecone 免费额度能直接上生产吗？"},"a":{"en":"Starter includes up to 2 GB storage, 2 million writes and 1 million reads per month, with 5 indexes and no SLA. It is fine for a prototype or an internal wiki. The calculator switches to Builder at $20/month when the workload exceeds those caps, and to Standard with a $50 minimum when storage passes 10 GB or reads pass 2 million.","zh":"Starter 含 2 GB 存储、每月 200 万写单元与 100 万读单元，最多 5 个索引，没有 SLA。原型或内部知识库够用。负载超过额度后，计算器会切到每月 $20 的 Builder；存储超过 10 GB 或读单元超过 200 万时，切到最低 $50 的 Standard。"}},{"q":{"en":"Why is Qdrant Cloud priced by RAM instead of queries?","zh":"Qdrant Cloud 为什么按内存而不是按查询计费？"},"a":{"en":"HNSW keeps the vector graph and payload indexes in memory, so RAM is the binding resource. Qdrant sizes a cluster from vectors × dimensions × 4 bytes × 1.5 for the HNSW graph, then rounds up to its node sizes. Queries are included, which makes the bill predictable when traffic spikes.","zh":"HNSW 把向量图与 payload 索引放在内存里，所以内存才是刚性资源。Qdrant 按「向量数 × 维度 × 4 bytes × 1.5（HNSW 开销）」估算，再向上取节点规格。查询不再单独收费，流量尖峰时账单仍然可预测。"}},{"q":{"en":"When should I use pgvector instead of a dedicated vector database?","zh":"什么时候该用 pgvector，而不是独立向量数据库？"},"a":{"en":"Below roughly 500,000 vectors and 20,000 queries/day, a separate cluster is usually over-engineering. If you already run Postgres, pgvector avoids a second backup, auth and monitoring stack. The calculator prices Supabase Pro with the compute tier that can hold the index, so you can see the exact upgrade point.","zh":"向量少于约 50 万、每天查询少于 2 万次时，独立集群通常是过度设计。如果已经有 Postgres，pgvector 省掉第二套备份、鉴权与监控。计算器会按装得下索引的计算实例报价 Supabase Pro，能直接看到升级阈值。"}},{"q":{"en":"Do I really need 3072-dimension embeddings?","zh":"真的需要 3072 维 embedding 吗？"},"a":{"en":"For most RAG, 1536 dimensions are enough; 3072 dimensions double vector memory and cost 6.5× more per token. If you need the extra recall, Matryoshka truncation to 1024 dimensions usually keeps most of it while cutting the Qdrant RAM bill sharply. The verdict banner shows the saving for your current inputs.","zh":"多数 RAG 用 1536 维就够；3072 维让向量内存翻倍，token 单价也贵 6.5 倍。如果确实需要更高召回，用 Matryoshka 截断到 1024 维通常能保留大部分效果，同时显著降低 Qdrant 内存账单。诊断条会按当前输入给出节省比例。"}},{"q":{"en":"What costs are not included?","zh":"哪些成本没有算进去？"},"a":{"en":"Tax, egress beyond the included allowance, multi-region replication, object-storage backups, enterprise discounts and the LLM tokens that read the retrieved chunks. The calculator isolates the vector layer so you can add those separately; the token and agent-loop calculators cover the generation side.","zh":"税费、超出额度的出口流量、多区域副本、对象存储备份、企业折扣，以及读取检索结果的 LLM token 都没有算。计算器只隔离向量层，方便你另外叠加；生成侧请用 token 与 Agent 死循环计算器。"}},{"q":{"en":"How accurate is the result?","zh":"结果有多准？"},"a":{"en":"Prices are public list prices checked on the date shown, and every formula is exposed. Qdrant’s quote was verified against its official capacity calculator for 2, 8, 12, 20 and 96 GiB clusters. Your invoice can still differ with region, tier, reserved capacity or negotiated discounts, so treat this as a sizing model rather than a quote.","zh":"价格是核对日期当天的公开列表价，每条公式都公开。Qdrant 报价已用其官方容量计算器在 2、8、12、20、96 GiB 规格上核对。实际账单仍会因区域、档位、预留容量或协议折扣不同，因此这是选型测算，不是报价单。"}}],"sources":[{"label":"Pinecone — Pricing (storage, read/write units)","url":"https://www.pinecone.io/pricing/"},{"label":"Pinecone — Understand cost (unit formulas)","url":"https://docs.pinecone.io/guides/cost/understand-cost"},{"label":"Qdrant — Cloud pricing","url":"https://qdrant.tech/pricing/"},{"label":"Qdrant — Capacity & pricing calculator","url":"https://cloud.qdrant.io/calculator"},{"label":"Supabase — Pricing (Pro, compute, disk)","url":"https://supabase.com/pricing"},{"label":"Hetzner — Cost-optimized cloud servers","url":"https://www.hetzner.com/cloud/cost-optimized/"},{"label":"OpenAI — API pricing (embedding models)","url":"https://developers.openai.com/api/docs/pricing"},{"label":"pgvector — Official repository","url":"https://github.com/pgvector/pgvector"}],"localized":{"en":{"url":"https://www.sogoh.com/tools/vector-db-rag-cost-calculator/"},"zh":{"url":"https://www.sogoh.com/zh/tools/vector-db-rag-cost-calculator/"}},"license":"Free to reuse with attribution and a link to the source page."}