Never miss another lead. Get a free missed-lead audit or see all quick wins
Learn · Guide

RAG: AI that knows your documents.

General-purpose AI doesn't know your employee handbook, your church's volunteer policies, or last quarter's board minutes. Retrieval-augmented generation (RAG) fixes that — safely, and without training a model on your data.

Key points

  • RAG finds the most relevant passages in your documents and gives them to the AI to answer from.
  • It produces more accurate, up-to-date answers with citations — without retraining a model.
  • The two things that make or break RAG: clean source documents and permission-aware retrieval.

How RAG works

RAG works in two phases: preparing your documents once, then retrieving from them on every question.

rag-pipeline
# 1. Prepare (once, then keep in sync)
documents → split into passages → create embeddings → search index

# 2. Answer (every question)
question: "How many PTO days do new staff get?"
  → search index       # find the 5 most relevant passages
  → check permissions  # only passages this user may see
  → model answers      # using only those passages
  → "New staff receive 10 PTO days… [Handbook §4.2]"

Embeddings are numeric fingerprints of meaning, so a search for "time off" also finds passages about "vacation" and "PTO." The model is instructed to answer only from what was retrieved — and to say so when the answer isn't there.

Why RAG beats "just asking the AI"

  • Accurate & current: answers reflect your latest documents, not the model's training data.
  • Citations: people can click through and verify the source.
  • No retraining: update a document and the answers update with it.
  • Privacy-friendly: your documents aren't used to train the model.

RAG vs. fine-tuning

RAGFine-tuning
What it changesWhat the model can look upHow the model behaves or writes
Best forFacts, policies, knowledge that changesConsistent style, format, or specialized tasks
UpdatingInstant — edit the documentRequires retraining
CitationsYesNo
Typical choiceMost organizations, most of the timeSpecialized cases, often combined with RAG

Examples

  • Staff handbook assistant that answers HR and process questions with links to the exact section.
  • Policy Q&A for compliance, safety, or child-protection policies.
  • Member or customer FAQ grounded in approved answers, with escalation to a person.
  • Sermon or content archive search — "What have we taught about generosity?"
  • Support assistant grounded in product manuals and past resolved tickets.

Permissions: the part people forget

A RAG system must respect who is allowed to see what. If the index contains HR files, board minutes, or counseling notes, a careless setup could surface them to anyone who asks the right question.

  • Index only what the assistant actually needs.
  • Carry document permissions into the search, so users only retrieve what they could already open.
  • Exclude highly sensitive categories entirely unless there's a strong reason and strong controls.
  • Test with users at different access levels before launch.

Built-in assistants like Microsoft 365 Copilot and Gemini in Google Workspace use your existing file permissions — which means over-shared folders become over-shared answers. Clean up sharing before you switch them on.

Getting started

You may not need a custom build. Many assistants now let you upload files to a project or connect a shared drive. Custom RAG makes sense when you need tighter permission control, many sources, high accuracy with citations, or a customer-facing experience.

Either way, the best investment is in the documents themselves: current, de-duplicated, clearly titled, and with obsolete versions removed. WHU AI's knowledge assistant builds include that cleanup, evaluation, and monitoring.

Want help applying this? Talk with an engineer — free.