A language model learns from text — billions of sentences compressed into billions of numbers called weights. Ask it a question and it answers by pattern-matching against everything it absorbed during training. That sounds powerful, and often it is. But it has a silent flaw: the weights are frozen.
Once training ends, the model's knowledge is fixed. Ask about a news story from last week and it has nothing to say. Ask about your company's internal documents and it cannot possibly know them. The model can only confabulate — invent plausible-sounding text with no real source to back it up.
Retrieval-Augmented Generation (RAG) was introduced in 2020 by Lewis et al. (Facebook AI Research) to fix exactly this. Instead of generating from memory alone, the model first retrieves relevant passages from an external corpus, then generates an answer that is grounded in those passages. The weights provide language understanding; the corpus provides up-to-date, verifiable facts.
The idea is elegant because it separates two very different problems: what to say (the retrieved documents) from how to say it (the language model). Update the corpus and the answers update — no retraining required.
Comments
Loading comments...