Home / Insights / Software Costs and Budgets
Software Costs and Budgets
How Much Does a RAG Knowledge Assistant Cost? Engineering, Inference, Evaluation and Upkeep
Most RAG budgets get the model bill wrong in both directions: they overestimate inference and underestimate the people work around documents, permissions and evaluation. Here is a cost model you can adapt, with every assumption stated.
Key takeaways
- A retrieval-augmented generation (RAG) assistant has four cost layers: engineering, inference and hosting, evaluation, and upkeep. Engineering and upkeep usually dominate; token costs are often the smallest line.
- On our illustrative assumptions, a basic pilot takes about 8 to 12 person-weeks, a standard permission-aware assistant 20 to 30, and an advanced multi-source deployment 40 to 60.
- Inference for a few thousand questions a month typically costs hundreds, not thousands, of dollars at published list prices; hosting, search infrastructure and logging can cost more than the model.
- Budget evaluation explicitly: a test set of real questions, subject-matter expert time and regression runs on every change. Without it you cannot prove quality or control drift.
- Plan annual upkeep from day one: connectors break, content changes, models are retired and permissions evolve.
On this page
- What are you actually paying for?
- How much engineering effort does each tier need?
- What does that effort cost at different rates?
- What will inference and hosting cost each month?
- How much should you budget for evaluation?
- What does upkeep cost after launch?
- Which factors move the price most?
- How do you decide, and what hidden costs should you watch?
- Frequently asked questions
- Sources and methodology
When a leadership team asks what an internal knowledge assistant will cost, the first answer is usually a guess about model tokens. That is the wrong place to start. In the RAG projects we scope, the large costs sit in getting documents in cleanly, enforcing who can see what, proving that answers are correct and keeping all of that working as content and models change.
This article is for CTOs, operations leads and finance owners who need a defensible budget before approving a build. I set out a transparent estimate: the scope at three tiers, the effort in person-weeks, illustrative blended rates, monthly run costs worked from published price lists, and the upkeep that follows launch. Every figure is an estimate built from the stated assumptions, not a market benchmark. Change the assumptions and the totals change with them.
If you want to see what a delivery looks like in practice, our enterprise knowledge search service describes the document audit, ingestion, permission-aware retrieval and evaluation work that sit behind these numbers. For the build steps themselves, see our guide to building an internal AI knowledge assistant.
What are you actually paying for?
A RAG assistant retrieves relevant passages from your documents and asks a language model to answer using only those passages, with citations. That simple description hides four distinct cost layers.
| Layer | What it includes | When you pay | Typical share of first-year cost |
|---|---|---|---|
| Engineering | Document audit, connectors, parsing and OCR, chunking, indexing, retrieval and re-ranking, answer generation with citations, permissions, single sign-on, user interface, deployment | Mostly upfront | Largest |
| Inference and hosting | Embedding documents, model calls per question, vector or hybrid search service, application hosting, logging and monitoring | Monthly, scales with usage and corpus size | Often small to moderate |
| Evaluation | Test set of real questions, expert review time, automated scoring runs, regression testing on every change | Upfront, then each release | Moderate, and frequently forgotten |
| Upkeep | Connector fixes, content and permission changes, model upgrades, re-indexing, security patches, user support | Ongoing | Grows over time |
The shares depend heavily on your corpus and security requirements, which is why a tiered estimate beats a headline price.
How much engineering effort does each tier need?
We group RAG assistants into three tiers. The boundaries are not rigid, but they capture where effort jumps.
Scope by tier
- Basic (pilot): one document source, such as a single SharePoint site or a folder of PDFs; a few thousand clean, text-based documents; one user group with the same access rights; a simple chat interface; vector search; manual evaluation against a small question set.
- Standard (production for one department or company-wide): two to four sources, such as SharePoint, Confluence and Google Drive; permission-aware retrieval that respects document access rights at query time; hybrid keyword and vector search with re-ranking; single sign-on; citations and “no answer found” handling; an automated evaluation harness; usage analytics and feedback capture.
- Advanced (multi-source, regulated or customer-facing): five or more sources, including scanned documents needing OCR, tables and images; multiple languages; strict tenant or business-unit isolation; private deployment in your own cloud account or with open models; audit logging; guardrails; integration with CRM, ERP or ticketing systems; possibly actions beyond answering.
Effort estimate by workstream (person-weeks)
| Workstream | Basic | Standard | Advanced |
|---|---|---|---|
| Discovery and document audit | 1 | 2 to 3 | 3 to 5 |
| Ingestion, connectors, parsing, chunking | 2 to 3 | 5 to 7 | 10 to 14 |
| Retrieval, hybrid search, re-ranking | 1 to 2 | 3 to 4 | 5 to 8 |
| Answer generation, prompts, citations | 1 to 2 | 2 to 3 | 4 to 6 |
| Permissions, single sign-on, isolation | 0 to 1 | 3 to 4 | 6 to 9 |
| User interface and analytics | 1 | 2 to 3 | 4 to 6 |
| Evaluation harness and test set | 1 | 2 to 3 | 4 to 6 |
| Security review, deployment, handover | 1 | 1 to 3 | 4 to 6 |
| Total | 8 to 12 | 20 to 30 | 40 to 60 |
Two workstreams drive most of the variation. Ingestion grows with the number and messiness of sources: clean HTML wiki pages are cheap, while scanned contracts with tables are not. Permissions grow with how fine-grained access is. Mapping a document library’s access rules onto every retrieved chunk, and testing that a user never sees a passage they should not, takes deliberate engineering.
What does that effort cost at different rates?
To turn effort into money we use illustrative blended rates. These are assumptions for the purpose of the calculation, not quotes: USD 35 to 55 per hour for a Vietnam-based team and USD 120 to 200 per hour for a US agency. We assume 40 hours per person-week.
| Tier | Effort (person-weeks) | Hours | Vietnam-based team (USD 35 to 55/h) | US agency (USD 120 to 200/h) |
|---|---|---|---|---|
| Basic | 8 to 12 | 320 to 480 | about 11,000 to 26,000 | about 38,000 to 96,000 |
| Standard | 20 to 30 | 800 to 1,200 | about 28,000 to 66,000 | about 96,000 to 240,000 |
| Advanced | 40 to 60 | 1,600 to 2,400 | about 56,000 to 132,000 | about 192,000 to 480,000 |
All figures are estimates derived from the assumptions above and rounded. They exclude your own internal time, which is not trivial: someone has to own the document sources, answer questions about access rules and review answers during evaluation. For a standard build, assume a product owner at a few hours a week and subject-matter experts for concentrated review sessions.
The ranges are wide because the tiers are wide. A discovery phase that inventories your sources, samples documents and maps access rules usually narrows the estimate considerably, and it is the cheapest way to avoid a surprise later.
What will inference and hosting cost each month?
Inference is the cost people worry about most and, for internal assistants, often the one that matters least. A worked example shows why.
Illustrative usage assumptions
- 10,000 questions per month (for example, 500 staff asking around one question each working day).
- Each question sends about 4,000 input tokens to the model: system instructions, the question and five or six retrieved passages.
- Each answer returns about 400 output tokens.
- That totals roughly 40 million input tokens and 4 million output tokens a month.
Model cost at published list prices
Anthropic’s pricing documentation lists Claude Sonnet 4.5 at USD 3 per million input tokens and USD 15 per million output tokens, and Claude Haiku 4.5 at USD 1 and USD 5 respectively.
| Model (list price) | Input cost | Output cost | Monthly model cost |
|---|---|---|---|
| Claude Sonnet 4.5 (USD 3 / 15 per million) | 40M x 3 = USD 120 | 4M x 15 = USD 60 | about USD 180 |
| Claude Haiku 4.5 (USD 1 / 5 per million) | 40M x 1 = USD 40 | 4M x 5 = USD 20 | about USD 60 |
The same documentation describes prompt caching, where a cache read costs 0.1 times the base input price, and a Batch API with a 50% discount for asynchronous work. Caching a long, stable system prompt reduces input cost further; batch pricing suits offline jobs such as generating summaries or running evaluation suites, not live chat.
The other monthly lines
| Line item | Illustrative monthly range (USD) | What moves it |
|---|---|---|
| Language model calls | 60 to 500 | Model choice, passages per question, answer length, volume |
| Embeddings (re-indexing changed documents) | under 50 | Corpus churn; a full re-embed is a one-off spike |
| Search service (vector or hybrid) | 100 to 1,500 | Corpus size, high availability, managed service versus Postgres with a vector extension |
| Application hosting | 100 to 600 | Redundancy, regions, private networking |
| Logging, monitoring, evaluation runs | 50 to 400 | Retention, observability tooling, scoring frequency |
| Total | about 300 to 3,000 |
These ranges are assumptions for a standard tier, not vendor quotes. They do show the pattern we see repeatedly: at internal volumes, the infrastructure around the model can cost as much as or more than the model itself.
Embedding the initial corpus is usually a modest one-off. As an illustration, 50,000 documents averaging 2,000 tokens is 100 million tokens; at an assumed embedding price of USD 0.02 to 0.15 per million tokens, that is roughly USD 2 to 15. Check your provider’s current list price before relying on it.
Managed retrieval as an alternative
Some providers bundle storage and retrieval. OpenAI’s API pricing lists its file search tool at USD 2.50 per 1,000 calls, with storage at USD 0.10 per GB per day after the first free GB. At 10,000 questions a month that is about USD 25 in tool calls plus storage. Managed retrieval can be cheaper to start, but it gives you less control over chunking, ranking and permission filtering, which matter most in the standard and advanced tiers.
How much should you budget for evaluation?
Evaluation is how you prove the assistant retrieves the right passages and answers faithfully from them. It is also how you detect when a model update or content change makes things worse. NIST’s Generative AI Profile (NIST AI 600-1) frames evaluation as part of the whole lifecycle of a generative AI system, not a one-off launch check, and that is how we budget for it.
What the evaluation budget covers
- Building the test set. Collect real questions from the people who will use the assistant, write reference answers and identify which documents should be retrieved. Our guide to building a RAG test set explains the method.
- Expert review time. Subject-matter experts validate reference answers and review a sample of live answers. This is your organisation’s time, so budget it explicitly.
- Automated scoring. Scripts that measure retrieval hit rate and use a model to check whether answers are supported by the cited passages. These runs consume tokens, but batch pricing keeps them cheap.
- Regression runs. Re-run the suite on every prompt change, model change, chunking change or major content update.
- Production sampling. Review a sample of real conversations each month, focusing on thumbs-down feedback and “no answer” responses.
Illustrative evaluation effort
| Activity | Basic | Standard | Advanced |
|---|---|---|---|
| Test set size (questions) | 50 to 100 | 200 to 400 | 400 or more, per language or domain |
| Vendor engineering (included in build estimate) | 1 person-week | 2 to 3 person-weeks | 4 to 6 person-weeks |
| Your expert time to validate answers | 2 to 4 days | 1 to 2 weeks, spread out | Several weeks across domains |
| Ongoing monthly review | A few hours | 1 to 2 days | Several days |
If a proposal has no line for evaluation, ask how the vendor will show you that answers are correct. If the answer is “user feedback”, the users are doing your testing.
What does upkeep cost after launch?
A knowledge assistant is a living system. The documents change daily, access rights change when people move teams, source systems change their APIs, and model providers retire older models. Upkeep is not optional, and it rarely shrinks.
The main upkeep drivers
- Connector maintenance. SharePoint, Confluence and Drive APIs change, authentication tokens expire and rate limits bite during re-indexing.
- Content operations. New document types, duplicated or outdated pages and conflicting versions degrade answers until someone cleans them up.
- Model lifecycle. When a model is deprecated or a better one appears, prompts need retesting against your evaluation suite. Switching embedding models means re-embedding the whole corpus.
- Permission changes. New groups, reorganisations and new sensitivity labels have to flow into retrieval filters.
- Security and dependencies. Library updates, vulnerability patches and periodic access reviews.
Budgeting rule of thumb
As a planning assumption, allow 15 to 25% of the initial build cost per year for maintenance and small improvements, plus run costs. For a standard build estimated at USD 28,000 to 66,000 with a Vietnam-based team, that implies roughly USD 4,000 to 16,500 a year in engineering upkeep on our assumed rates. New sources and major features are additional projects. Treat this percentage as an assumption to test against your own change rate, not a benchmark.
Which factors move the price most?
| Factor | Lower cost | Higher cost |
|---|---|---|
| Document quality | Clean, text-based, current | Scanned, tables, images, many outdated versions |
| Number of sources | One | Five or more, each with its own connector and quirks |
| Access rules | Everyone sees everything | Document-level permissions, tenant isolation, sensitivity labels |
| Languages | One | Several, each needing its own test set |
| Deployment | Hosted model API, managed search | Private cloud, open models, data residency constraints |
| Risk of wrong answers | Internal convenience | Customer-facing, regulated or safety-relevant answers |
| Integrations | Answering only | Writing back to CRM, ticketing or ERP systems |
Retrieval design choices also affect cost. Graph-based retrieval adds build and upkeep effort; our comparison of GraphRAG and plain vector search covers when that is worth it.
How do you decide, and what hidden costs should you watch?
Build, buy or both
Off-the-shelf workplace assistants that connect to common document stores are often the right answer when your content lives in one ecosystem, your access model is standard and you do not need control over retrieval or deployment. A custom build earns its cost when you need permission rules the product cannot express, sources it does not support, private deployment, a customer-facing experience or measurable control over answer quality. Price both options over three years, including licences per seat against build plus run plus upkeep.
Hidden costs that appear late
- Permission leakage. The OWASP Top 10 for LLM Applications lists vector and embedding weaknesses as a 2025 risk, including unauthorised access and cross-context leakage in shared vector stores. Fixing this after launch costs far more than designing for it.
- Content clean-up. Many teams discover that their documents contradict each other. Someone must decide which version is right.
- Lock-in. If prompts, indexes and evaluation live inside one vendor’s platform, switching later means rebuilding them.
A budgeting checklist
- List every document source, its size, format and access model.
- Decide who must never see what, and write it down as test cases.
- Choose the tier that matches your real requirements, not your aspirations for year three.
- Estimate monthly questions and run the token arithmetic with current list prices.
- Add search, hosting and logging lines to the run budget.
- Budget evaluation: vendor effort, your expert time and monthly review.
- Reserve annual upkeep, stated as an explicit assumption.
- Fund a short discovery phase first, and re-estimate before committing to the full build.
Guardrails are another line to scope early if the assistant will be customer-facing; our guide to input and output guardrails explains the options.
Frequently asked questions
How much does a basic RAG pilot cost?
On our illustrative assumptions, a basic pilot with one clean document source and one user group takes about 8 to 12 person-weeks. At an assumed USD 35 to 55 per hour for a Vietnam-based team that is roughly USD 11,000 to 26,000; at an assumed USD 120 to 200 per hour for a US agency, roughly USD 38,000 to 96,000. Your own scope and rates will change these figures.
Are model tokens the biggest running cost?
Usually not for internal assistants. At 10,000 questions a month with about 4,000 input and 400 output tokens each, published list prices for Claude Haiku 4.5 and Sonnet 4.5 work out at roughly USD 60 to 180 a month. Search infrastructure, hosting and logging can cost as much or more.
Why does permission-aware retrieval add so much effort?
Every retrieved passage must respect the access rights of the person asking, which means mapping each source’s permission model into the index, keeping it in sync as rights change and testing that users never see passages they should not. It is one of the most important parts to get right.
How much should we set aside for maintenance each year?
As a planning assumption, 15 to 25% of the initial build cost per year for maintenance and small improvements, plus monthly run costs. New sources and major features are budgeted separately.
Can we reduce cost by using an open-source model on our own servers?
Sometimes, at high volumes or when data residency requires it. Self-hosting adds GPU capacity and operations work, so at internal volumes a hosted API is often cheaper overall.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- Anthropic: Claude API pricing documentation — accessed 10 November 2026. List prices for Claude Sonnet 4.5 and Haiku 4.5, prompt caching multipliers and the 50% Batch API discount used in the inference worked example
- OpenAI: API pricing — accessed 10 November 2026. File search tool call and storage pricing used for the managed retrieval comparison
- OWASP Gen AI Security Project: LLM08:2025 Vector and Embedding Weaknesses — accessed 10 November 2026. Unauthorised access and cross-context leakage risks in RAG systems and permission-aware access control as mitigation
- NIST: AI 600-1, AI RMF Generative Artificial Intelligence Profile (July 2024) — accessed 10 November 2026. Framing evaluation as part of the design, development, use and evaluation lifecycle of generative AI systems
Related reading
Continue your research
Which tier does your knowledge assistant really need?
Share your document sources and access rules, and we will turn them into a scoped estimate with every assumption written down.
