KESTIR CZGet started
Answers

What Is RAG and Does Your Company Need It?

RAG connects AI to your own documents without retraining the model. Here is how it works, when it pays off, and when pasting documents into the prompt is enough.

KESTIR editors, 28 November 2026, 3 min read

In short

  • For every question, RAG searches your documents for the relevant passages and adds them to the prompt. The model is not retrained, and newly indexed documents are available immediately.
  • A knowledge base of up to roughly 500 pages fits into the prompt whole, so you don't need RAG.
  • Larger or frequently changing material is the case for RAG. Plan for ongoing maintenance and for permissions, so everyone sees only what they are allowed to.
  • RAG lowers the risk of made-up answers but does not eliminate errors. Require source citations.

RAG is a way to connect an AI model to your own documents without retraining it. For every question, the system finds the relevant passages in your documents, adds them to the question, and the model writes its answer from them. Does your company need it? If your material is under roughly 500 pages, probably not.

How RAG works

The abbreviation stands for retrieval-augmented generation. First, your documents are split into smaller chunks. Each chunk is converted into an embedding, a numerical fingerprint of its meaning. The fingerprints are stored in a vector database, a store that searches by similarity of meaning rather than by matching words.

When you ask a question, the system finds the closest chunks and adds them to your question. The model then answers from your material, not only from what it learned in training. Its knowledge ends at a certain date and goes stale from there. RAG gets around this: newly indexed data is available immediately.

Cost is another advantage. Fine-tuning a model on your data is computationally expensive, and the result is frozen at a snapshot of that data. With RAG, you simply change or add sources.

When you don't need RAG

Anthropic gives a simple rule: if your knowledge base is smaller than 200,000 tokens (about 500 pages of text), put the whole thing into the prompt. No RAG or similar technique is needed. This works well for a single quality manual or a set of internal policies.

RAG makes sense when you have more documents, when they don't fit into the prompt, or when they change often. Databricks also recommends it for frequently changing information.

What to do

  1. Measure your material. If it is under 500 pages, try putting everything directly into the prompt first.
  2. Decide on sources. Documents often live in SharePoint, databases and shared drives. Choose the ones the AI really needs.
  3. Solve permissions first. According to Microsoft, users and agents should only receive content they are entitled to see. Financial data should stay with the finance team, even when the CEO asks.
  4. Prepare the content. Answer quality depends on how documents are chunked and processed. Scanned PDFs need optical character recognition (OCR).
  5. Combine search by meaning with search by exact words. Meaning-based search can miss things like an order number or an error code, which is why a method called BM25, which finds exact matches, is added.
  6. Require citations. When an answer points to its source document, you can check it against that document.
  7. Name one person responsible for keeping content current. A knowledge base has to be updated continuously, or quality declines.

What to watch out for

RAG does not eliminate errors. According to IBM, it reduces the risk of made-up answers but does not make a model flawless.

Traditional RAG also loses context. A chunk such as “revenue grew by 3%” doesn't say which company or period it refers to. Anthropic addresses this by adding a short description to each chunk. In its tests, this cut failed retrievals by 49% (from 5.7% to 2.9%). Adding further re-ranking of results cut them by 67%.

RAG has running costs: indexing, the vector database and maintenance of embeddings. Every query also goes through search and ranking. Fine-tuning, by contrast, is expensive up front. For many production systems, Databricks recommends a combination: fine-tuning for understanding the domain and the shape of the output, RAG for current facts.

Protect the database itself, too. According to IBM, if someone breaks into it, they may be able to convert embeddings back into the original data, especially when the embeddings are not encrypted.

AI agent use cases for companies by industryData security when you deploy AI in your companyAI news: what changed and what it means for a company

Sources

  1. IBM: What is retrieval augmented generation (RAG)?
  2. Anthropic: Introducing Contextual Retrieval
  3. Microsoft Learn: RAG and Generative AI - Foundry IQ (Azure AI Search)
  4. Databricks: RAG vs. fine-tuning

Prepared by AI from the listed sources and checked automatically against them. Not legal advice.

Want to see where AI would pay off in your company?

You tell us how your company runs and we both see whether we are a fit.

Get started

More articles