---
title: "What is RAG (retrieval-augmented generation) and when should I use it?"  
description: "What is RAG (retrieval-augmented generation) and when should I use it?"  
author: "Mariana Medina"  
published: 2026-11-18  
updated: 2026-11-18  
canonical: https://www.mindstick.com/forum/163067/what-is-rag-retrieval-augmented-generation-and-when-should-i-use-it  
category: "AI and Machine Learning"  
tags: ["RAG", "Retrieval-Augmented Generation", "LLM", "Vector Search", "generative ai"]  
reading_time: 1 minute  

---

# What is RAG (retrieval-augmented generation) and when should I use it?

We want a chatbot that answers questions from our company documents. Someone suggested RAG instead of training a model. Why?

## Replies

### Reply by Lavanya Raju

A language model only knows what was in its training data, and it cannot see your private or recent documents. **RAG** solves this by looking things up first.

How it works:

1. Your documents are split into chunks and turned into **embeddings** (number vectors that capture meaning), stored in a search index or vector database.
2. When a user asks a question, the system finds the most relevant chunks.
3. Those chunks are placed in the prompt, with an instruction such as "answer using only this context and say if the answer is not there".
4. The model writes the answer, and you can show the sources.

Why RAG rather than training: it uses fresh data without retraining, it is cheaper, it lets you cite sources, and you can control access to documents.

Quality depends on good chunking, good retrieval and clean documents. Test it with real questions, and check that it says "I don't know" when the information is missing.


---

Original Source: https://www.mindstick.com/forum/163067/what-is-rag-retrieval-augmented-generation-and-when-should-i-use-it

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
