POV | What We Believe, On the Record | Mactores

RAG System Cost: Bedrock, Vector Store and Per-Query Math

Written by Suraj Chaudhary | Dec 1, 2026, 5:28:27 PM

Key takeaways

  • RAG system cost has a build bill and a run bill, and the run bill is small per query. AWS lists standard retrieval on an Amazon Bedrock managed knowledge base at $1.00 per 1,000 calls, with parsing, embeddings and reranking included.
  • AWS's own example puts 50 GB and 100,000 queries a month at $350. The same workload on agentic retrieval comes to $850 in AWS's example, and model tokens are billed on top of both.
  • A self-run vector store can set a floor before the first query. An OpenSearch Serverless classic collection bills at least 2 OCUs at $0.24 per OCU-hour, about $350 a month, while S3 Vectors charges $0.06 per GB-month and $2.50 per million queries.
  • People time decides most of the budget. Our engineers find model tokens are usually the smaller share, and unbudgeted evaluation, reviewer time, reindexing and integration upkeep are where estimates fail.
  • Retrieval quality is a cost line. In the retrieval engagements we reviewed in 2024 and 2025, 70 percent of reported hallucinations were passages that had never been retrieved, so a larger model would not have fixed them.
  • Leaked permissions are the most expensive failure. IBM's 2026 study puts the average US data breach at a record $11.5 million, which is why permission-aware retrieval belongs in the build estimate.

RAG system cost usually gets quoted as a model invoice plus a vector database, and both are small next to the rest of the bill. The real budget covers data preparation, permissions, retrieval quality, security, evaluation and the engineering time it takes to keep answers trustworthy as your content changes.

This guide draws on Mactores delivery work on Amazon Bedrock, including the Sterne Kessler patent response system and the KlearTrust claims platform, and on the cost lines our forward-deployed engineers publish. We've built on AWS since 2008. AWS list prices were read from AWS pricing pages on December 1, 2026; they change, and some vary by Region, so check them again before a budget is signed.

What Does a RAG System Cost on AWS?

A production RAG system has two cost curves: what it costs to build and what it costs to run. The build is mostly people working on integration, permissions and evaluation, and the run is generation tokens, retrieval calls and the vector store.

Cost layer

What you pay for

How it is billed

What drives it

Discovery and data readiness

Source inventory, parsing rules, metadata, ownership

Engineering time

Number and quality of sources

Indexing and ingestion

Parsing, chunking, embeddings, refresh jobs

Managed: $5.00 per GB of raw data a month, parsing and embeddings included

Corpus size and update frequency

Retrieval

Hybrid search and reranking

Managed: $1.00 per 1,000 standard calls

Query volume and query type

Model generation

Context tokens and output tokens

Per million input and output tokens, set by the model

Passages sent and answer length

Security and compliance

SSO, entitlement sync, audit trail, residency

Engineering time, plus guardrail checks per 1,000 text units

Regulated data and tenant isolation

Evaluation and operations

Golden sets, monitoring, incident response

Engineering and reviewer time

Accuracy target and rate of change

Product integration

APIs, workflows, feedback capture

Engineering time

Number of user journeys

The billed lines are easy to price from AWS pricing pages. The lines billed as time are where estimates go wrong, because a RAG pipeline is a search system with a language model attached, and retrieval quality decides whether the model can answer correctly at all.

 

Why Do RAG Budgets Miss the Mark?

RAG budgets miss because they price a model integration, while the system behaves like a governed data product with a chat interface. The work that overruns is making the right passage available, authorized, current and citable. If retrieval fails, generation produces a confident answer from the wrong evidence.

Our own engagement reviews show how often that happens. Across the retrieval engagements we reviewed in 2024 and 2025, 70 percent of the cases customers reported as hallucinations turned out to be passages that had never been retrieved, which is why we treat retrieval-augmented generation as a data-layer problem first.

That changes the budget conversation. Paying for a premium model before fixing chunking, metadata, hybrid search and permissions buys a more expensive answer from the same missing evidence. We measure recall before anyone tunes a prompt, and a RAG implementation plan should budget that measurement work from the first week.

How Much Does a RAG System Cost to Build?

There's no list price for the build, because it is mostly engineering time and it scales with sources, permissions and evaluation more than with document count. What can be fixed in advance is the scope: which sources, which users, which questions and which evidence each answer must carry.

Scope

What it usually includes

What it proves

Contained pilot

One or two sources, basic retrieval, a small labeled question set, limited users

Feasibility on your own content

Departmental production

Several sources, hybrid search, reranking, SSO and role-based access, monitoring

The system survives real users and source changes

Enterprise or regulated platform

Document-level permissions, tenant isolation, audit evidence, retention and deletion, change management

The system passes review and holds up under audit

 

A legal team answering from a curated policy library is a different project from a support assistant that must respect entitlements across Salesforce, Zendesk, SharePoint, Confluence and a legacy claims system. The variables that move the estimate are source-system access, permission propagation, document quality, latency targets, audit requirements and the number of workflows the assistant must complete.

The delivery model moves the estimate as much as the scope does. On the HIPAA claims platform we built for KlearTrust, clinical-document ingestion, PHI-safe retrieval, audit-log scaffolding and the evaluation harness ran in days on Aedeon, the agent platform we deliver with. In a traditional engagement that work would have taken a four-month analyst tier, and the platform reached production in 12 weeks.

That's also why a fixed fee is possible. In our delivery method, Aedeon absorbs 60 to 70 percent of the engagement work, and forward-deployed engineers own the architecture, the authority boundary and cutover.

What Are the Ongoing RAG Costs on AWS?

Monthly run cost depends on query volume, the type of retrieval, context length, refresh frequency and how much human review each answer needs. On AWS every billed line has a published list price, so the run side can be estimated before launch. The prices below were read from AWS pricing pages on December 1, 2026.

Recurring line

AWS list price

What drives it

Managed knowledge base, index storage

$5.00 per GB of raw data per month

Corpus size

Managed knowledge base, standard retrieval

$1.00 per 1,000 Retrieve calls; parsing, embeddings and reranking included

Query volume

Managed knowledge base, agentic retrieval

$4.00 per 1,000 agentic calls plus $1.00 per 1,000 underlying Retrieve calls

Multi-step questions

Reranking, self-managed

Cohere Rerank 3.5 at $2.00 per 1,000 queries of up to 100 chunks

Candidates per query

Vector store, OpenSearch Serverless

$0.24 per OCU-hour; classic collections bill at least 2 OCUs

Always-on capacity

Vector store, S3 Vectors

$0.06 per GB-month of storage; $2.50 per million queries

Index size and query volume

Grounding check, Bedrock Guardrails

$0.10 per 1,000 text units

Answers checked

Model generation

Per million input and output tokens, by model

Passages sent and answer length

What does a Bedrock knowledge base cost per month?

AWS publishes its own worked example. On the Bedrock pricing page, a customer support chatbot that indexes 50 GB from SharePoint, about 100,000 documents, and serves 100,000 standard retrieval queries a month costs $350: $250 of index storage and $100 of retrieval.

The same content behind a research assistant on agentic retrieval comes to $850, because AWS assumes each agentic call makes two underlying Retrieve calls: $250 of storage, $400 of agentic calls and $200 of underlying calls. Per query, that's a tenth of a cent for standard retrieval and six tenths of a cent for agentic. Model tokens for the answer are billed on top of both, which is why agentic RAG earns its cost only on questions that span sources.


What does the vector store cost if you run your own?

With a self-managed knowledge base you pay for the vector store separately, and the store you choose decides whether there's a floor. OpenSearch Serverless bills at least 2 OCUs for the first classic collection in an account, at $0.24 per OCU-hour in AWS's examples, which comes to about $350 a month over AWS's 730-hour month before a single query runs.

A dev-test collection without the standby replica halves that to 0.5 OCU for indexing and 0.5 for search. OpenSearch's NextGen collections have no minimum, and their indexing and search OCUs scale to zero after 10 minutes of inactivity.

S3 Vectors has no capacity floor. AWS prices its storage at $0.06 per GB-month, and queries carry a $2.50 per million request fee plus a charge per terabyte of vector data processed. Traffic shape decides the better buy: steady, heavy query traffic can justify provisioned capacity, and spiky or low traffic usually favors paying per query.

 

Which RAG Cost Drivers Matter Most?

Five decisions move the budget more than model selection does: corpus quality, update frequency, permission complexity, retrieval precision and evaluation discipline. Each one is cheaper to settle before the build than after launch.

Driver

Why it moves cost

What we'd decide early

Corpus quality

Duplicate, outdated and scanned content adds parsing, cleanup and evaluation work

Which sources are authoritative, and who owns each one

Update frequency

Content that changes weekly needs incremental ingestion and freshness checks

A freshness target for each source

Permission complexity

Document-level entitlements, tenant isolation and revocation need engineering in the index

Where entitlements live and how fast a revocation must reach the index

Retrieval precision

Every extra passage is paid for in input tokens on every call

How many passages each answer may use

Evaluation discipline

Without a labeled question set, teams pay for changes that don't improve answers

The golden set and the pass bar before launch

Precision pays twice, in fewer wrong answers and in fewer irrelevant tokens sent to the model on every call. The vector store line rarely decides the budget; the tokens and review time downstream of weak retrieval usually do.

How Do You Calculate RAG Cost per Query?

Calculate cost per resolved task first and derive cost per query from it, because an answer someone has to redo carries the model call, the retrieval call and that person's time. We use one formula for every production AI system we price:

Cost per resolved task = (inference + retrieval + orchestration + observability + human review + amortized build) ÷ tasks resolved without rework

The bottom of the fraction is where the math usually goes wrong. A task someone has to redo doesn't count as resolved, but everything it cost stays on top.


Retrieval per query is simple arithmetic from list prices: $1.00 per 1,000 calls is $0.001 a query on a managed knowledge base, and AWS's agentic example works out to $0.006. Generation per query is input tokens times the model's input price plus output tokens times its output price, divided by one million. The full method takes six steps.

  1. Count the tasks resolved without rework in a month, from the system's own logs or the ticketing system it feeds.
  2. Pull model and retrieval spend per application by invoking models through tagged application inference profiles, so the bill splits by workload.
  3. Add vector store, orchestration and observability charges carrying the same tags.
  4. Add reviewer time for escalated or corrected answers at the loaded hourly cost.
  5. Amortize the build over the period you expect the system to run before a major rebuild.
  6. Divide the total by the resolved tasks, then compare the result with the fully loaded cost of the process the system replaces.

 

 

Finance teams are already asking for this number. The FinOps Foundation's State of FinOps 2026 found that 98 percent of respondents now manage AI spend, up from 63 percent in 2025. On Bedrock a raw model invocation can't be tagged, so FinOps for AI on a RAG system starts with invoking models through tagged resources such as application inference profiles.

What Compliance Costs Should You Plan For?

Plan compliance into the architecture from the first sprint, because it shapes the data flows, the index design and the operating model, and a pilot rebuilt to add controls later pays for the same work twice.

Control

What it adds to the build

Why it matters

Identity and access

SSO, role mapping, entitlement sync

Stops unauthorized retrieval

Permission-aware retrieval

Metadata design, query-time filtering, tests

Keeps source-system access boundaries intact

Residency and isolation

Private networking, Regional deployment, log controls

Meets contractual and regulatory obligations

Provenance and citations

Source, version, passage and timestamp capture

Makes each answer reviewable

Retention and deletion

Deletion across indexes, caches and derived data

Meets privacy and records obligations

Evaluation and audit evidence

Golden sets, traces, approval workflow

Shows that quality is managed

The exposure is large. IBM's 2026 Cost of a Data Breach Report puts the average US breach at a record $11.5 million, against a global average of $4.99 million. A retrieval system that shows a user a passage they couldn't open in the source system is a data exposure with a friendly interface.

Building the controls in costs less than adding them later. KlearTrust's claims platform captured audit evidence at decision time instead of reconstructing it afterward, and it passed HIPAA and internal audit on first review.

Should You Use a Managed Knowledge Base or Build Your Own Pipeline?

Start on a managed knowledge base when speed matters and the content is standard, and take ownership of the pipeline when recall stalls below your target or you need controls the managed service doesn't offer.

Option

How it is billed on AWS

Best fit

Main tradeoff

Managed knowledge base

Per GB of raw data and per Retrieve call; parsing, embeddings and reranking included

Fast departmental rollout on standard content

Less control over chunking and ranking

Self-managed knowledge base

Model calls, vector store and reranker billed separately

Differentiated retrieval, strict data boundaries

More engineering to own and run

Hybrid

Managed retrieval for standard sources, your own pipeline where recall demands it

Enterprises that need speed and control

Needs clear ownership and acceptance criteria

A managed service speeds up the first working system. It doesn't fix stale indexes, conflicting policies, legacy entitlement models or the need to prove which evidence supported an answer. Retrieval quality with Amazon Bedrock in production behaves like a data platform outcome, so the managed option saves ingestion work and leaves the data work where it was.

When Does RAG Cost More Than It Returns?

RAG costs more than it returns when it's asked to solve a problem retrieval can't solve. We'd avoid it in these cases:

  • The answer depends on live operational state, such as an account balance, an inventory level or a ticket status, which belongs behind a tool call.
  • The corpus is small enough to fit directly in the model's context.
  • The task needs aggregate reasoning across an entire corpus instead of a few relevant passages.
  • The change you want is tone, format or behavior, which prompting or fine-tuning handles.
  • The underlying data can't be exposed in a clean, permissioned, incrementally readable way.

In the last case, the work that unblocks retrieval is application and database modernization, with retrieval as the outcome that follows. When knowledge sits inside a legacy system, the source system is usually the blocker, and a better embedding model won't change that.

How Can You Reduce RAG Cost Without Hurting Quality?

Cut cost where it doesn't touch trust: route questions, cache repeated context, retrieve less, and move offline work to batch.

Lever

How it cuts cost

Watch for

Route before retrieval

A standard call costs $0.001 against $0.006 in AWS's agentic example

Questions that span sources still need agentic retrieval

Cache repeated context

System prompts and stable context stop being billed at the full input rate

Freshness and permissions on cached content

Retrieve fewer, better passages

Fewer input tokens on every call

Recall dropping below the golden-set bar

Use hybrid search

Keyword search finds identifiers, codes and names that vectors miss, so fewer retries

Index size on a self-managed store

Batch offline work

Bedrock prices batch inference 50% below on-demand for select models

Only for work that can wait

Set freshness targets per source

Fewer reindexing runs

Sources that need near-real-time updates

Name an owner

Ingestion, permissions and evaluation stay maintained

Ownership spread across teams

The caching figure to plan against is AWS's ceiling. Prompt caching on Bedrock can reduce costs by up to 90% and latency by up to 85% for supported models, and a real workload lands below that, so model the range.

Ownership is the lever teams skip. Without a named owner for ingestion schedules, permissions and the evaluation set, the index drifts and users stop trusting the answers.

How Can Mactores Help You Price and Ship a RAG System?

We scope RAG around the questions that decide cost and risk: which sources hold the knowledge and who may see it, how fresh each answer must be, what evidence every response carries, which workflows need retrieval or a tool call, and which evaluation set proves the system before users see it.

For Sterne Kessler, we built an Office Action response system on Amazon Bedrock that grounds its reasoning in the firm's historical Office Actions, examiner patterns and past arguments, with attorneys reviewing every consequential decision. The patent Office Action automation took average response time from 8 to 12 hours down to 2 to 4, and prosecution costs fell 25 to 35 percent, which is the business number cost per resolved task exists to show.

Aedeon handles knowledge ingestion, retrieval indexing, evaluation harnesses and observability, and forward-deployed engineers own the architecture decisions: what the system may do, what people must approve and how it behaves when it doesn't know. That split is how we take AI agents for apps to production on customer-signed acceptance.

Engagements run on a fixed date and a fixed fee, and 94% of our projects have been delivered on or ahead of schedule. Bring the process you want to improve, the systems involved and the compliance boundary. A forward-deployed engineer replies within 24 hours to set a 30-minute working session, and where the fit is right, a scoped proposal with a fixed fee follows within five business days.