K-Culture GlossaryㄱTechnical words in the news
RAG
A method that has AI look up source material before answering. The go-to fix for hallucination.
In plain words
RAG (Retrieval-Augmented Generation) is a method where AI reads relevant material before answering a question. It works in three steps — when a question comes in, the system retrieves relevant passages from documents or databases, then generates an answer based on that evidence.
The "open-book exam" analogy fits well. Relying on memory alone (closed-book) makes plausible-sounding wrong answers — hallucinations — easy to produce, but letting the model check a textbook first improves accuracy and lets it cite sources.
This is the standard approach companies use to build "AI that knows our internal documents." It's cheaper than retraining the model (fine-tuning), and answers update immediately when the source material changes. Behind stories about "a chatbot that answers company policy questions" or "AI grounded in medical literature," there's almost always RAG at work.
How it shows up in the news
"They adopted a RAG architecture to reduce hallucination" — meaning they made the model look up supporting documents before answering, to boost reliability.
Try it yourself
- Before attaching any document (a product manual, terms of service, internal policy, etc.), first decide what the ideal answer should be yourself — "If someone asks about the refund deadline, what should the answer look like?" Defining the expected output first is rule number one for people who actually build RAG systems.
- Now attach the document and ask: "Answer based only on what's in this document. If it's not in the document, just say 'not in document.' Question: how many days is the refund deadline?" — Compare this to the ideal answer you defined in step 1.
- Try setting a trap — deliberately ask about something not covered in the document: "What's the refund deadline for international shipping?" If it says "not in document," that's a pass; if it makes up something plausible-sounding, that's a hallucination.
- One more step: paste the answer you got into a new conversation and ask, "Grade whether this answer matches the original document text below." This is a mini version of what's called "using an LLM as an evaluator" in practice — using AI to check AI's own answers. Keep a running list of questions and their ideal answers, and rerun it whenever the source document changes — that's essentially what companies mean by a test set.
Fine-tuning vs. Retrieval-Augmented Generation: what's the difference
Does it hand over reference material before answering?, Does it retrain the model's brain?
People use the phrase "we trained the AI on our company data" for both, but the methods are completely different. One retrains the model itself to change its underlying behavior, while the other leaves the model untouched and simply fetches relevant documents to hand over at query time. When a company says "let's build an internal chatbot," what they usually need is the latter.
| Aspect | RAG | Fine-tuning |
|---|---|---|
| What changes | Model stays the same. What changes is the material handed to it | Retrains the model itself |
| What it's good at | Answering accurately based on up-to-date facts and internal documents | Internalizing tone, format, and a feel for a specific domain |
| When the data changes | Just swap the documents and it's reflected immediately | Requires retraining. Costs time and money |
| Can it cite sources? | Can show the retrieved documents as evidence | Cannot point to where it learned something |
| Analogy | Placing reference materials on the employee's desk | Training an employee |
Rule of thumbIf the issue is tone and format, it's fine-tuning; if the issue is what the model knows, it's Retrieval-Augmented Generation.
See also
Stories using this term
No story has used this term yet. New ones attach here automatically.