Writing · AI · Higher Education

What is RAG? A plain-language explanation for campus teams

← All writing

If you work on a campus, you've probably heard someone say "we should build a RAG." It sounds technical, but the idea is simple. A RAG system is an AI chatbot that looks things up in a set of your documents before it answers, instead of answering from memory alone.

This guide explains how that works, what it fixes, and where it still goes wrong. It builds on the broader piece on private AI in higher education and pairs with the guide on what data you can put into an AI tool.

The problem RAG is trying to solve

A general language model knows a lot about the world and nothing about your campus. Ask it what your institution's data retention rule is, or what your IRB requires for survey data, and it will either say it doesn't know or, worse, produce something that sounds right. It also can't see documents written after it was trained.

You could retrain a model on your own files, but that's expensive and slow, and every policy change means starting over. RAG takes a different route: keep the model as it is, and give it the right pages at the moment someone asks a question.

How it works, step by step

Think of an open-book exam where a helpful assistant fetches the right pages for you.

  1. Prepare the documents. Policies, handbooks, syllabi, or reports are cut into short passages. Text is cleaned, and anything that shouldn't be in the system is removed first.
  2. Index them. Each passage is converted into a list of numbers that captures its meaning, and stored in a searchable index. That lets the system find passages about "keeping data after a study ends" even when the words differ from the question.
  3. Retrieve. When someone asks a question, the system searches the index and pulls the few passages that match best.
  4. Generate. The question and those passages go to the language model, with an instruction to answer only from what it was given and to point to the source.
  5. Show the evidence. A good tool displays the answer and the passages behind it, so the reader can check.

What RAG does well

It works best when the answer lives in a body of documents that people need to search but don't want to read cover to cover: policy libraries, grant guidelines, course materials, internal procedures. Updates are simple, since you replace a document and re-index. And because every answer can point to a source, it's easier to build trust than with a bare chatbot.

Where it still goes wrong

Questions to ask before a campus builds one

Skip the tool comparison at first and start with these:

If you can't answer the first three, the project isn't ready for technology yet. Fix the documents and ownership first. The AI step is the easy part.

A small place to start

Pick one narrow, low-risk document set, such as a single office's public FAQ or a handbook with no personal data. Build a prototype, run your test questions, and read the failures. You'll learn more from twenty bad answers than from a vendor demo. If a pilot works, widen it slowly. The same governance questions in the campus AI policy article apply here too.

If your team needs help scoping one

I design and review document-grounded AI projects for universities, from choosing the use case to testing answers against real questions. Details are on the services page.

Common questions

What does RAG stand for? Retrieval-augmented generation. The system retrieves relevant passages from a set of documents, then asks a language model to write an answer using those passages.

Does RAG stop an AI model from making things up? It reduces the problem but doesn't remove it. If the retrieval step pulls the wrong passage, or the right passage isn't in your documents, the model can still give a confident wrong answer. Showing the source passage next to every answer lets a person check.

Is RAG the same as training a model on my documents? No. Training changes the model itself. RAG leaves the model alone and hands it relevant text at question time. That makes it easier to update (swap a document and you're done) and easier to keep data in-house.

Can RAG run without sending data to a vendor? Yes, if the model and the document index both run on infrastructure you control. Whether that's practical depends on your documents, your budget, and your staff, so decide it before you build.


Samah Alshrief, Ph.D.

AI data scientist and research-computing specialist. I help researchers and universities with research data management, data services, and private AI. Get in touch →