COST GUIDE
RAG Implementation Cost (2026)
A RAG proof of concept costs about $5,000–$15,000, and a production knowledge assistant about $12,000–$30,000 with an India-based team; 2026 guides from US and European vendors put production builds at $30,000–$120,000 and enterprise platforms at $70,000–$300,000+. In our worked example, running costs are about $282 a month at 5,000 queries, $1,222 at 50,000 and $9,159 at 500,000 on a mid-priced model, before upkeep. The LLM is 27–82% of that bill, so model choice and context size matter more than the vector database.
16 min read
Updated November 2026. Retrieval-augmented generation (RAG) lets an LLM answer from your own documents. The system splits documents into chunks, turns each chunk into an embedding, stores the embeddings in a vector database, finds the chunks closest to each question, and sends them to the LLM with the question. You pay once to build that pipeline and every month to run it.
This guide prices both. Every vendor price comes from the vendor’s own pricing page, read on 18 November 2026, and every step of the worked example shows its arithmetic, so you can replace our assumptions with your own numbers. All sources are listed at the end. For agents that do more than answer questions, see our AI agent development cost guide.
Short Answer: What RAG Costs in 2026
| Cost | Typical range | What decides where you land |
|---|---|---|
| Proof of concept | $5,000 – $15,000 | One data source, a test set of real questions, no production hardening |
| Production build (India-based team) | $12,000 – $30,000 for a knowledge assistant | Number of sources, document types, access control, integrations |
| Production build (most published 2026 guides) | $30,000 – $120,000 | Same drivers, at US and European rates |
| Enterprise platform (published 2026 guides) | $70,000 – $300,000+ | SSO, permission sync, audit logs, multi-tenant, compliance |
| Monthly running cost (our example) | $282 – $9,159 | Queries per month, LLM price, context size per query |
| Upkeep | 10–30% of build cost per year | How often documents, prompts and models change |
- Build cost is mostly data work. Parsing PDFs and tables, cleaning, chunking and permission sync take more time than the LLM integration.
- Running cost is mostly tokens at scale. Each query sends the retrieved chunks to the LLM. The size of that context, times the model price, times the number of queries, is the largest line once you pass a few thousand queries a month.
- Embeddings and vector storage are small. In our example they cost $50 to $145 a month together, from 5,000 to 500,000 queries.
Build Cost by RAG Type
Most cost guides sort RAG by size. Sorting by what the system must do is more useful, because each type adds specific work. The India-based team column uses the figures in our AI development cost in India guide and AI agent cost guide. The published-range column comes from the five 2026 RAG cost guides listed in Sources; for agentic RAG it is the all-regions range for agents with tool use from our agent cost guide.
| RAG type | What it includes | India-based team | Published range (US/EU vendors) | Timeline |
|---|---|---|---|---|
| Document Q&A | One source (for example a folder of PDFs), chunking, embeddings, vector search, a chat UI with citations | $5,000 – $12,000 | $7,500 – $40,000 | 3–8 weeks |
| Knowledge assistant (multi-source) | 3–5 sources such as SharePoint, Confluence and Drive, hybrid search, reranking, role-based access, Slack or Teams | $12,000 – $30,000 | $30,000 – $120,000 | 6–16 weeks |
| Enterprise knowledge platform | 5–15 sources, SSO, document-level permission sync, audit logs, admin dashboard, multi-language, SLA | $30,000 – $75,000+ | $70,000 – $300,000+ | 3–6 months |
| Agentic RAG | An agent plans several searches, calls tools or APIs, checks its own answer and asks a person when unsure | $15,000 – $35,000 per workflow agent | $8,000 – $180,000 (agents with tool use) | 6–20 weeks |
Where the build budget goes:
- Ingestion and data preparation. RaftLabs puts data preparation at 20–30% of build time; Stratagem Systems puts data cleaning at 30–50% of project cost; ZTABS prices ingestion and processing at $9,500–$43,000, its largest variable line. The sources disagree on the share, but all three name it as the largest variable.
- Retrieval pipeline. ZTABS prices it at $13,000–$37,000. Stratagem Systems itemises custom chunking ($2,000–$5,000), hybrid search ($1,500–$3,000), metadata filtering ($1,000–$2,500) and prompt engineering ($1,800–$3,600).
- Access control. Ortem Technologies prices a role-based access layer at $8,000–$12,000 in its mid tier, and a Slack or Teams bot at $5,000–$8,000.
- Agentic RAG costs more per query too. An agent makes several retrieval and model calls for each question, so plan for two to five times the tokens of a single-call RAG query, and test that each extra step improves answers.
How Published Estimates Compare
The top-ranking RAG cost guides agree on the drivers but not on the numbers. The gaps come from team rates, what each tier includes, and whether people costs sit inside the monthly figure.
| Source | Simple build | Production build | Enterprise build | Monthly running cost |
|---|---|---|---|---|
| RaftLabs (Aug 2025) | $12,000 – $30,000 | $30,000 – $60,000 | $70,000 – $120,000+ | $300 – $2,500; $400 – $800 at 10,000 queries |
| ZTABS (Mar 2026) | $15,000 – $40,000 | $40,000 – $120,000 | $120,000 – $300,000+ | $200 – $800 basic; $3,000 – $15,000+ enterprise |
| Ortem Technologies (Apr 2026) | $15,000 – $25,000 | $40,000 – $80,000 | $80,000 – $150,000+ on-premises | $300 – $800 simple; $2,000 – $8,000 on-premises |
| Stratagem Systems (Oct 2026) | $7,500 – $13,200 | $15,700 – $27,000 | $34,400 – $58,000 | $650 – $1,750 small; $8,100 – $19,500 enterprise |
| AlphaCorp AI (Mar 2026) | Cites Stratagem’s ranges | Cites Stratagem’s ranges | Cites Stratagem’s ranges | Cites $14,000 – $27,000 for enterprise, with engineering |
None of these guides prices evaluation, shows per-query token arithmetic at more than one volume, or prices compliance add-ons from vendor rate cards. The rest of this guide fills those gaps.
Running Cost Components and Vendor Prices
LLM tokens
| Model | Input per 1M tokens | Cached input | Output per 1M tokens |
|---|---|---|---|
| OpenAI GPT-6.2 Sol | $2.00 | $0.10 | $10.00 |
| OpenAI GPT-6.1 Terra | $1.00 | $0.05 | $5.00 |
| OpenAI GPT-5.4 Mini | $0.75 | $0.075 | $4.50 |
| OpenAI GPT-6 Luna | $0.10 | $0.01 | $0.50 |
| Anthropic Claude Sonnet 5.5 | $2.00 | $0.10 (cache hit) | $10.00 |
| Anthropic Claude Haiku 5.5 (prompts up to 100K tokens) | $0.10 | $0.01 (cache hit) | $0.50 |
- Batch jobs are 50% off at both OpenAI and Anthropic. Use batch for ingestion tasks such as summaries or metadata extraction, and for evaluation runs.
- Anthropic charges $2.50 per 1M tokens for 5-minute cache writes on Claude Sonnet 5.5. Claude Haiku 5.5 prompts over 100,000 tokens cost $0.50 input and $2.50 output per 1M tokens.
- Anthropic states that its newer tokenizer (Claude 4.7 and later) produces about 30% more tokens for the same text, so compare cost per answer, not price per token.
Embeddings and reranking
| Model | Price per 1M tokens | Notes |
|---|---|---|
| OpenAI text-embedding-3-small | $0.02 | Batch 50% off |
| OpenAI text-embedding-3-large | $0.13 | 6.5× the small model |
| Voyage voyage-4-lite | $0.02 | 200M free tokens |
| Voyage voyage-4 | $0.06 | 200M free tokens |
| Voyage voyage-4-large / voyage-context-4 | $0.12 | 200M free tokens |
| Voyage rerank-3-lite (reranker) | $0.02 | 200M free tokens |
| Voyage rerank-3 (reranker) | $0.05 | 200M free tokens |
Voyage’s free tokens do not apply to its Batch API, which is 33% off instead. A reranker reads every candidate chunk for every query, so at volume it costs far more than embeddings: 50 candidates of 500 tokens is 25,000 tokens a query.
Vector database tiers
| Option | Entry price | Usage pricing | Compliance notes |
|---|---|---|---|
| Pinecone Starter | Free | 2 GB storage, 2M write units, 1M read units a month | For pilots |
| Pinecone Builder | $20 a month flat | 10 GB storage included | — |
| Pinecone Standard | $50 a month minimum | $0.33 per GB a month; writes $4–$4.50 and reads $16–$18 per 1M units | HIPAA add-on $190 a month |
| Pinecone Enterprise | $500 a month minimum | Writes $6–$6.75 and reads $24–$27 per 1M units | HIPAA included |
| Weaviate Flex | From $45 a month | From $0.00465 per 1M vector dimensions; storage from $0.12 per GiB | HIPAA on Enterprise Cloud (AWS); SOC 2 Type II |
| Qdrant Cloud | Free 1 GB RAM node | Usage-based: vCPU, memory, storage, backups | Lists SOC 2, GDPR and HIPAA |
| Supabase (Postgres + pgvector) | Pro from $25 a month | 8 GB disk included; extra disk $0.125 per GB | HIPAA add-on on Team ($599+) and Enterprise only |
Pinecone bills a query at 1 read unit per GB of namespace size, with a minimum of 0.25, and an upsert at 1 write unit per KB, with a minimum of 5. Storage per record is the ID plus metadata plus 4 bytes per vector dimension. So a 1,536-dimension vector with 2,000 bytes of chunk text and metadata is about 8.1 KB.
Hosting, monitoring and re-indexing
- Hosting: the API, ingestion workers and the chat front end. This depends on your cloud and uptime needs; our example uses stated assumptions.
- Monitoring: Langfuse Core costs $29 a month with 100,000 units, then $8 per 100,000 units, falling to $7 from 1M units. Pro costs $199 a month and offers a BAA.
- Re-indexing: re-embedding is cheap. A full re-index of 1 billion tokens costs 1,000 × $0.02 = $20 on text-embedding-3-small, plus 2M records × 8 KB = 16M write units × $4 per 1M = $64 on Pinecone Standard. The real cost of a re-index, or of a switch to a new embedding model, is the engineering time and the evaluation run that proves answers did not get worse.
Worked Example: Monthly Cost at 3 Volumes
Assumptions (change any of them to match your case):
- Documents average 2,000 tokens. Small: 5,000 documents and 5,000 queries a month. Medium: 50,000 and 50,000. Large: 500,000 and 500,000.
- Chunks of 500 tokens, embedded with text-embedding-3-small (1,536 dimensions). Each chunk record is about 8,144 bytes (6,144 for the vector plus 2,000 for text and metadata). 10% of documents change each month and are re-embedded.
- Each query: a 50-token query embedding; 50 candidate chunks reranked with Voyage rerank-3-lite (25,000 tokens); one LLM call with 5,500 input tokens (1,000 instructions, 8 chunks × 500, 500 for the question and history) and 400 output tokens.
- Model: Claude Sonnet 5.5 at $2 input and $10 output per 1M tokens (GPT-6.2 Sol has the same list price). No caching, no batch discount.
- Vector database: Pinecone Standard at the low end of its price ranges. Monitoring: Langfuse Core, 3 units per query.
- Hosting is our assumption, not a vendor price: $100, $300 and $1,000 a month. Upkeep is 15% of an assumed build cost of $12,000, $30,000 and $75,000 per year.
| Line item | Small (5,000 queries) | Medium (50,000 queries) | Large (500,000 queries) |
|---|---|---|---|
| LLM tokens | $75.00 | $750.00 | $7,500.00 |
| Embeddings (re-index + queries) | $0.03 | $0.25 | $2.50 |
| Vector database (Pinecone Standard) | $50.00 (minimum) | $50.00 (minimum) | $142.08 |
| Reranking | $2.50 | $25.00 | $250.00 |
| Monitoring (Langfuse) | $29.00 | $33.00 | $136.00 |
| Evaluation runs | $25.60 | $64.00 | $128.00 |
| Hosting (assumption) | $100.00 | $300.00 | $1,000.00 |
| Infrastructure and tokens | $282.13 | $1,222.25 | $9,158.58 |
| Upkeep (15% of build a year) | $150.00 | $375.00 | $937.50 |
| Monthly total | $432.13 | $1,597.25 | $10,096.08 |
| Infrastructure cost per query | $0.056 | $0.024 | $0.018 |
How each line is calculated:
- LLM: per query, 5,500 × $2 ÷ 1M = $0.011 input plus 400 × $10 ÷ 1M = $0.004 output = $0.015. Then 5,000 × $0.015 = $75; 50,000 × $0.015 = $750; 500,000 × $0.015 = $7,500.
- Embeddings: the corpus is 10M, 100M and 1B tokens. Re-embedding 10% costs 1M, 10M and 100M tokens × $0.02 per 1M = $0.02, $0.20 and $2.00. Query embeddings add queries × 50 tokens = 0.25M, 2.5M and 25M tokens = $0.005, $0.05 and $0.50. The one-time first index costs $0.20, $2 and $20.
- Vector database: corpus tokens ÷ 500 = 20,000, 200,000 and 2,000,000 chunks. At 8,144 bytes each, that is 0.16 GB, 1.63 GB and 16.29 GB. Large: storage 16.29 × $0.33 = $5.38; reads 16.29 read units × 500,000 queries = 8.14M × $16 per 1M = $130.30; writes 200,000 changed chunks × 8 KB = 1.6M write units × $4 per 1M = $6.40; total $142.08. Small and medium use less than $3 of usage, so the $50 minimum applies.
- Reranking: queries × 25,000 tokens = 125M, 1.25B and 12.5B tokens × $0.02 per 1M = $2.50, $25 and $250. The first 200M tokens are free, so the small case is close to $0 in its first months.
- Monitoring: 15,000 units fit inside Core’s 100,000 ($29). 150,000 units = $29 + 0.5 × $8 = $33. 1.5M units = $29 + 9 × $8 (to 1M) + 5 × $7 = $136.
- Evaluation: a test set of 200, 500 and 1,000 questions, run 4 times a month. Each test is one RAG call ($0.015) plus a judge call of 7,000 input and 300 output tokens ($0.014 + $0.003 = $0.017) = $0.032. So 800 × $0.032 = $25.60; 2,000 × $0.032 = $64; 4,000 × $0.032 = $128.
What the example shows
- The LLM grows from 27% to 82% of the bill ($75 of $282.13, $750 of $1,222.25, $7,500 of $9,158.58).
- Model choice is the largest lever. On Claude Haiku 5.5 ($0.10 input, $0.50 output), a query costs 5,500 × $0.10 ÷ 1M + 400 × $0.50 ÷ 1M = $0.00075. The infrastructure totals fall to $210.88, $509.75 and $2,033.58. Test answer quality before you switch.
- Reranking is worth more than it costs. At medium volume it costs $25. If it lets you send 5 chunks instead of 8, input falls by 1,500 tokens a query: 50,000 × 1,500 × $2 ÷ 1M = $150 saved.
- Fixed costs dominate small systems. At 5,000 queries, the vector database minimum, monitoring, evaluation and hosting are $204.60 of $282.13, or 73% of the bill.
Accuracy and Evaluation Cost
A RAG system that finds the wrong chunk gives a confident wrong answer. Evaluation is how you find out before your users do, and it is the line most cost guides leave out. Budget for three parts:
- A test set (people time). Subject-matter experts write 100–1,000 real questions with the correct answer and the source document. This is days of expert time, and it costs more than the tokens to run it.
- Automated runs (tokens). Each run checks retrieval (did the right chunk come back in the top results?), faithfulness (is every claim supported by the retrieved text?), answer correctness and citation accuracy. An LLM judge scores the answers. In our example this costs $25.60 to $128 a month.
- Human review (people time). A person checks a sample of live answers each week and adds failures to the test set.
Run the full test set after every change to chunking, embeddings, prompts or the model. AlphaCorp AI reports a case where adding a reranker raised accuracy from 73% to 91% and added 300 ms of latency; you only see trade-offs like that if you measure them.
Security and Compliance Cost
Regulated data changes both the build and the monthly bill. ZTABS puts the build cost of HIPAA, SOC 2 or GDPR work at $10,000–$50,000. On the monthly side, the vendor rate cards show exactly where the extra cost appears:
| Requirement | What it costs (list price) | Notes |
|---|---|---|
| HIPAA on Pinecone | +$190 a month on Standard; included on Enterprise ($500 minimum) | Needed before PHI goes into the index |
| HIPAA on Supabase (pgvector) | Paid add-on on Team (from $599 a month) or Enterprise | Not on Free or Pro |
| HIPAA on Weaviate | Enterprise Cloud on AWS | Not listed for the Flex plan |
| BAA for tracing | Langfuse Pro $199 a month (Core is $29) | Traces hold questions, chunks and answers |
| US-only inference (Claude) | 1.1× all token prices on Claude 4.6 and later | Global routing is the default |
Example: for the medium case with PHI, add $190 (Pinecone HIPAA) + $170 (Langfuse Pro instead of Core) = $360 a month. With US-only Claude inference, the LLM line rises from $750 to $825, so the total increase is $435 a month, before your LLM provider’s own BAA terms.
- Permissions must follow the documents. Filter retrieval by the user’s rights in the source system, not in the prompt. A chunk the user may not see must never reach the LLM.
- Every copy of the data counts. The vector database, the tracing tool, logs, caches and the LLM provider all hold your content. Each needs its own agreement and retention setting.
- Plan deletion. When a source document is deleted, its chunks must leave the index too. Build that into the sync job from day one.
Build vs Managed RAG
Managed services do the chunking, embedding and retrieval for you. You still pay for model tokens, and you still need evaluation and access control around them.
| Option | List price | Medium case (50,000 queries) | Trade-off |
|---|---|---|---|
| OpenAI file search | Storage $0.10 per GB a day (1 GB free); $2.50 per 1,000 tool calls | 50 × $2.50 = $125, plus (1.63 − 1) GB (our index size) × $0.10 × 30 = $1.89: about $127 + tokens | Fast to start; less control of chunking and ranking; tied to one model vendor |
| Amazon Bedrock Knowledge Bases (managed) | $5 per GB of raw data a month; $1 per 1,000 retrieve calls; agentic retrieval $4 per 1,000 plus $1 per 1,000 underlying calls | 50 × $1 = $50, plus 10 GB raw (our assumption) × $5 = $50: about $100 + tokens | Parsing, embeddings and reranking included with managed defaults; stays in your AWS account |
| Pinecone Assistant | $8 per 1M input tokens, $15 per 1M output tokens (Standard) | Depends on tokens billed per query | Managed chat over files; check how context tokens are counted |
| Custom build | Vector database + embeddings + reranker + your pipeline | $50 + $0.25 + $25 = $75.25, plus hosting and tokens | Full control of chunking, permissions, evaluation and model choice; you own upkeep |
At this volume the retrieval layer costs about the same on every path. The decision rests on four questions: do you need document-level permissions from your own systems, do you need to choose and switch models, must the data stay in a specific cloud or region, and can you run evaluation on the managed service’s output? If the answer to all four is no, start managed.
Verdict by Scenario
| Scenario | Verdict | Why |
|---|---|---|
| Internal FAQ over a small, stable handbook (under about 100,000 tokens) | Try long context with prompt caching first | Cached reads at $0.10 per 1M make the whole handbook about $0.01 a query on Claude Sonnet 5.5, plus cache writes; no index to maintain |
| Team assistant over one document store, no regulated data | Managed RAG (OpenAI file search or Bedrock Knowledge Bases) | Lowest build cost; retrieval costs about the same as custom at 50,000 queries |
| Company-wide assistant over several sources with permissions | Custom knowledge assistant | Permission sync, hybrid search and evaluation need control a managed tool rarely gives |
| Healthcare, legal or finance data | Custom build in your own cloud, HIPAA-capable tiers | Every store of the data needs a BAA or equivalent; budget about $435 a month extra in our medium case |
| Customer-facing chatbot at 500,000+ queries a month | Custom build with model routing and caching | Tokens are 82% of the bill; a cheaper model for easy questions saves the most |
| Research tasks that need several searches and tool calls | Agentic RAG, after a single-call baseline | Several calls per question; prove the extra steps raise accuracy on your test set |
How to Cut RAG Cost
- Route by difficulty. Send easy questions to a small model such as Claude Haiku 5.5 or GPT-6 Luna ($0.10 input, $0.50 output) and hard ones to a larger model. In our example the small model is 20× cheaper per query.
- Send fewer, better chunks. Rerank, then send the top 5 instead of the top 8. That saves $150 a month at 50,000 queries in our example.
- Cache the fixed prefix. On Claude Sonnet 5.5, a cache hit costs $0.10 per 1M instead of $2. Caching the 1,000-token instruction block saves about 1,000 × $1.90 ÷ 1M = $0.0019 a query, or about $95 a month at 50,000 queries, before cache writes.
- Batch everything that can wait. OpenAI and Anthropic batch pricing is 50% off; Voyage batch is 33% off. Use it for ingestion, enrichment and evaluation runs.
- Re-index only what changed. Hash each document and re-embed only changed ones. Pinecone charges for every write unit.
- Split large indexes into namespaces. Pinecone bills 1 read unit per GB of the namespace you query. Querying a 1.6 GB namespace per department instead of one 16 GB index cuts read cost by about 10×.
- Use the Postgres you already have. If you run Postgres, pgvector avoids a second database. Supabase Pro starts at $25 a month with 8 GB of disk.
- Start with a pilot. Prove retrieval quality on one source and a real test set before you connect every system.
RAG Budget Checklist
Before you ask for quotes, know:
- Number of documents, average length, file types (scanned PDFs and tables cost more to parse)
- Number of source systems and how often their content changes
- Expected queries per month at launch and in 12 months
- Who may see which documents, and where those permissions live today
- Compliance terms: HIPAA, GDPR, SOC 2, data residency, retention
- Who will write and own the test set of real questions
Ask every vendor for:
- A line-by-line monthly running cost at your volume, with token counts per query
- How they measure retrieval and answer quality, and the target scores before launch
- How permissions are enforced at retrieval time, and how deletions reach the index
- What a re-index or a model switch costs in time and money
- Who owns the code, the prompts, the test set and the index
For a wider vendor checklist, see how to choose an AI development company. To model your own numbers, use our AI cost calculator.
How CognyX Builds RAG Systems
CognyX is an enterprise-grade, AI-native AI development company that builds bespoke AI systems for enterprises, with 110+ projects delivered. We build RAG systems with the cost model in this guide: we measure tokens per query, set a test set with the client’s experts, and choose models and the vector store by cost per correct answer. The architecture is HIPAA, GDPR and SOC 2 ready and aligned with ISO 27001, and CognyX signs a BAA with healthcare clients. A pilot takes 2 to 6 weeks; production takes a further 6 to 12 weeks. Pilots start from $10,000.
In one published project, we built a RAG system for a legal tech company that indexes 50,000+ legal documents and lets lawyers query case law in natural language with cited references. Research time fell by 70%. Read the legal RAG case study, the AI legal research assistant use case, and how we approach generative AI development and AI chatbot development.
Want a RAG cost model for your own data?
In a free 30-minute architecture review, we look at your documents, sources, query volume and compliance terms, and give you a build estimate and a monthly running-cost model at your volume. You own the code and IP, and an NDA applies from day one.
Discuss your RAG build
30 minutes with our AI engineers: your data, the right RAG type, and what it will cost to build and run.
- [email protected]
- Phone
- +91 99748 12447
- Chat on WhatsApp
Frequently Asked Questions
How much does it cost to implement RAG?
A proof of concept costs about $5,000 to $15,000. A production knowledge assistant costs about $12,000 to $30,000 with an India-based team, and published 2026 guides from US and European vendors put production builds at $30,000 to $120,000 and enterprise platforms at $70,000 to $300,000 or more. The number of data sources, access control and compliance explain most of the difference.
How much does a RAG chatbot cost per month to run?
In our worked example on a mid-priced model, infrastructure and tokens cost about $282 a month at 5,000 queries, $1,222 at 50,000 queries and $9,159 at 500,000 queries. Upkeep of about 15% of the build cost per year adds $150 to $938 a month. On a low-cost model such as Claude Haiku 5.5, the same three totals fall to about $211, $510 and $2,034.
What is the biggest running cost in a RAG system?
At low volume, fixed costs lead: the vector database minimum, monitoring, evaluation runs and hosting. As volume grows, LLM tokens take over. In our example the LLM is 27% of the bill at 5,000 queries, 61% at 50,000 and 82% at 500,000. Embeddings cost cents to a few dollars a month at every size we modelled.
How much does the vector database cost?
Less than most teams expect. Pinecone Standard has a $50 monthly minimum, storage at $0.33 per GB a month and reads from $16 per million read units. Weaviate Flex starts at $45 a month. Supabase Pro, with pgvector on Postgres, starts at $25 a month with 8 GB of disk. In our example, 2 million chunks on Pinecone cost about $142 a month at 500,000 queries.
Is a managed RAG service cheaper than building one?
Sometimes, at the retrieval layer. At 50,000 queries a month, OpenAI file search costs about $127 for tool calls and storage, and Amazon Bedrock Knowledge Bases about $100 if your raw data is 10 GB. A custom stack in our example costs about $75 for the vector database, reranking and embeddings, plus hosting. Model tokens cost the same either way, so choose on control of chunking, permissions, evaluation and lock-in.
How long does it take to build a RAG system?
Published 2026 guides give 3 to 8 weeks for a simple document Q&A system, 8 to 16 weeks for a production multi-source system and 4 to 6 months for an enterprise platform. A RAG knowledge assistant with an India-based team takes about 6 to 10 weeks. Data preparation is the usual cause of delay.
Do I need RAG, or can I put all my documents in the prompt?
For a small, stable corpus, a long prompt with caching can compete. A 100,000-token handbook costs $0.20 a query on Claude Sonnet 5.5 without caching, and about $0.01 a query when it is read from the cache at $0.10 per million tokens, plus cache writes. RAG costs less as the corpus grows, when documents change often, or when users may only see some documents.
Sources
All pages checked on 18 November 2026. Prices are list prices in US dollars and can vary by cloud and region. Build ranges for an India-based team come from our AI development cost in India guide and AI agent cost guide.
LLM and embedding prices
- OpenAI, API pricing (read 18 Nov 2026)
- Anthropic, Claude API pricing (read 18 Nov 2026)
- Voyage AI, Pricing (read 18 Nov 2026)
Vector databases and managed retrieval
- Pinecone, Pricing (read 18 Nov 2026)
- Pinecone, Understanding cost (read 18 Nov 2026)
- Weaviate, Pricing (read 18 Nov 2026)
- Qdrant, Pricing (read 18 Nov 2026)
- Supabase, Pricing (read 18 Nov 2026)
- Amazon Web Services, Amazon Bedrock pricing (read 18 Nov 2026)
Monitoring
Published RAG cost guides
- RaftLabs, How much does RAG development cost? (published 3 Aug 2025; read 18 Nov 2026)
- ZTABS, RAG system development cost (updated 4 Mar 2026; read 18 Nov 2026)
- Ortem Technologies, Enterprise RAG implementation cost 2026 (25 Apr 2026; read 18 Nov 2026)
- Stratagem Systems, RAG implementation cost (updated 10 Oct 2026; read 18 Nov 2026)
- AlphaCorp AI, How much does a RAG system cost? (17 Mar 2026; read 18 Nov 2026)
Prices are as read on 18 November 2026 and change often; check the linked sources before you decide.
Related Guides
Price ranges by project type, hourly rates, and what drives the cost of an AI build.
AI Agent Development Cost (2026)Build cost by agent type, monthly running costs, India vs US rates, and a worked example.
How to Choose an AI Development CompanyA 15-point evaluation checklist and scorecard for shortlisting AI vendors.
Top AI Development Companies in India (2026)Indian AI development firms ranked on AI focus, production work, reviews, and scale.
Top AI Companies in Ahmedabad (2026)AI development firms in Ahmedabad ranked on AI focus, production work, rates, and reviews.
Top AI Companies in Gujarat (2026)AI service companies across Ahmedabad, Gandhinagar, Surat, Vadodara, and Rajkot.
n8n vs Zapier vs Make (2026)Head-to-head comparison of the three automation platforms for AI workflows.
LangGraph vs CrewAI vs OpenAI Agents SDK (2026)Which agent framework to use in production: state, human approval, tracing, and cost.
Vapi vs Retell AI vs ElevenLabs (2026)Voice AI agent platforms compared: per-minute cost, concurrency, telephony, and HIPAA terms.
AI Voice Agent Cost per Minute (2026)What one call minute costs by component and platform, with bills at 1,000, 10,000 and 50,000 minutes.
AI Chatbot Development Cost (2026)Build cost by chatbot type, SaaS vs custom, token and WhatsApp running costs at 1K, 10K and 100K chats.
Build vs Buy AI Agents (2026)A 7-factor scorecard, 3-year cost with Fin, Zendesk and Agentforce prices, break-even volume and verdicts by scenario.
AI Agent Security Checklist (2026)40 pass/fail controls for enterprise AI agent vendor review, mapped to OWASP, NIST AI RMF, HIPAA, GDPR and the EU AI Act.
n8n Automation Cost (2026)n8n Cloud and self-hosted pricing, server and AI token costs, and build cost at 10K to 1M executions.
AI Agent Cost Index 2026Original dataset: build-cost medians from 38 published guides in 5 categories, running-cost snapshot and free CSV.