Skip to content

RAG (Retrieval-Augmented Generation)

A technique that retrieves relevant documents from a knowledge base and feeds them to the model so it answers grounded in your data.

A typical pipeline: split documents into chunks, embed them into a vector database, retrieve the closest chunks for a query, then pass them as context to the LLM. It reduces hallucination and keeps answers up to date without retraining.

Related resources