Generative AI
Learn about LLMs, LangChain, RAG, agents, and building AI-powered applications — explained in simple terms for everyone.
Recommended Learning Path:
- Part 1 - LangChain Foundations: Understanding LLMs and Orchestration — What an LLM is, why orchestration frameworks exist, and the core LangChain building blocks.
- Part 2 - LangChain Essentials: Building Blocks of AI Applications — Prompts, chains, and output parsers used in real applications.
- Part 3 - Tool Calling: Giving Your AI Real-World Superpowers — Letting an LLM call functions and APIs instead of just generating text.
- Part 4 - RAG Basics: Teaching AI About Your Documents — Retrieval-augmented generation: embeddings, vector stores, and grounding answers in your own data.
- Part 5 - LangGraph & Agents: Building Intelligent Workflows — Multi-step, stateful AI workflows and agent loops with LangGraph.
- Part 6 - Project: Build Your Own AI Agent — A hands-on project putting the previous five parts together.
- Part 7 - Observability with LangSmith: Debug and Monitor Your AI — Tracing, debugging, and monitoring LLM applications in production.
Deep Learning for Generative AI — Context Behind Transformers:
- Word Embeddings — How computers turn words into meaningful numbers: one-hot encoding, Word2Vec, cosine similarity, and the embedding layer.
- Encoder-Decoder Architecture — The seq2seq model: how an encoder compresses a sentence into a context vector and a decoder generates the output one word at a time.
- Attention-Based Encoder-Decoder — How attention lets the decoder look back at every encoder word instead of relying on a single vector.
- Math Behind Attention — Dot products, scaling, softmax, and the Query-Key-Value framework with worked numerical examples.
- Drawbacks of Attention-Based Encoder-Decoder — Sequential processing, vanishing gradients, and why the Transformer was invented.
- Introduction to the Transformer — Why encoder-decoder stays, what changes, and the group project analogy for Query, Key, and Value.
- Transformer Case Study — Python Program — A simple walk-through of the encoder on “Python program to print Hello World”, showing how each word attends to the others.
- The Transformer Architecture, Explained Simply — Every box in the Transformer diagram: embeddings, positional encoding, multi-head attention, add & norm, feed-forward, masking, cross-attention, and generating the output.
- The Math Behind Self-Attention — The magic is a matrix: X, W_Q, W_K, W_V and softmax(QKᵀ/√d)V, with a fully worked 3-word example.
- Self-Attention in Code with NumPy — Build self-attention from scratch in about 15 lines of NumPy on “I drink hot coffee”, with every output explained in plain words.
- Transformer Variants — Encoder-Only, Decoder-Only, Encoder-Decoder — Why the industry split the Transformer into three families: BERT for understanding, GPT for generating, T5 for transforming — and how to pick the right one.
- Sequence Classification with BERT (Hands-On) — Load a pre-trained BERT from Hugging Face, tokenize properly, fine-tune for sentiment classification with a plain PyTorch loop, and interpret the outputs.
- Sentence Embeddings with Sentence Transformers (Hands-On) — Turn whole sentences into vectors with all-mpnet-base-v2, then reuse the same embeddings for semantic search, document similarity, and k-means clustering — no training needed.
- Translation and Question Answering with Pre-Trained Models (Hands-On) — Use pre-trained MarianMT for machine translation and T5 for question answering, without training from scratch.
Multimodal Generative Architectures:
- Introduction to Multimodal Generative Architectures — Prediction vs transformation vs generation, discriminative vs generative models, conditional and unconditional generation, and why autoencoders reconstruct but cannot generate.
- Autoencoders and Variational Autoencoders — Why deterministic autoencoders fail at generation, the VAE probabilistic latent space, reparameterisation trick, ELBO objective, and a TensorFlow/Keras VAE on Fashion MNIST.
- Generative Adversarial Networks — Generator vs discriminator, the minimax game, conditional GANs, CycleGAN and cycle consistency.
- Diffusion Models and Stable Diffusion — Forward noising and reverse denoising, time conditioning, classifier-free guidance, and latent diffusion in Stable Diffusion.
- Multimodal Models and Vision Transformers — CLIP-style image-text alignment, prompts as steering vectors, cross-attention, Vision Transformers, and how modern text-to-image systems combine these pieces.
- Vision Transformers in Code (Hands-On) — Build a ViT from scratch in TensorFlow/Keras (patch extraction, encoding, transformer blocks), visualise image patches, and run Google’s pre-trained ViT from Hugging Face.
Short on time? Read the one-sitting recap instead (or first):
- The Transformer - A Friendly Guide — The whole Transformer in one sitting with zero math: reading, writing one word at a time, training with cross-entropy loss, and what the “context limit” means inside each layer. Works as a standalone introduction or as a recap of Parts 6–11.
Opinion, case studies, and explainers:
- Saturday Morning Coffee ☕ Thoughts on Agentic AI — Informal reflections on where agentic AI is heading.
- Case Study: Amazon Rufus - AI Shopping Assistant Done Right — What Amazon’s Rufus gets right about AI-assisted shopping.
- Skills vs MCP vs Agents: The Future of AI (Explained Simply) — Untangling three related but distinct ideas in plain language.
Related Computer Vision topic:
- Image Processing Fundamentals — Pixels, colour models, kernels, convolution, and feature extraction. Now the first entry in the Computer Vision series, since it’s foundational to vision rather than generative AI specifically.
What You’ll Learn:
- What large language models are and how orchestration frameworks like LangChain fit around them
- How to build prompts, chains, and structured output parsers
- How to give an LLM tools and let it call real functions and APIs
- How retrieval-augmented generation (RAG) grounds answers in your own documents
- How to build multi-step, stateful agent workflows with LangGraph
- How to trace, debug, and monitor LLM applications in production
- How these ideas connect to real products and the broader direction of agentic AI