AI engineering
Retrieval-augmented generation, explained for business teams
How AI assistants answer from your own documents, why they still make mistakes, and what to ask before you build one.
2 min read
Retrieval-augmented generation — usually shortened to RAG — is the most common way to make a language model useful on your company's own information. Instead of hoping the model memorised your policies, the system first searches your documents for relevant passages and then asks the model to answer using only those passages.
How it works, in four steps
- Your documents are split into sections and indexed so they can be searched by meaning, not just keywords.
- When someone asks a question, the system retrieves the most relevant sections.
- The model is given the question and those sections, with instructions to answer only from them.
- The answer is returned with links to the sources it used, so a person can verify it.
Why it still gets things wrong
Most RAG failures are retrieval failures. If the search step returns the wrong passage — an outdated policy, a similar-sounding product, a table that lost its structure when it was extracted — the model will produce a fluent answer built on the wrong facts. Improving document preparation and search quality usually matters more than switching to a bigger model.
Questions to ask before you build
- Which documents are authoritative, and who keeps them up to date?
- Do different users have permission to see different documents?
- What should the assistant say when the answer isn't in the documents?
- How will you measure whether answers are correct?
- Where is the data processed and stored, and does that meet your obligations?
What good looks like
A well-built assistant cites its sources, says “I don't know” when retrieval comes back empty, respects access permissions, and is tested against a set of real questions with known answers. It is a tool that makes your team faster at finding information — not a replacement for the judgement of the people who own that information.
Working on something similar?
Send us a short description and we’ll share how we would approach it.