RAG, short for retrieval-augmented generation, is a technique in which an AI system first finds the relevant passages in your own documents and then hands them to the language model to write an answer. The model therefore answers from your current information, with sources, rather than from its general memory.
How it works
RAG works in two steps. First, your documents, such as manuals, terms and conditions, quotations or procedures, are split into chunks and converted into embeddings, which are stored in a vector database. When someone asks a question, the system finds the chunks that best match it in meaning. Those chunks go to the language model together with the question, along with an instruction to answer only from them. The model does not need to know anything about your business: it reads it at the moment it answers.
What it does for an SME
- An internal help desk that answers questions about procedures, price lists or technical data sheets, pointing to the right document.
- Customer service that drafts answers based on your actual terms and product information.
- New staff who can look up how things are done without constantly interrupting a colleague.
Because the knowledge sits in the documents rather than in the model, you simply update the document when something changes.
What to watch
RAG is only as good as the documents behind it. Outdated, duplicate or conflicting versions lead to wrong answers, so data quality comes first. Sort out access as well: not every member of staff may see every document, and the system must respect that. Splitting documents and the search itself need fine-tuning, and a first version rarely finds the right passages straight away. Test with real questions from your own people. Allow a few weeks for a first usable version, much of which goes into cleaning up and organising the documents themselves. That work also pays off outside the AI application.
How SBC works with it
SBC’s own systems search earlier work, emails and documents in this way before proposing anything. For clients we build RAG applications through custom AI development, on their own documents, with the access rights they already have and with a source for every answer.
Also known as: retrieval augmented generation, RAG system