Softgen

AI

What is RAG? Retrieval-augmented generation in plain English

6 min readUpdated 24 September 2026

Key takeaways

  • RAG retrieves relevant passages from your own content and gives them to the model, so answers are grounded in your data.
  • It's the right default when knowledge changes often or answers must cite sources.
  • Fine-tuning changes how a model behaves; RAG changes what it knows at answer time.
  • Retrieval quality — chunking, search and ranking — decides most of the result.
  • Production RAG needs evaluations, citations, access control and monitoring.

The short answer

Retrieval-augmented generation (RAG) is a way of making an AI model answer from your information. Instead of relying only on what the model learned in training, the system first retrieves the most relevant passages from your documents, database or help centre, then gives them to the model to generate an answer — ideally with citations.

It's how a support copilot answers from your product docs, or an internal assistant answers from your policies, without making things up.

How RAG works, step by step

  1. Ingest. Your content — documents, web pages, tickets, PDFs — is split into sensible chunks.
  2. Index. Each chunk is turned into an embedding (a numerical fingerprint of its meaning) and stored, often alongside a keyword index.
  3. Retrieve. When someone asks a question, the system finds the chunks most relevant to it — usually by combining semantic and keyword search, then re-ranking.
  4. Generate. The model receives the question plus the retrieved chunks and writes an answer grounded in them.
  5. Cite. A good system shows which sources it used, so people can check.

RAG vs fine-tuning

In one line: RAG changes what the model knows at answer time; fine-tuning changes how it behaves. Most products need RAG first — the full comparison is in RAG vs fine-tuning.

Why RAG demos work and RAG products fail

A demo on ten tidy documents looks brilliant. Production breaks on:

  • Bad chunking — answers split across chunks, tables mangled, context lost.
  • Weak retrieval — the right passage exists but isn't found.
  • No evaluation — nobody knows whether a change made answers better or worse.
  • Permissions — users seeing content they shouldn't.
  • Stale content — the index drifts out of date.

What production RAG needs

  • Hybrid search and re-ranking so the right passages come back.
  • Evaluations: a test set of real questions scored before every change (AI evals explained).
  • Citations in every answer, and a graceful "I don't know".
  • Access control that respects who can see what.
  • Monitoring and feedback so quality improves over time.

How we build RAG at Softgen

We build RAG copilots and assistants into production — with evaluations, guardrails, citations and observability — as part of our AI development work. AI builds start from £18,000 on a fixed price and date.

/01FAQ

Quick answers.

What does RAG stand for?

Retrieval-augmented generation: the system retrieves relevant passages from your own content and gives them to an AI model so its answer is grounded in your data.

How much does it cost to build a RAG system?

A production RAG copilot with Softgen starts from £18,000, including ingestion, retrieval, evaluations and deployment into your product.

/02Keep reading

Related guides.

All insights

Ready when you are

Let's build the thing.

Tell us what you're building and we'll come back with a plan, a price and a date. No obligation, no jargon.