Techniques & methodsGlossary

RAG (Retrieval-Augmented Generation)

RAG (retrieval-augmented generation) is a technique that lets a language model pull relevant documents from an external knowledge base before answering and ground its response in them. It reduces hallucinations and keeps answers current without retraining the model.

RAG (Retrieval-Augmented Generation)
RAG (Retrieval-Augmented Generation) · Techniques & methods · Hamidun News

RAG combines two components: a retriever and a generator. When a question comes in, the retriever converts it into an embedding, searches a vector database of your documents for semantically similar passages, and hands the best matches to the language model as context. The model then writes its answer grounded in those passages instead of relying only on what it memorized during training.

The approach solves three chronic LLM problems at once. Knowledge freshness: you update the document base, not the model. Hallucinations: the model cites retrieved text instead of inventing facts. Private data: corporate wikis, contracts and support tickets never need to enter model training — they stay in the index and are fetched at query time.

RAG is not a silver bullet: answer quality is capped by retrieval quality. If the search step returns irrelevant chunks, the model will confidently summarize the wrong material. Production systems therefore invest in chunking strategy, hybrid (keyword + vector) search, reranking, and evaluating the retrieval step separately from the generation step.

Example

“A support chatbot uses RAG to search the company's help-center articles and answers with the exact refund policy instead of guessing.

Latest news on this topic

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent