RAG From Scratch Course (Retrieval-Augmented Generation Systems)


This RAG From Scratch course provides a complete step-by-step guide to understanding and building Retrieval-Augmented Generation (RAG) systems. It is designed for learners who want to move beyond basic LLM usage and build advanced AI systems that can retrieve, understand, and generate responses using external knowledge sources.

The course focuses on bridging the gap between standalone language models and real-world intelligent systems that rely on structured knowledge retrieval.


1. Introduction to RAG Systems


This section introduces the core concept of Retrieval-Augmented Generation and explains how it enhances large language models by connecting them with external data sources such as documents, databases, and knowledge bases.

Learners understand why RAG is essential for improving accuracy, reducing hallucinations, and enabling real-time knowledge access.


1.1 What is Retrieval-Augmented Generation (RAG)


This topic explains that RAG combines two main components: retrieval systems and generative models. Instead of relying only on internal model knowledge, the system retrieves relevant information before generating responses.


1.2 Why RAG Improves LLM Performance


Here learners explore how RAG improves accuracy, reduces hallucination, and allows models to answer questions based on up-to-date or domain-specific data.


2. RAG Pipeline Overview


This section explains the full RAG workflow, which consists of multiple stages including indexing, retrieval, and generation.

Each stage plays a critical role in ensuring that the system delivers accurate and relevant responses.


2.1 Indexing Phase


This topic covers how documents are processed, split, and stored in a structured format that allows efficient searching and retrieval.


2.2 Retrieval Phase


Here learners understand how relevant information is selected from large datasets based on user queries using similarity search and ranking techniques.


2.3 Generation Phase


This part explains how the retrieved information is passed to the language model, which then generates a final response that is grounded in real data.


3. Query Translation Techniques


This section focuses on improving how user queries are processed before retrieval, enhancing search quality and system performance.


3.1 Multi-Query Retrieval


This technique generates multiple variations of a query to improve the chances of retrieving relevant documents.


3.2 Query Decomposition


Here complex questions are broken down into smaller sub-questions to improve retrieval accuracy and reasoning.


3.3 Step-Back Reasoning


This method allows the system to abstract a higher-level question before retrieving specific details.


3.4 HyDE (Hypothetical Document Embeddings)


This technique generates a hypothetical answer first and uses it to improve retrieval relevance and embedding similarity.


4. Advanced Retrieval Strategies


This section introduces more advanced techniques for improving retrieval performance and system adaptability.


4.1 Query Routing Systems


This topic explains how the system dynamically selects the best retrieval strategy based on the type of query.


4.2 Structured Query Processing


Here learners explore how structured queries help improve precision in retrieval and reduce irrelevant results.


5. Advanced Indexing Techniques


This section focuses on improving how data is stored and organized for better retrieval efficiency.


5.1 Multi-Representation Indexing


This technique stores multiple representations of the same document to improve search flexibility and accuracy.


5.2 RAPTOR Architecture


RAPTOR introduces hierarchical indexing to improve retrieval performance across large and complex datasets.


6. Final Learning Outcomes


By the end of this course, learners will be able to design and build full RAG systems that combine retrieval, reasoning, and generation.

They will understand how to create intelligent AI systems capable of answering complex questions using external knowledge sources with high accuracy and reliability.

تاريخ التحديث
تاريخ التحديثمنذ يوم
اللغة
اللغةالإنجليزية
عدد الدروس
عدد الدروس0 درس
إجمالي الوقت
إجمالي الوقت0 ساعة
المستوى
المستوىمبتدئ

محتوى الكورس

جميع الدروس
0 - 0 درس

محتوى الكورس

جميع الدروس
0 - 0 درس

المزيد من الكورسات

عرض الكل
English Speaking Practice | Food & Restaurant Conversations

English Speaking Practice | Food & Restaurant Conversations

Launch a new career

المستوي
المستوى مبتدئ
اللغة
اللغة الإنجليزية
Probability and Statistics Tutorials – 365 Data Science

Probability and Statistics Tutorials – 365 Data Science

Launch a new career

المستوي
المستوى مبتدئ
اللغة
اللغة الإنجليزية
Stanford CME295 Transformers & LLMs – Autumn 2025

Stanford CME295 Transformers & LLMs – Autumn 2025

Learn AI

المستوي
المستوى مبتدئ
اللغة
اللغة الإنجليزية
Practical Introduction to Large Language Models (LLMs) – Full Series

Practical Introduction to Large Language Models (LLMs) – Full Series

Learn AI

المستوي
المستوى مبتدئ
اللغة
اللغة الإنجليزية
Intro to Large Language Models – Andrej Karpathy

Intro to Large Language Models – Andrej Karpathy

Learn AI

المستوي
المستوى مبتدئ
اللغة
اللغة الإنجليزية
Reinforcement Learning for LLMs – UCLA Course

Reinforcement Learning for LLMs – UCLA Course

Learn AI

المستوي
المستوى مبتدئ
اللغة
اللغة الإنجليزية
Stanford CS336 – Language Modeling from Scratch | Spring 2025

Stanford CS336 – Language Modeling from Scratch | Spring 2025

Learn AI

المستوي
المستوى مبتدئ
اللغة
اللغة الإنجليزية
LLMs Level 1 – Master Large Language Models | H2O.ai

LLMs Level 1 – Master Large Language Models | H2O.ai

Learn AI

المستوي
المستوى مبتدئ
اللغة
اللغة الإنجليزية