General AI assistants know a lot about the world, but nothing about your business: your policies, products, processes or past projects. Retrieval-augmented generation, usually shortened to RAG, is the most common way to fix that. It lets an AI answer questions using your own documents, and show where each answer came from. It powers many customer support assistants and internal knowledge tools. Here's how it works in plain English.

The idea in one paragraph

When someone asks a question, a RAG system first retrieves the most relevant passages from your documents, then augments the AI's prompt with those passages, and finally the AI generates an answer based on them. It's like giving a very fast researcher the right pages from your handbook before they answer.

How a RAG system is built

StepWhat happensWhy it matters
1. CollectGather documents: policies, FAQs, manuals, help articlesAnswers can only be as good as the sources
2. CleanRemove duplicates and outdated versionsPrevents contradictory answers
3. ChunkSplit documents into passagesRetrieves precise, relevant sections
4. EmbedConvert passages into numerical representations of meaningEnables search by meaning, not just keywords
5. StoreSave them in a searchable index, often a vector databaseFast retrieval
6. RetrieveFind the passages most relevant to each questionThe key to accuracy
7. GenerateThe AI writes an answer from those passages, with citationsGrounded, checkable answers

Where RAG is useful

  • Customer support assistants answering from help articles and policies
  • Internal knowledge assistants for HR policies, processes and how-to guides
  • Sales enablement, answering product questions from specifications and case studies
  • Document search across contracts, reports or research
  • Onboarding, helping new staff find answers without interrupting colleagues

RAG vs fine-tuning vs a general assistant

ApproachBest forUpdatesShows sources
General AI assistantGeneral questions and writingN/ASometimes
RAGAnswering from your own, changing informationEasy: update the documentsYes
Fine-tuningTeaching a model a style, format or specialised taskRequires retrainingNo

Many systems combine approaches, but RAG is usually the right starting point for business knowledge.

What makes RAG accurate

  • Good source content: current, clear, non-contradictory documents
  • Sensible chunking: passages large enough to keep context, small enough to stay precise
  • Strong retrieval: combining meaning-based and keyword search often helps
  • Clear instructions: answer only from the sources, and say "I don't know" when unsure
  • Citations: link every answer to its source
  • Evaluation: test with a set of real questions and expected answers
  • Access control: people only get answers from documents they're allowed to see

Limitations to understand

  • If the documents are wrong or outdated, answers will be too
  • Questions needing calculation or reasoning across many documents can be harder
  • Poor retrieval leads to confident answers based on the wrong passage
  • Sensitive documents need careful permission handling
  • Ongoing maintenance is needed as content changes

Questions to ask before building

  1. What questions should it answer, and for whom?
  2. Where does the knowledge live today, and who keeps it current?
  3. Who should be able to see which information?
  4. What should happen when it doesn't know?
  5. How will we measure accuracy?

Costs in practice

Most of the effort is in preparing content, getting retrieval right and testing, rather than in the AI model itself. Running costs depend on the volume of questions and documents. A focused pilot, on one team or one set of documents, is the sensible way to start.

Example: an HR policy assistant

A 60-person company wants staff to get quick answers to HR questions.

Design decisionChoice
SourcesEmployee handbook, holiday policy, benefits guide, expenses policy
AccessAll staff can see general policies; managers also see management guides
Where it livesInside the company's chat tool
AnswersShort, with a link to the exact policy section
When unsureSays so and suggests contacting HR
UpdatesHR updates documents; the index refreshes automatically
MeasurementAccuracy checks on 50 common questions, plus a thumbs up or down on each answer

The result: staff get instant, sourced answers, and HR spends less time on repeat questions.

How to evaluate a RAG system

What to testHow
Retrieval accuracyDoes it find the right passage for each test question?
Answer accuracyIs the answer correct and complete?
CitationsDo sources actually support the answer?
RefusalsDoes it say "I don't know" when the answer isn't in the documents?
PermissionsDoes it respect who can see what?
SpeedAre answers fast enough for everyday use?

Build a test set of real questions with agreed answers, and rerun it whenever documents or settings change.

How we help

Our internal knowledge assistants and AI chatbots and assistants are built on RAG, with citations, access controls and evaluation from day one. For broader context, read our guides to AI agents and AI chatbots for small business.

The short version

RAG lets AI answer from your own documents by retrieving relevant passages before generating an answer, ideally with citations. It's easier to update than fine-tuning and suits support, internal knowledge and sales. Accuracy depends on good content, retrieval, clear instructions, testing and access controls.