What is RAG
Full name: Retrieval-Augmented Generation
Also known as: retrieval-augmented generation, retrieval augmented generation
Definition
RAG (retrieval-augmented generation) is a method where AI answers from your documents: it first finds the relevant passages, then writes the answer from them.
Why it matters
RAG is a common way to reduce made up answers, by giving the model your own text to answer from, and it is how a customer facing assistant can quote your real cancellation rule instead of a plausible one.
Common mistakes
Believing RAG prevents made up answers, when it reduces them and the model can still misread or add to a passage.
Related terms
Worked exampleIllustration
"What happens if I cancel on the day?" at a fictional pilates studio
Question
What happens if I cancel on the day?
Retrieved from the sheet
- You can cancel a class up to 24 hours before it starts.
- A later cancellation counts as a used class.
- To move a class, reply with the day you prefer.
Not retrieved
- Classes are for adults only.
- Bring a towel and water.
RAG off
- You can cancel up to 12 hours before at no charge.
What happened
RAG off Answering from its general training, the assistant writes "You can cancel up to 12 hours before at no charge", a rule the studio does not have.
Search RAG on: the question is matched against the policy sheet.
Retrieve The 3 closest passages go into the prompt, with "answer only from these, and say which one you used".3 passages
Answer "Cancellations are up to 24 hours before class. A same day cancellation counts as a used class. (Source: policy sheet, cancellations)"
RAG changed where the answer came from. If the sheet is out of date, so is the answer, so keep the sheet current.
Illustration
Where the answer comes from
- QuestionWhat happens if I cancel on the day?
- SearchThe question is matched against the 40 passages of the policy sheet
- The 3 closest passagesCancellationsLate cancellationMoving a class
- Into the promptAnswer only from these passages, and say which one you used.
- AnswerUp to 24 hours before class. A same day cancellation counts as a used class.Source: policy sheet, cancellations
RAG on: the answer comes from the sheet and names its source. If the sheet is wrong or out of date, so is the answer.
Definition
RAG, retrieval-augmented generation, connects a language model to your documents. When a question comes in, the system first searches the documents for the most relevant passages, usually with embeddings stored in a vector database, then puts those passages into the prompt and asks the model to answer from them, ideally naming the source. The model itself does not change: what changes is what it reads before it answers. The idea comes from a 2020 research paper that paired a language model with a searchable index of documents. Many chat tools do RAG for you when you upload files to a project.
Why it matters
It also moves the work: the answers are only as current and correct as the documents it searches, so keeping one current policy sheet matters more than any setting.
Directly related: Vector Database, Embedding, Hallucination.
Improvement tips
- Keep one current version of each document the assistant searches, and remove the old ones.
- Ask the assistant to answer only from the retrieved passages and to name the source.
- Give a customer facing assistant only customer facing documents.
- Tell it what to do when the answer is not in the documents: say it will check, and pass the chat to a person.
Common mistakes
- Letting the assistant search old files, so it quotes last year's schedule as confidently as this year's.
- Putting internal documents in the search of a customer facing assistant.
- Blaming the model when the real problem is that the search did not find the right passage.
Related terms
Vector Database
A vector database stores embeddings and finds the items closest in meaning to a question, even when the question and the document use different words.
Embedding
An embedding is a list of numbers that stands for the meaning of a text or image, so texts that mean the same land close together, even with different words.
Hallucination
An AI hallucination is an answer an AI model makes up and states with confidence, such as an invented price, rule or source, because it predicts likely words.
LLM
An LLM (large language model) is AI trained on masses of text to predict the next piece of a sentence. That is how chat tools write answers, right or wrong.
Fine-tuning
Fine-tuning is extra training of a ready AI model on your own examples, so it learns a style, format or task. It changes how it answers, not what it knows.
Context Window
A context window is how much text, in tokens, a model can see at once: instructions, files, the chat so far and its reply. What falls outside, it cannot use.
Quick check
An assistant with RAG quotes last season's class schedule. What is the most likely cause?
Choose an answer
Frequently asked questions
What is RAG in simple words?
What does RAG stand for?
Am I already using RAG?
What is the difference between RAG and fine-tuning?
Why does our assistant still invent answers with RAG?
Why does the assistant quote an old rule?
How should I prepare documents for RAG?
Does RAG need a vector database?
Is it safe to connect confidential files to RAG?
Does RAG make the AI smarter?
Do I need a developer for RAG?
Can RAG show where an answer came from?
Sources: Lewis, Perez, Piktus et al., "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks", NeurIPS 2020 (arXiv 2005.11401), read 2026-09-25, Anthropic Help Center, "Retrieval augmented generation (RAG) for projects" (support.claude.com/en/articles/11473015), read 2026-09-25, Privacy Protection Authority, Amendment 13 questions and answers (gov.il/he/pages/tikun13_qa), read 2026-08-31
Last reviewed: 2026-09-25
I have worked with
- Google for Startups
- House of Business, Sderot Municipality
- Microsoft Reactor
- GameReady
- Eclipse Capital
- SderoTech
- IUCEL
- Resilience & Health Innovation Hub
- International Resilience Institute of Sderot
- Google for Startups
- House of Business, Sderot Municipality
- Microsoft Reactor
- GameReady
- Eclipse Capital
- SderoTech
- IUCEL
- Resilience & Health Innovation Hub
- International Resilience Institute of Sderot
What Clients Say
From different fields, at different stages of business
Dan Manto
Eclipse Capital
Real Estate Investment and Finance, USA
Arty McLabin
GameReady
Game Development Education and Outsourcing, International

Anna
Beautician
After I finished a cosmetology course at a leading company, I was confused. I didn't know how to open a business, what to sell from home, or how to bring in clients. Since I reached out to Mobius, everything has changed. We built an organized plan with clear steps and no unnecessary risks. Today I see results, and I'm growing and developing every month.

Mark
Massage therapist, Gan Yavne
When I finished a massage course, I imagined a different world. I found out it's a hard field, and financial stability isn't easy to find. When I came to Mobius, something changed. We started an organized process and built a business plan. Without Mobius? I probably would have given up. Today I believe in myself and in my own path.
Wondering where AI actually fits your business?
Alex helps Israeli businesses use AI and data where it pays off, and skip it where it does not. The first call is free.
+972 055-248-6151. Better on WhatsApp: I am in meetings most of the day and answer as soon as I am free. Other ways to reach me