The question everyone quietly has
You've heard the phrase "RAG" thrown around in every AI conversation lately. Someone on LinkedIn called it "the most important architecture in AI." Your developer friend mentioned it as the reason their chatbot actually knows your company's policies. And you? You're wondering whether it's another acronym designed to make consultants sound clever, or whether it actually matters to your business.
It matters. More than almost any other AI concept I've explained to small business owners. RAG is the difference between an AI that gives you generic internet answers and an AI that answers from your documents, your precedents, and your knowledge. It's the technology behind "talk to your documents" systems. It's what makes an AI assistant useful for a mortgage broker who needs to quote lending criteria, or an accountant who needs to reference specific client notes, or a tradesperson who needs to pull up warranty terms from a 200-page supplier manual.
But RAG is also oversold. The demos are magical. The reality involves edge cases, failure modes, and a surprising amount of plumbing behind the curtain. This article is the honest version — what RAG is, how it works, why it's useful, and where it breaks.
"AI is not magic. It's a very fast, very patient, very literal assistant that has read most of the internet and can pattern-match against what you give it. The trick is knowing what to ask and how to keep it honest."
— The working definition I use with clients
The simple answer
RAG stands for Retrieval-Augmented Generation. Break that down and it's almost self-explanatory.
Retrieval: looking up relevant information from a specific set of documents before answering.
Augmented: adding that looked-up information to the AI's prompt, so it has more to work with than just its training memory.
Generation: the AI writes an answer, but now it's grounded in the documents you provided rather than guessing from general knowledge.
In plain language: instead of asking the AI to answer from memory, you give it a cheat sheet first. The AI reads the cheat sheet, then answers the question using what it just read.
This matters because LLMs have a fundamental limitation: they only know what they were trained on. Their training data is vast but static. It doesn't include your latest policy document, your client's file notes from last week, or the warranty terms from the supplier you started using in March. RAG solves this by letting the AI look things up in real time.
The open-book exam analogy
Here's the analogy that makes RAG click for almost everyone.
Imagine you're sitting a history exam. In one version of the test, you have to answer from memory. You studied for years, you know a lot, but you can't check anything. If the question is about a treaty signed in 1842, you either remember it or you guess. This is a standard LLM without RAG.
In the other version of the test, you're allowed to bring one textbook. When a question comes up, you flip to the relevant chapter, read the exact wording, and write your answer based on what the book says. You still have to understand the question, structure the answer, and write in coherent sentences — but your facts come from the book, not from your fallible memory.
RAG is the second version. The AI gets to "flip to the relevant chapter" in your document collection before it answers. It doesn't memorise your documents during training. It looks them up on demand.
The crucial detail: if the textbook doesn't contain the answer, the student is stuck. They can't invent facts from the book that aren't there. They can only synthesise, summarise, and rephrase what's actually written. This is both the strength and the limitation of RAG. It keeps the AI honest — but only if the documents contain the truth in the first place.
Real-world example
A mortgage broker I work with had a problem. His team of four was constantly fielding questions about lending criteria: "Does this lender accept casual income?" "What's the maximum LVR for an investment property?" "Which lenders have waived valuation fees this month?"
These answers existed — in lender policy PDFs, internal wiki pages, email chains from BDMs, and Slack threads. But finding the right answer took 5–15 minutes per question, and sometimes the person asking didn't even know which document to check.
We built a RAG system over their document collection. Now a broker types the question, the system finds the relevant policy pages, and the AI answers with a summary plus a citation to the exact source. Average response time: under 10 seconds. The team estimated it saved them 6–8 hours a week in hunting-and-pecking.
But here's the honesty: it still gets things wrong about 8% of the time. Usually it's a subtle misreading — "up to 90% LVR" gets summarised as "90% LVR" without the "up to" caveat. The brokers know to check the citation. The system saves time; it doesn't remove judgment.
How RAG actually works (four steps)
RAG sounds like a black box, but the process is surprisingly mechanical. There are four steps, and you can understand all of them without writing a line of code.
Step 1: Chunking
Your documents are too big to feed into an AI whole. A 200-page PDF might be 100,000 words. An LLM can only hold so much text in its working memory at once — its context window — so you need to break the document into bite-sized pieces.
This is called chunking. The system chops your documents into overlapping paragraphs, sections, or pages. Each chunk is small enough to fit comfortably in the AI's memory, but large enough to preserve meaning. A chunk might be 300–500 words — roughly half a page.
Chunking is an art. Too small, and you lose context. A chunk that says "the fee is waived" makes no sense if the previous chunk said "for existing customers only." Too large, and you waste the AI's limited memory on irrelevant text. Getting chunking right is one of the most important decisions in a RAG system.
Step 2: Embedding
Once you have chunks, you need a way to find the right one when someone asks a question. You can't just search for keywords, because the user might ask "can casual workers get a loan?" while the document says "non-standard employment income assessment." The words don't match, but the meaning does.
This is where embeddings come in. An embedding is a mathematical fingerprint of a piece of text — a long list of numbers that captures its meaning. "Cat" and "kitten" have similar embeddings even though they're different words. "Mortgage" and "home loan" have similar embeddings too. "Casual worker" and "non-standard employment" end up close together in this number-space if they refer to the same concept.
Every chunk gets converted to an embedding and stored. Every question gets converted to an embedding too. Then the system compares the question's embedding against all the chunk embeddings to find the closest matches. This is how RAG finds relevant documents even when the wording differs.
Step 3: Retrieval
The system picks the top 3–10 most relevant chunks and pulls them out of storage. This is the "retrieval" part of RAG. The quality of the answer depends almost entirely on the quality of this retrieval step. If the system grabs the wrong chunks, the AI will answer confidently from irrelevant information.
Most systems use a vector database for this — a specialised database designed to find the closest embeddings quickly. Even with millions of chunks, a good vector database can retrieve relevant ones in milliseconds.
Some systems add a second layer called reranking, where a more careful model reviews the retrieved chunks and re-orders them by true relevance. This improves accuracy at the cost of a little extra time and money.
Step 4: Generation
Finally, the retrieved chunks are inserted into the AI's prompt. The prompt looks something like this:
"You are a helpful assistant. Use the following documents to answer the question. If the answer is not in the documents, say so. Documents: [chunk 1] [chunk 2] [chunk 3]. Question: [user's question]."
The AI reads the documents, reads the question, and writes an answer grounded in what it was given. Because the documents are right there in the prompt, the AI can cite them, quote them, and acknowledge contradictions between sources.
This is the generation step — and it's the step that looks like magic to the user. They asked a vague question and got a specific, sourced answer from a document they forgot existed.
Chunking
Break documents into bite-sized, meaning-preserving pieces that fit in the AI's memory.
Embedding
Turn each chunk into a numerical fingerprint that captures meaning, not just keywords.
Retrieval
Find the chunks whose meaning is closest to the user's question, even when words differ.
Generation
The AI reads the retrieved chunks and writes an answer grounded in your actual documents.
Why RAG changes everything for business
Before RAG, using AI in a business meant one of two things. Either you accepted generic answers from the AI's training data — which might be outdated, wrong for your jurisdiction, or completely irrelevant to your industry — or you went through an expensive process called fine-tuning, where you retrained the AI on your documents. Fine-tuning costs thousands of dollars, requires technical expertise, and needs to be redone every time your documents change.
RAG offers a third path: keep the AI general, but give it the right documents at the right time. Your documents can change daily. The AI stays current without retraining. The cost is a fraction of fine-tuning. And the setup, while not trivial, is within reach of a competent developer or a determined hobbyist.
For small businesses, this means you can build systems that were previously enterprise-only:
- Knowledge bases: staff ask questions in plain English and get answers from your policies, procedures, and precedents.
- Client-facing Q&A: a chatbot on your website that answers from your actual product specs, not generic internet guesses.
- Document analysis: upload a contract and ask "what are the termination clauses?" with citations to exact paragraphs.
- Compliance checking: ask whether a decision aligns with your internal guidelines, and get a reasoned response with references.
- Onboarding: new staff ask "how do I process a return?" and get the answer from your latest internal guide, not a three-year-old training manual.
The common thread: the AI speaks from your knowledge, not the internet's. For professions where accuracy and specificity matter — law, accounting, finance, healthcare, trades with complex compliance — this is transformative.
What goes wrong — and how often
Now for the part the vendors don't put in their marketing. RAG reduces hallucinations dramatically, but it does not eliminate them. Here are the failure modes I see most often in practice.
Retrieval misses
The system grabs the wrong chunks. Maybe the question used slang the embedding model didn't understand. Maybe two chunks looked similar in meaning-space but one was about residential lending and the other was about commercial. Maybe the relevant chunk was buried in a badly formatted PDF and the chunker split it across a page break, destroying the context.
When retrieval misses, the AI answers from the wrong document. It sounds confident. It cites a source. The source is just not the right one. I've seen this happen in about 5–12% of queries, depending on document quality and question ambiguity.
Context window overload
The AI can only hold so much text at once. If you retrieve ten chunks and each is 500 words, that's 5,000 words of context before the AI even starts writing. For some models, that's fine. For others, you're already hitting limits. The AI might start ignoring chunks at the end of the prompt, or it might fail to synthesise information across all of them. More retrieval is not always better.
The "up to" problem
LLMs are bad at nuance in numbers. A document that says "up to 80% LVR for investment properties" might get summarised as "80% LVR for investment properties." The "up to" gets dropped. The "for existing customers only" gets dropped. The "subject to valuation" gets dropped. These omissions can be expensive if someone acts on the simplified version.
Outdated documents
RAG is only as good as the documents you feed it. If your policy changed in March but the system still has the January version, the AI will answer from January. It has no way to know the March version exists unless someone uploads it. Document freshness is a human problem, not a technical one — but it's the problem that breaks trust fastest.
Formatting disasters
PDFs are the enemy of RAG. Tables get mangled. Footnotes get separated from their text. Headers and footers get treated as body content. Scanned PDFs — the ones that are really images — need OCR first, and OCR makes mistakes. A single misread digit in a loan table can turn a safe answer into a dangerous one.
"The demo is the easy part. The hard part is making it survive contact with real people, real data, and real deadlines for six months without breaking someone's trust."
What this actually costs
Let's talk money, because RAG pricing is more layered than simple chatbot usage.
Embedding generation: turning your documents into numerical fingerprints costs roughly $0.10–$0.50 per million tokens, depending on the model. For a 500-page document collection, expect a one-time cost of $2–$10 to embed everything.
Vector database: storing and searching embeddings runs on cloud services that cost $20–$100 per month for small-to-medium collections. Self-hosted options like Chroma or pgvector are free but require a server — roughly $50–$150 per month for a modest cloud instance.
Query costs: every time someone asks a question, you pay for embedding the question, retrieving chunks, and generating the answer. A typical RAG query costs 2–5 times more than a simple chat query because you're sending multiple chunks to the AI. For a business handling 500 queries a day, budget $150–$400 per month in API costs for a mid-tier model. Use a cheaper model and it drops to $30–$80.
Setup: building a basic RAG system takes 15–30 hours for someone who knows what they're doing. At professional rates, that's $3,000–$8,000. A proper business system with error handling, permissions, and integration takes 40–80 hours — $8,000–$20,000.
The hidden cost: maintenance. Documents change. Chunking strategies get refined. Retrieval quality drifts. Budget 2–4 hours per month of attention, or the system slowly becomes wrong without anyone noticing.
What it actually takes to build
A weekend enthusiast can build a "talk to your PDF" demo in an afternoon with tools like LangChain, LlamaIndex, or even no-code platforms. But a demo and a business system are different species. Here's what the gap looks like.
A demo needs: documents, a chunker, an embedding model, a vector store, and an LLM. Five components. Twenty lines of code. It works on your laptop. It impresses your friends.
A business system needs:
- Clean document ingestion: handling PDFs, Word docs, emails, and web pages. Dealing with scanned pages via OCR. Stripping headers, footers, and page numbers.
- Smart chunking: preserving paragraph boundaries, handling tables, respecting section headers, and maintaining context across splits.
- Permission controls: making sure the mortgage broker sees lending documents but not HR files. Making sure clients only see public-facing content.
- Error handling: what happens when retrieval finds nothing? When the AI refuses to answer? When the vector database is down? When a document is corrupted?
- Accuracy verification: testing the system against a set of known questions with known correct answers. Measuring retrieval precision and answer faithfulness over time.
- Integration: getting the answer into the user's actual workflow — Slack, email, CRM, or a web interface they actually want to use.
- Monitoring: tracking which questions fail, which documents are most queried, and where the system is drifting from reality.
The gap between demo and business system is not a small one. It's the difference between a toy and a tool. Both are valid starting points — just be honest about which one you're building.
DIY, buy, or get it built
You have three realistic paths for implementing RAG in your business.
Path 1: Use an existing platform
Tools like Notion AI, Microsoft Copilot, and various SaaS knowledge-base products now offer RAG-style features out of the box. You upload documents, ask questions, and get answers. Fast, cheap, no code.
Cost: $20–$50 per user per month.
Limitations: you fit your workflow to their model. Integration with your other tools is limited. You don't control the retrieval quality. And your documents live on their servers, which may be a privacy concern for sensitive industries.
Path 2: Build it yourself
If you have technical skills — or a technically minded staff member — you can build a custom RAG system using open-source tools. This gives you full control over chunking, retrieval, and which models you use.
Cost: $50–$200 per month in hosting and API fees. The labour is your own time.
Reality check: I've seen smart people build 80% of a RAG system and then stall on the last 20% — the error handling, the permission model, the integration, and the ongoing maintenance. Building RAG is a great learning project. Running it as a business system is a different commitment.
Path 3: Get it built for you
For businesses where the knowledge system is critical — law firms, accountancy practices, mortgage brokerages, professional services — the done-for-you path usually makes sense.
Cost: $5,000–$20,000 for initial build, then $300–$1,000 per month for hosting, monitoring, and refinement.
What you get: a system designed around your actual documents, your actual questions, and your actual workflow. Proper error handling. Integration with your tools. Ongoing accuracy monitoring. Someone to call when it breaks.
Want to explore what's possible for your document collection?
I offer a free, no-pressure AI opportunity assessment. We look at one knowledge problem that's costing you time — chasing documents, answering repeat questions, onboarding staff — and I give you a straightforward read on whether RAG can help, what it would take, and what it would cost.
Book a free assessmentWhat to do next
If you've read this far, you understand what RAG is: a way to ground AI answers in your actual documents rather than its general training memory. You know the four steps — chunking, embedding, retrieval, generation. You know the costs. You know the failure modes. And you know the gap between a weekend demo and a system your staff can trust.
Here's what I'd do with that knowledge:
- Pick one document pain point. The question your team answers ten times a week. The policy everyone hunts for. The manual nobody reads because it's 200 pages.
- Gather the source documents. Are they clean text? Scanned PDFs? Emails? The format matters.
- Try a simple tool. Upload them to a platform like Notion AI or a basic RAG demo and ask real questions. Watch where it shines and where it breaks.
- Measure the gap. How often does it give wrong answers? How often does it miss the right document? Is 90% accuracy good enough for your use case, or do you need 99%?
- Decide your path. If the simple tool works well enough, use it. If it doesn't, and this process is critical, consider whether custom build is worth the investment.
The articles below will take you deeper into the machinery — how vector databases work, how to compare models for accuracy, and how to build a simple knowledge base from scratch.
Building a knowledge system and hitting walls?
I've built RAG systems for mortgage brokers, accountants, tradespeople, and professional services firms. If you're stuck on retrieval quality, chunking strategy, or making the answers feel trustworthy — get in touch.