RAG is an open book exam for an AI model. Instead of asking the model to remember, you store your documents in a searchable index, and when a question comes in, the system finds the few passages that match, pastes them in front of the question, and asks the model to answer from them. The model never learns your documents. It reads the relevant bits fresh each time, which is cheaper and easier to update than training.
Key facts
- 3parts of every RAG system: an index of your text, a search step, the model
- ~150,000words in a 200,000 token context window, Anthropic's own figure; the largest current windows hold about 555,000
- ~90,000words in a 300 page book, so a shelf of manuals still overflows even the biggest window
- 0training runs required: you update RAG by replacing files, not by retraining a model
- Word counts from Anthropic's models page (200k tokens is about 150k words; 1M is about 555k); 300 pages at 300 words per page; Microsoft Learn definition of RAG; checked 30 September 2026
How do I give AI access to my own documents?
There are three ways, and RAG is the middle one. The first is to paste the document into the chat. It works for one file at a time and it costs tokens on every message. The second is fine tuning, which changes the model itself; it is slow, expensive, and the model still cannot quote your file accurately. The third is RAG: index the files once, search them on every question, hand the model the matches. Most products that say chat with your documents, including the projects and knowledge features in the big chat apps, are RAG under the hood.
For a small business the practical version is a folder of PDFs and text files, an indexing tool, and a chat window. The model reads three or four relevant passages per question, not the whole folder.
| Method | How it works | Updates when files change? | Can quote the source? | Cost |
|---|---|---|---|---|
| Paste into chat | Whole file in every message | Yes, by pasting again | Yes | Tokens on every message |
| RAG | Index once, search per question | Yes, re-index the file | Yes | Indexing plus normal usage |
| Fine tuning | Retrain the model on your data | No, retrain again | No, it guesses | Training run plus hosting |



