What Is a Prompt? Prompts and System Prompts
What a prompt is in AI, what a system prompt does and how to write a good prompt. Explained simply, with examples from everyday office work.
Read the articleOctober 27, 2026 · 11 min read
RAG (retrieval augmented generation) means: before the AI answers, a system finds the relevant passages in your documents. The AI writes its answer from those passages, not only from its training. A small business often does not need a system of its own for this, as long as the documents fit into the chat.
A RAG system only pays off with a very large number of documents that change often, or when many people with different permissions need to look things up in them. My AI employees work with knowledge in files: each one has a folder of its own with a personnel file, rules and its own knowledge files. That is a simpler route than RAG; why it is enough for many is in Why ChatGPT Forgets and AI Employees Don't. All the basics about AI are collected on my AI Basics page.
The three words describe the process:
A language model, a large language model or LLM for short, is the program behind chats such as ChatGPT or Claude. Without RAG it answers from memory, from what it saw during training. With RAG it answers more like in an open-book exam: it gets the relevant pages put in front of it.
Patrick Lewis and colleagues coined the term RAG in a research paper in 2020. Anthropic, the company behind Claude, describes RAG today as a technique that combines information retrieval with text generation. The goal: more accurate answers that rest on evidence. The data is retrieved only when the question is asked, and then lands in the model's context window, the area it has in front of it right now. I explain what the context window is in my article on the context window.
Anthropic describes the typical setup in two phases:
Once, in advance, the preparation:
With every question:
One catch that Anthropic names itself: searching by meaning sometimes misses exact matches, such as a specific error code. That is why Anthropic recommends combining it with a classic keyword search.
An example, made up for illustration: a heating installer with eight people has thousands of pages of manufacturer documents, maintenance manuals and warranty terms. A technician asks on their phone: "What service interval applies to boiler X?" The system finds the passage in the manual, and the AI answers with the page reference. Without RAG, the model would guess from its general knowledge, and that is exactly where errors creep in. Why AI guesses in that case is covered in AI Hallucinations: Why AI Makes Things Up.
In 2024, Anthropic published a clear rule of thumb: if your knowledge base is smaller than 200,000 tokens, which Anthropic puts at about 500 pages, you can simply include all of it, without RAG. The figures refer to the models of that time, so check the limit for your own tool. The principle still holds: whatever fits into the context needs no search in front of it.
Some tools already do RAG by themselves. In Claude, a project is a workspace where files and instructions are ready for every chat in it. In Claude projects, according to Anthropic, Claude automatically switches to a RAG mode as soon as the project knowledge approaches the limit of the context window. Then up to ten times as much fits in, and Claude searches the project knowledge with a search tool of its own. This is available on the paid plans Pro, Max, Team and Enterprise.
| Your situation | What I recommend |
|---|---|
| A handful of documents, such as a price list, service description, terms and conditions | Put them straight into the chat or a project. No RAG needed |
| A fixed task with maintained knowledge, such as quotes in your tone | Knowledge in files or project instructions, see How to Use Claude Projects Right |
| Many documents in a Claude project | On the paid plans, the project switches to RAG by itself |
| Thousands of documents that change often, several people with different permissions | A RAG system of your own can pay off. Plan the permissions first |
| The AI should learn a style or a format | Not a case for RAG. Good examples in your request are usually enough |
The table is my recommendation, not a vendor rule. More detail on when a maintained list of frequent questions is enough is in AI Knowledge Management for Companies.
Three approaches often get mixed up.
| What happens | Good for | |
|---|---|---|
| RAG | Relevant passages are searched for and passed along with every question | up-to-date information, domain knowledge, answers with sources |
| Fine-tuning | The model is trained further with additional data | a specific domain, a task or a writing style |
| Knowledge in files | The AI reads its maintained files with every assignment | fixed roles with a manageable amount of knowledge |
The first two rows follow Anthropic's glossary. It also states that the Claude API, the interface for developers, does not currently offer fine-tuning. The third row is my own approach and technically the simplest form: the role reads its files itself with every assignment, with no database in front.
RAG stands for retrieval augmented generation: producing an answer after looking things up first. Before answering, the AI gets relevant passages from your documents and writes its answer from them.
A system with two parts: a search that finds relevant chunks in your documents, and a language model that writes the answer from them. Usually there is also a vector database in which the chunks are stored by meaning.
Usually not right away. As long as your documents fit into the chat or a project, you pass them along directly. A system of your own pays off with very many documents that change often, or when many people with different permissions search them.
RAG passes relevant documents to the model with every question; the model itself stays the same. Fine-tuning trains the model further with additional data. According to Anthropic, RAG helps with up-to-date information and source citations, fine-tuning more with a domain, a task or a writing style.
In projects, yes, automatically: when the project knowledge approaches the limit of the context window, Claude switches to a RAG mode according to Anthropic and searches the knowledge with a tool of its own. This applies to the paid plans.
Write down the ten questions that come up again and again in your business, and check whether the answers are already in your documents. If those documents fit into a project, start there. You can still build a system of your own later. Before that, AI Hallucinations: Why AI Makes Things Up is worth a read, because that is exactly what RAG helps against. Next up is what a prompt is and how to write one so the AI uses your documents properly. You will find every technical term from this article in my AI glossary. How others prepare their knowledge for AI is what I show in my community AI Employee Framework.
What a prompt is in AI, what a system prompt does and how to write a good prompt. Explained simply, with examples from everyday office work.
Read the articleWhat is an AI model? Simply explained: telling model, app and vendor apart, reading model names, and understanding open and closed models.
Read the article
Kevin Welter
Developer, IT architect, author of technical books (Kubernetes, cloud infrastructures) and speaker. Runs his business with an AI workforce of fifteen AI employees and shows solo business owners in his community how to hire their first AI employee.
Your first AI employee up and running within an hour
Join the community$5/month founding price, first 50 members