08

No Hype AI: RAG & Knowledge Systems

Build retrieval-augmented generation systems — embeddings, vector databases, chunking, advanced retrieval, knowledge graphs, and production RAG.

10 lessons • 5 supplemental references

01
What Is RAG?

Why retrieval-augmented generation exists — solving knowledge cutoffs, hallucination, and private-data access by retrieving relevant context at query time — with a side-by-side of pure-LLM vs RAG answers.

35 min • beginner
02
Embeddings Explained

The foundation of semantic search — what embeddings are, how encoder models create them, distance metrics (cosine, dot product, Euclidean), and how to choose an embedding model.

45 min • beginner
03
Vector Databases

Where to store and search embeddings — Pinecone, Weaviate, Chroma, and pgvector — plus indexing algorithms (HNSW, IVF), the recall/speed trade-off, metadata filtering, and a selection framework.

50 min • beginner
04
Chunking Strategies

How you split documents drives retrieval quality — fixed-size, recursive, semantic, and structure-aware chunking, the size/overlap trade-offs, and metadata enrichment, measured across approaches.

50 min • intermediate
05
Building a Basic RAG Pipeline

Build a complete RAG system end-to-end in Python — ingestion, cleaning, chunking, embedding, vector storage, retrieval, context assembly, and grounded generation with source citation.

60 min • intermediate
06
Advanced Retrieval

Beyond basic similarity search — hybrid search (dense + BM25), cross-encoder re-ranking, query expansion, HyDE, and parent-child retrieval, added incrementally with quality measured at each step.

55 min • intermediate
07
Evaluation & Quality

Measure RAG at every stage — retrieval (precision@k, recall@k, MRR), generation (faithfulness, relevance), and end-to-end correctness — with frameworks like RAGAS, golden sets, and LLM-as-judge.

50 min • advanced
08
Knowledge Graphs + RAG

Add structured relationships to retrieval — graph construction from documents, graph-based and hybrid retrieval, and answering multi-hop questions vector search alone cannot.

50 min • advanced
09
Production RAG

From prototype to production — caching, document updates and re-indexing, versioning, monitoring for quality drift, scaling, and the failure modes unique to production RAG.

55 min • advanced
10
Multi-Modal RAG

Handle images, tables, charts, and code in RAG — multi-modal embeddings (CLIP-style), table extraction, syntax-aware code retrieval, and routing queries to the right modality.

50 min • advanced