Example inputs: Illustrative supplied inputs: 5,000 queries/day over a 10M-token corpus, embedding $0.02 per 1M tokens and a full vector-store budget of $25/month. These two rates are assumptions; generation separately uses the reviewed anthropic/claude-sonnet-4-6 rate.
RAG pipeline: $2122.34/mo at 150,000 queries. Breakdown: embed $0.34, vector store $25.00, generation $2097.00. Cost/query: $0.0141. Dominant component: generation. Generation typically dominates RAG cost — a cheaper generator model is the lever with largest impact. Supplied-rate scenario: embedding $0.02/1M tokens and vector-store budget $25/month are user inputs, not verified provider tariffs. The vector budget must already include the plan minimum, storage, reads, writes and any other applicable charges. Only the selected generator uses a separately reviewed provider rate.
Example inputs — your own numbers will differ. This is a computed planning estimate, not a quote.
Enter workload quantities, your embedding price per million tokens and a complete monthly vector-store budget. Model Ruler combines those supplied assumptions with a separately reviewed generator price. The vector budget must already include its minimums, storage, reads, writes and other charges; no provider billing units or embedding dimensions are inferred.
Combines embedding, vector-store, retrieved-context, generation, and reindexing assumptions into one monthly RAG cost estimate.
Formula: monthly_rag_cost = monthly_embedding_cost + monthly_vector_store_cost + monthly_generation_cost
Audit coverage: RAG pipeline layers · Context growth
What does this calculator compute?
It adds initial embedding amortized over 12 months, monthly reindexing and query embeddings, your vector-store budget, and reviewed generator token charges. The result labels supplied assumptions separately and identifies the dominant layer.
What should I check before committing to a workload shape?
Cost splits across three stages — embedding generation, vector-store queries, and the generation model. One stage usually dominates; check whether re-embedding frequency, retrieved-chunk count, or generation token volume is the real driver before optimizing the others.
Is this a quote or a benchmark?
Neither — it is a computed estimate, not a vendor quote. The worked example above shows the numbers this calculator produces for a representative rag pipeline cost workload; your own inputs move the result.
Estimates combine pricing assumptions across the RAG stack: embedding generation, vector-store usage, retrieved-context size, and generation-model tokens. Each component can price differently, so verify embedding, vector database, and generator-model rates before committing to a production RAG design. Pricing may be stale — verify directly with the provider before contracts, production commitments, or budget approvals. View methodology.