RAG
Connect LLMs to external knowledge. Chunking, embedding, retrieval, reranking, grounded generation.
Learning path
Work through each subtopic in order. Click any file below to open its lesson. Track your progress with the checkbox at the bottom.
Subtopics
Each subtopic includes a concise explanation, code examples, and references.
Retrieval-Augmented Generation
End-to-end RAG pipeline.
Document Loading
Document ingestion panel.
Text Chunking
Document chunk viewer.
Chunk Size
Chunk boundary visualization.
Chunk Overlap
Overlapping-window visualization.
Embeddings
Document embedding map.
Vector Database
Vector-index visualization.
Similarity Search
Query-to-nearest-vectors animation.
Retrieval
Top-k retrieval panel.
Reranking
Retrieval ranking pipeline.
Context Construction
Prompt assembly view.
Grounded Generation
Context + query โ answer.