Glossary
Retrieval-augmented generation (RAG)
A method where an AI model first looks up relevant documents from a chosen source, then writes its answer using what it found in them.
Also known as: RAG, Retrieval-augmented generation
Retrieval-augmented generation (RAG) is a method where an AI model first retrieves relevant passages from a chosen set of documents, then writes its answer using those passages. Instead of relying only on what the model absorbed during training, the answer is tied to material you supply, such as your price list, policies or product manuals.
The term comes from a 2020 research paper by Patrick Lewis and colleagues, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. The authors noted that large language models store facts in their parameters, but are limited in how precisely they can access that knowledge, and that providing provenance for their answers and updating their knowledge were open problems. Their approach paired a language model with a searchable index of documents. Google Cloud’s explainer describes RAG in similar terms: it combines traditional information retrieval, such as search and databases, with generative large language models.
Why it matters for an Indian business
A general AI assistant does not know your fee structure, your return policy or which doctor sits on Thursdays. RAG is a common way to let an assistant answer from your own documents without retraining a model. Because the answer comes from a document you control, you can update the document when something changes, and you can check where an answer came from.
This suits businesses that answer the same questions every day on WhatsApp, phone and email: clinics, coaching institutes, real estate developers, CA firms and D2C brands.
An example
Say a coaching institute in Jaipur keeps its batch timings, fee instalments and refund rules in a few PDFs and a spreadsheet. With a RAG setup, a staff member types “What is the refund rule if a student leaves after the second month?” The system searches those files, pulls the refund clause, and drafts an answer quoting it. The staff member checks the draft before sending it to the parent.
What to watch for
- RAG is only as good as the documents behind it. Outdated or contradictory files produce outdated or contradictory answers.
- Retrieval can pick the wrong passage, and the model can still misread the right one. Answers need review, especially on fees, medical or legal matters.
- If the documents contain customer personal data, treat the system as part of your data handling under the DPDP Act.
Related terms
RAG usually relies on embeddings to find passages with similar meaning, stored in a vector database. It is one common way of grounding answers in source material, which can reduce, but not remove, hallucination. Our implementation service sets up knowledge search like this with your team and hands it over.