RAG (Retrieval-Augmented Generation)
A pattern that retrieves relevant documents and feeds them to an LLM to ground its answer.
A pattern that retrieves relevant documents and feeds them to an LLM to ground its answer.
RAG improves accuracy and freshness by retrieving relevant context (often via embeddings and a vector database) and including it in the prompt, so the model answers from your data rather than memory alone. See What is RAG?.