Blog 11 min read

Estimate vector database cost for RAG

Method for teams pricing a RAG or semantic-search feature: size storage from chunks × dimensions × 4 bytes plus metadata, split writes from reads, watch plan minimums and free-tier caps, find the break-even between usage-based and fixed-fee plans, and add embedding and LLM cost for the full bill, with dated Pinecone and Upstash Vector examples.

When a B2B team prices a RAG or semantic-search feature, the embedding model and the LLM get most of the attention. The vector database is often the line item nobody models. Its bill depends on how much you store, how often you write, how often you query, and whether a plan minimum or a fixed fee applies.

This is a method article. It shows how to size storage, split writes from reads, check plan floors and free-tier caps, find the break-even between usage-based and fixed-fee plans, and then add embedding and LLM cost to get the full RAG bill. No vendor is recommended. All dollar figures are illustrative and based on public list prices seen on 2026-11-01 (Pinecone's and Upstash Vector's pricing pages). Prices, units and limits change often, so re-check each vendor's current pricing page before you decide.

1. Step 1: size storage from chunks, dimensions and metadata

A dense vector stored as 32-bit floats takes 4 bytes per dimension. Add the metadata you keep next to each vector (source ID, title, ACL tags, sometimes the chunk text itself):

Storage (GB) ≈ vectors × (dimensions × 4 bytes + metadata bytes) ÷ 1,000,000,000

Worked example (illustrative): 1M chunks × 1,024 dimensions × 4 bytes ≈ 4.1 GB raw. With about 500 bytes of metadata per chunk you add roughly 0.5 GB, so plan for about 4.6 GB. If you store the full chunk text as metadata (often 1–2 KB), storage can double. Index overhead, replicas, namespaces and backups can add more; check how your vendor counts them.

Count chunks, not documents. Chunk size and overlap decide how many vectors you create: 100,000 documents split into ten overlapping chunks each is already 1M vectors. Smaller embedding dimensions (or quantization, where supported) cut storage directly.

2. Step 2: split writes from reads

Most vector databases price writes and reads separately, so model them separately.

  • Writes = initial ingest + ongoing churn. Churn includes new and edited documents, deletes, and full re-embeds when you change embedding model or chunking. A re-embed rewrites every vector, so budget at least one per year.
  • Reads = queries per month × read cost per query. Include retries, multi-query rewriting, hybrid search and agent loops that call retrieval several times per user question.

Pinecone bills reads in read units (RU). The RUs a query consumes are workload-dependent: they vary with namespace size, top-k, metadata returned and filtering. Do not assume a fixed number. Read Pinecone's documentation on read-unit cost and measure RU per query on a sample of your own data; the query responses report usage. Write units (WU) likewise depend on record size. Request-based vendors such as Upstash Vector count each query or update as a request, which is easier to forecast.

3. Step 3: watch plan minimums and free-tier caps

Usage-based plans often carry a monthly floor. Dated list prices (2026-11-01, illustrative; re-check vendor pages):

PlanPrice shapeKey limits or rates
Pinecone StarterFree2 GB storage, 2M WU/mo, 1M RU/mo, single region
Pinecone Builder$20/mo flat10 GB, 5M WU/mo, 2M RU/mo
Pinecone StandardUsage, $50/mo minimumStorage $0.33/GB/mo; WU about $4–$4.50 per M; RU about $16–$18 per M (by region)
Pinecone EnterpriseUsage, $500/mo minimumStorage $0.33/GB/mo; higher WU/RU rates
Upstash Vector FreeFree10K queries + updates/day, 1 GB, up to 1,536 dims
Upstash Vector Pay-as-you-goUsage$0.40 per 100K requests; storage $0.25/GB; bandwidth free to 200 GB/mo
Upstash Vector Fixed$60/moHigh daily query/update limit (see vendor page)

Two rules: if computed usage is below the floor, you pay the floor; and a free tier is only free if storage, dimensions and daily request caps all fit. The 4.6 GB example above already exceeds both 1 GB and 2 GB free storage caps.

4. Step 4: compare usage-based vs fixed-fee and find the break-even

Price one workload on each plan. Illustrative workload: 4.6 GB stored, 300,000 queries/month, 100,000 updates/month.

  • Pinecone Standard: storage 4.6 × $0.33 ≈ $1.52. Suppose you measured 10 RU per query (an assumption for the arithmetic, not a vendor figure): 3M RU × $16/M ≈ $48. Writes, say 2M WU × $4/M ≈ $8. Total ≈ $57.50, just above the $50 minimum. At 5 RU per query, usage would be ≈ $33.50 and the $50 floor would apply.
  • Pinecone Builder: $20 flat, but 3M RU exceeds the 2M RU included, so this workload does not fit unless RU per query is lower.
  • Upstash PAYG: 400,000 requests × $0.40/100K ≈ $1.60, plus storage 4.6 × $0.25 ≈ $1.15. Total ≈ $2.75.
  • Upstash Fixed: $60.

Break-even between a fixed fee and a usage plan:

Break-even volume = (fixed fee − usage storage cost) ÷ usage price per request

For Upstash: ($60 − $1.15) ÷ $0.000004 ≈ 14.7M requests/month (about 490,000 per day). Below that, PAYG is cheaper on list price; above it, Fixed wins. For Pinecone, compare Builder's $20 against Standard usage while you stay inside Builder's included storage, WU and RU. Rerun the math whenever traffic, RU per query or vector count changes.

5. Step 5: add embedding and LLM cost for the full bill

The vector database is one of four line items:

Full RAG cost = embed (ingest + queries) + store + query (vector DB) + LLM generation

Line itemHow to estimateIllustrative monthly
Embed corpusTotal chunk tokens × embedding $/M tokens (one-off plus churn and re-embeds)1M chunks × 400 tokens = 400M tokens; at an assumed $0.10/M ≈ $40 once
Embed queriesQueries × query tokens × $/M300K × 30 tokens ≈ $1
Vector DBSteps 1–4≈ $3–$60 depending on plan
LLMQueries × (context + prompt tokens × input price + output tokens × output price)3,000 in + 300 out at assumed $0.50/$1.50 per M ≈ $0.002/query ≈ $585

In this example the LLM dominates and the vector database is small, but that ratio flips at large corpus sizes with low query volume, or when a plan minimum applies to a small feature. Divide the total by queries to get cost per query and by active accounts to get cost per customer, then compare with what the feature earns.

6. Checklist before you commit

  1. Count chunks (not documents) and choose embedding dimensions.
  2. Compute storage: vectors × (dims × 4 + metadata bytes).
  3. Forecast writes: ingest, churn and at least one re-embed per year.
  4. Forecast reads: queries × retrieval calls per query; measure RU per query where billing uses read units.
  5. Check plan minimums ($50 / $500 floors) and every free-tier cap.
  6. Price usage-based and fixed-fee plans and compute the break-even volume.
  7. Add embedding and LLM cost for the full per-query and monthly bill.
  8. Re-check every list price on the vendor's current pricing page before committing.

7. Calculators and related reading

Use these calculators to check current vector storage and query prices before you set a RAG budget.

Several vendors are listed on purpose. The aim is to compare billing shapes, not to pick a vendor in advance.

Related: B2B RAG stack cost modeling (embed, rerank, LLM) covers the rest of the pipeline. LLM API cost modeling for B2B features covers per-token modeling. Serverless GPU vs hourly GPU rental applies the same break-even method to GPUs.

Put AI features to work on your site

AI features pay off when they support clear product pages and buyer inquiries. If you want help with that, contact us or see how the platform fits.

Next step

Want a crawlable inquiry site for that topic?

Tell us the product, target market, and how many sites you need. We build English inquiry pages search engines and AI crawlers can read—then route buyer messages into one admin.