We may earn an affiliate commission when you visit our partners.

RAG

Save
May 1, 2024 Updated November 25, 2026 3 minute read

Retrieval Augmented Generation (RAG) is a cutting-edge technique that enhances the capabilities of large language models (LLMs). By leveraging a dual-encoder architecture, RAG empowers LLMs with the ability to retrieve relevant information from extensive text databases, significantly improving their performance on various text-based tasks.

Understanding RAG

The core concept of RAG lies in its dual-encoder structure, consisting of a text encoder and a retrieval encoder. The text encoder converts the input text into a fixed-length representation, while the retrieval encoder transforms the text database into a collection of vectors.

To perform retrieval, the text encoder generates a query vector for the input text, which is then compared to the vectors in the database. The retrieval encoder identifies the most similar vectors, corresponding to the most relevant documents from the database.

Benefits of RAG

RAG offers several advantages that enhance the performance of LLMs:

Path to RAG

Take the first step.
We've curated 15 courses to help you on your path to RAG. Use these to develop your skills, build background knowledge, and put what you learn to practice.
Sorted from most relevant to least relevant:

Share

Help others find this page about RAG: by sharing it with your friends and followers:

Reading list

We've selected 17 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in RAG.
Dedicated to pairing Retrieval-Augmented Generation with vector databases, this guide walks through embedding pipelines, semantic indexing, similarity search, and grounding LLM responses in external knowledge.
Covers end-to-end RAG-driven generative AI architectures, showing how to combine retrieval pipelines, vector stores, and prompt orchestration to build reliable, domain-grounded LLM applications.
Focuses on document chunking strategies that make or break RAG accuracy, detailing semantic splitting, overlap tuning, metadata enrichment, and context-window optimization for retrieval pipelines.
Chip Huyen's production blueprint for building LLM applications covers RAG architectures, retrieval evaluation, latency-cost tradeoffs, guardrails, and monitoring systems in real-world deployments.
Provides a visual, code-first tour of large language models, dense text embeddings, semantic search, and retrieval-augmented generation workflows using modern open-source transformer tooling.
Teaches developers how to orchestrate RAG pipelines with LangChain, connecting document loaders, text splitters, vector stores, and stateful agentic workflows for context-aware LLM apps.
A classic guide to search relevance engineering that directly informs modern RAG systems, covering query understanding, BM25 ranking, signal blending, and hybrid sparse-dense retrieval tuning.
Authored by Hugging Face engineers, this book explains the transformer architectures and representation learning behind modern embedding models, dense passage retrieval, and open-domain QA.
Explores systematic prompt engineering patterns essential for RAG, including context injection, citation grounding, hallucination mitigation, and structured output generation over retrieved passages.
Examines the data pipelines, feature stores, continuous evaluation, and feedback loops needed to operate machine learning and retrieval-augmented AI systems reliably at production scale.
Moves beyond flat vector similarity to GraphRAG, showing how knowledge graphs and entity-relationship traversal unlock multi-hop reasoning and complex enterprise retrieval for LLMs.
Explores multimodal Retrieval-Augmented Generation using unified embedding spaces, demonstrating how to index and retrieve text, images, and structured documents within a single RAG pipeline.
Walks through productionizing LLM systems with a strong emphasis on RAG architectures, vector database integration, LlamaIndex and LangChain workflows, and automated quality evaluation.
The foundational textbook on information retrieval, detailing inverted indices, TF-IDF, vector space models, and evaluation metrics like precision, recall, and NDCG that underpin every RAG retriever.
Provides rigorous coverage of search engine internals, probabilistic retrieval models, query expansion, and ranking evaluation, offering deep theoretical grounding for hybrid RAG architectures.
A systems-engineering masterpiece on distributed storage, B-trees, LSM-trees, replication, and stream processing that illuminates the database internals powering high-scale vector and search indices.
Jurafsky and Martin's landmark NLP reference bridges classical language modeling, question answering, and information extraction with the modern neural retrieval concepts behind RAG.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser