
Adding AI to an Existing SaaS Product
The hard part is not the model. It is choosing which job to give it, and building the parts around it that decide whether anyone trusts the output.

A retrieval-augmented chatbot demo takes a weekend. A version you can put in front of paying customers takes considerably longer, and almost none of the difference is the model — it is the retrieval quality, the evaluation, and the work of making a wrong answer visible instead of confident.
Costs split into three parts that behave completely differently: a one-off build, a monthly run rate that scales with usage, and infrastructure. Quotes that give you one number for all three are hiding something.
Assuming your content already exists somewhere machine-readable, a production RAG system is typically a four-to-eight week build. These are the bands we scope against, in the same shape as our MVP cost breakdown.
| Scope | Typical build cost | Timeline |
|---|---|---|
| One content source, one interface, no auth-scoped data | £8k – £20k ($10k – $25k) | 2–4 weeks |
| Several sources, per-user permissions, citations, evaluation suite | £20k – £50k ($25k – $63k) | 4–8 weeks |
| Regulated content, audit trail, human review workflow | £50k+ ($63k+) | 8 weeks+ |
The jump between band one and band two is almost entirely permissions and evaluation. If different users may see different documents, every retrieval must be filtered by identity before it reaches the model — get that wrong and you have built a data breach with a chat interface.
Inference bills per token, and both OpenAI and Anthropic publish current rates. Those rates fall regularly, so never build a business case on a number you read once — build it from your own token counts, which do not fall.
The variable that dominates is how much context you retrieve per question. A system that stuffs ten documents into every prompt uses roughly ten times the input tokens of one that retrieves two well-chosen passages, and it is frequently no more accurate — irrelevant context measurably degrades answers.
You need somewhere to keep embeddings. This is a smaller cost than teams expect and a much smaller decision than vendors imply.
If you already run PostgreSQL, pgvector adds vector search to the database you are already operating, backing up and monitoring. That is the right default for most products, and it stays the right answer well past the scale at which people assume it stops. A dedicated vector database like Pinecone earns its cost at large scale or when you need features Postgres does not offer — but adopting one on day one usually buys operational overhead rather than capability.
Embedding your content is a one-off cost per document, repeated when the document changes. For most knowledge bases this is measured in single-digit pounds. Embedding models are far cheaper than generation models, so re-embedding is rarely the expensive part.
The difference between a demo and a product is knowing whether it is right, and that means a test set: real questions with known-good answers, run on every change. Without it you cannot tell whether a prompt tweak helped or quietly broke something, and you will find out from a customer.
Budget for building the test set — it is a person's time collecting real questions, not an engineering task — and for the ongoing review. This is usually 15–25% of the build, and it is the line most competing quotes omit, which is part of why they look cheaper.
RAG earns its cost when answers must come from your own content and be traceable to a source. It is the wrong tool when the task is really classification, extraction or routing — those are cheaper, faster and more reliable as narrow prompts or fine-tuned models. RAG versus fine-tuning covers where the line sits.
It is also wrong when your content is bad. Retrieval faithfully surfaces whatever you have, so a chatbot over an out-of-date knowledge base produces confident, well-cited, out-of-date answers. Fix the content first; it is cheaper than any of the above.
Most production RAG builds we take on land in the £20k–£50k band, fixed scope and fixed price, with the evaluation suite included rather than sold separately. You own the code, the prompts and the evaluation set from the first commit.
If you want the number for your specific content and volumes, that is a thirty-minute conversation and we will tell you if RAG is the wrong answer. The work itself is our RAG systems service.
Roughly £8k–£20k ($10k–$25k) for a single content source with no per-user permissions, £20k–£50k ($25k–$63k) for several sources with permissions, citations and an evaluation suite, and £50k+ ($63k+) where regulated content and audit trails are involved. The jump between the first two bands is mostly permissions and evaluation rather than the model work.
Inference dominates, and it scales with how much context you retrieve per question rather than with the headline per-token rate. Retrieving two well-chosen passages instead of ten cuts input tokens roughly tenfold and often improves accuracy. Add vector storage, which is minor if you use pgvector on a database you already run, plus a one-off embedding cost per document.
pgvector is the right default if you already run PostgreSQL, and it stays the right answer well past the scale at which people assume it stops. A dedicated vector database earns its cost at large scale or for features Postgres lacks. Adopting one on day one usually buys operational overhead rather than capability.
Because knowing whether answers are right requires a test set of real questions with known-good answers, run on every change. Building it is a person's time collecting real questions rather than an engineering task, and it typically runs 15–25% of the build. A quote with no evaluation line is the same work with quality assurance removed.