Session 1 โ€” Interactive Learning

How LLMs & Gen AI Work

Demystify the technology behind ChatGPT, Gemini, and Claude through interactive visualizations and hands-on demos.

0
Your Score
12+
Interactive Demos
27
Slides
โˆž
Curiosity
Course Overview

4-Week Syllabus

A comprehensive journey from AI fundamentals to building real-world AI workflows.

Syllabus Week 1
Syllabus Week 2
Syllabus Week 3
Syllabus Week 4
Session 1

Introduction to AI &
Generative AI

Understand the foundations of Artificial Intelligence, the rise of Generative AI, and how these technologies are transforming our world.

Session 1: Introduction to AI & Generative AI
1.1

What is AI?

What is AI?

Key Takeaways

  • AI is a broad field dedicated to creating systems that perform tasks requiring human intelligence
  • This includes recognizing speech, making decisions, translating languages, and identifying patterns
  • "AI" is an umbrella term โ€” break it down by capabilities (Narrow vs. General) and methods (Machine Learning)
๐ŸŽฎ Interactive Game

Classify the AI Application

Drag each example into the correct category. Can you get them all right?

๐ŸŽฏ
Drag & Drop Game
Narrow AI vs General AI
Score: 0/9
๐ŸŽฏ Drag items from here (or click to cycle)
Narrow AI (ANI)
General AI (AGI) โ€” Theoretical
1.2

Narrow vs General AI

Narrow vs General AI

๐ŸŽฏ Narrow AI (ANI)

Highly specialized for a single task. A chess-playing AI cannot drive a car.

Examples: Siri, Netflix, Tesla Autopilot, ChatGPT

๐Ÿ’ก ChatGPT feels general-purpose but is still ANI โ€” it can't autonomously learn new skills or transfer knowledge to unrelated problems.

๐ŸŒ General AI (AGI)

Theoretical "holy grail" โ€” human-level cognitive abilities across any domain.

Status: Does not exist yet.

1.3

Evolution of AI

Evolution of AI
๐Ÿ“…
Interactive Timeline
Click each era to learn more
1950s โ€” Artificial Intelligence

Rule-Based Systems

Pre-programmed If-Then rules that didn't learn from mistakes.

Examples: Rule-based chess programs, video game NPCs. These systems follow rigid scripts โ€” they can't adapt or improve.
1980s โ€” Machine Learning

Learning from Data

Algorithms that learn patterns from historical data on their own.

Examples: Email spam filters, YouTube/Netflix recommendation systems. These algorithms find patterns humans can't easily program.
2010s โ€” Deep Learning

Neural Networks at Scale

Artificial neural networks analyze complex data with superhuman accuracy.

Examples: Facial recognition, live language translation. Deep learning uses layers of artificial neurons inspired by the brain.
2020s โ€” Generative AI

Creating Original Content

Foundation models that create brand-new, original outputs from training data.

Examples: ChatGPT, Gemini, Claude, DALL-E, Midjourney. These models generate text, images, music, code, and video.
๐ŸŽฎ Interactive Demo

Neural Network Playground

See how a neural network learns to classify data points! Click to add points, then watch the network train.

๐Ÿง 
Interactive Visualization
Watch AI Learn in Real Time
Epoch: 0 | Accuracy: 0%

Click on the canvas to add ๐Ÿ”ต blue or ๐Ÿ”ด red points (toggle with the buttons below)

๐Ÿ’ก How it works: The neural network draws a decision boundary to separate blue and red points. As it trains over more epochs, the boundary becomes more accurate. This is fundamentally how AI "learns" โ€” by adjusting its internal parameters to minimize errors!

Deep Dive: Neural Networks Explained

Materials: Interactive classification dataset canvas with customizable data points (Red/Blue classes), an epoch counter, and real-time decision boundary rendering.

Explanation: The playground demonstrates binary classification using a multi-layer perceptron (a type of neural network). Every data point added forces the network to recalculate its parametersโ€”its weights and biasesโ€”during training iterations known as epochs. The background colors visualize the network's current understanding, plotting the decision boundary that isolates the classes.

Summary: Neural networks learn by iteratively adjusting their internal weights to minimize the prediction errors. Over continuous training, they identify underlying patterns, eventually mapping out complex decision boundaries that predict and separate different groupings of data effectively.

TL;DR: AI learns by making a guess, measuring its error, and adjusting its internal math until it gets it right!
1.4

Traditional AI vs Generative AI

Traditional vs Generative AI
When to use Traditional or Gen AI
1.5

Overview of AI Modalities

Generative AI works across multiple modalities โ€” text, images, audio, and video.

๐ŸŒ
Interactive Explorer
AI Modalities
Text Generation

Text Generation

  • Processes and generates human-like written content
  • Uses LLMs to predict the next logical word or token
  • Examples: ChatGPT, Claude Sonnet, Google Gemini
Image Generation

Image Generation

  • Creates brand-new visual content from text descriptions
  • Uses diffusion models โ€” gradually removing noise until a clear picture forms
  • Examples: DALL-E 3, Midjourney, Stable Diffusion
Audio Generation

Audio Generation

  • Synthesizes realistic speech (text-to-speech) and original music
  • Analyzes audio waveforms and patterns for high-fidelity output
  • Examples: Suno, Udio, ElevenLabs, Google's Lyria
Video Generation

Video Generation

  • Generates moving video clips from text prompts
  • Combines spatial + temporal understanding for frame consistency
  • Examples: OpenAI's Sora, Google's Veo, Runway Gen-3
๐ŸŽฎ Matching Game

Match the AI Tool

Can you match each AI tool to its correct modality? Click two cards to find a match!

๐Ÿƒ
Memory Match Game
AI Tools vs Modalities
Matches: 0/8
๐ŸŽฎ Challenge

AI or Human? ๐Ÿค–โœ๏ธ

Can you tell the difference between AI-generated and human-written text?

๐Ÿ”
Detection Challenge
Spot the AI-Generated Text
Score: 0/0
Round 1 of 6

๐ŸŽฎ Interactive Demo

How Image AI Works: Diffusion

Drag the slider to see how AI generates images by gradually removing noise โ€” the core idea behind DALL-E and Stable Diffusion!

๐ŸŽจ
Diffusion Process
From Pure Noise โ†’ Image
๐ŸŽฒ Noise Level 100%

๐Ÿ’ก How diffusion works: During training, the model learns to reverse a noising process. At generation time, it starts from pure random noise and gradually "denoises" it, guided by the text prompt, into a coherent image. Each step removes a bit of noise, adding more structure and detail.

1.6

How Generative AI Learns

From data collection to human feedback โ€” the RLHF cycle.

How Gen AI Learns
Data labeling and RLHF
Traditional Machine Learning
1.7

Evolution of ChatGPT

The rapid scaling from 117M parameters (GPT-1) to multimodal intelligence (GPT-4).

Evolution of ChatGPT
๐Ÿ“Š
Interactive Visualization
GPT Parameter Scale

๐Ÿ’ก Each generation of GPT has roughly 10x more parameters than the last. Parameters are the "knobs" the model adjusts during training โ€” more parameters = more capacity to learn patterns, but also more data and compute needed.

Session 2

Large Language Models
(LLMs)

Go deeper โ€” understand what LLMs really are, how they process language, and why they're transforming every industry.

2.1

What Exactly is an LLM?

Key Takeaways

  • A Large Language Model is a neural network trained on massive text datasets to understand and generate human language
  • The "large" refers to billions (or trillions) of parameters โ€” the internal weights adjusted during training
  • LLMs are foundation models โ€” trained broadly, then adapted to specific tasks via fine-tuning or prompting
2.2

How LLMs Work Behind the Scenes

Tokens, prediction, the Transformer breakthrough โ€” the full picture.

๐Ÿ”ค Tokenization

Text is split into tokens (subword units). "Unbelievable" โ†’ ["Un", "believ", "able"]. The model never sees raw characters โ€” only token IDs.

๐Ÿ”ฎ Next-Token Prediction

At its core, an LLM predicts the probability distribution of the next token given all previous tokens. Generation is just this loop repeated thousands of times.

โšก The Transformer

Introduced in Google's 2017 paper "Attention Is All You Need". Self-attention allows every token to relate to every other token simultaneously โ€” enabling true language understanding.

๐Ÿ“Š Scale = Capability

Emergent abilities (reasoning, code, math) appear at scale. GPT-3 (175B params) showed capabilities not present in smaller models. Scale unlocks behaviors no one programmed explicitly.

2.3

Current LLMs in the Market

The leading foundation models from OpenAI, Google, Anthropic, and Meta.

2.4

Understanding LLM Limitations

Knowing what LLMs can't do is just as important as knowing what they can.

๐ŸŒ€ Hallucinations

LLMs confidently generate false information. They don't "know" facts โ€” they predict plausible-sounding text. Always verify important outputs.

โฐ Knowledge Cutoff

Training data has a cutoff date. LLMs don't know about events after their training ends unless given tools like web search or RAG.

๐Ÿ“ Context Window

LLMs can only process a fixed window of tokens at once. Very long documents must be chunked or summarized. This is their "short-term memory" limit.

๐Ÿงฎ Reasoning Limits

LLMs can fail at multi-step math, logic puzzles, and counting tasks. They pattern-match rather than truly reason, though techniques like chain-of-thought help significantly.

๐ŸŽฎ Deep Dive

Tokenizer Lab

See how LLMs break text into tokens. Type any text below!

โœ‚๏ธ
Interactive Demo
How Tokenization Works
Tokens:
0
Tokens
0
Characters
0x
Compression

๐Ÿ’ก Why tokenization matters: LLMs don't read words like humans. They process sequences of tokens โ€” subword units. Common words stay intact, while rare words get split. This is why LLMs sometimes struggle with character counting!

๐ŸŽฎ Deep Dive

Next Token Prediction Game

Experience how an LLM generates text! Pick the next word and watch how temperature changes creativity.

๐ŸŽฒ
Interactive Game
Be the Language Model
The cat sat on the
๐ŸŒก๏ธ Temperature 0.70

Low = predictable ยท High = creative & random

Click a word to continue the sentence:

๐Ÿ“ After the first word, options are simplified for demo purposes โ€” real LLMs predict from a vocabulary of 50,000+ tokens.

๐ŸŽฎ Deep Dive

Attention Heatmap

The secret sauce of Transformers! See which words "pay attention" to which others.

๐Ÿ”ฅ
Interactive Visualization
Self-Attention

๐Ÿ’ก How to read this: Brighter = stronger attention. Notice how "it" attends strongly to "cat" โ€” the model learns pronoun references!

Deep Dive: Self-Attention Explained

Materials: Interactive self-attention matrix visualizer generating a color-coded heatmap based on custom input sentences.

Explanation: The attention mechanism works by assigning a specific mathematical weight to every pair of words in a sentence, determining their relevance to each other. In this heatmap, brighter colors represent stronger correlations. For instance, when interpreting the pronoun "it", the model attributes high attention scores backward to the relevant noun (like "cat"), successfully preserving dependencies spanning the entire text.

Summary: Self-attention calculates how heavily each word should rely on context from surrounding words. By abandoning sequential processing (word-by-word computation) in favor of evaluating all word relationships simultaneously, it gives Large Language Models their unprecedented understanding of context and nuance.

TL;DR: Attention is a mathematical spotlight telling the AI exactly which surrounding words matter most when reading any part of a sentence.
๐ŸŽฎ Deep Dive

Transformer Architecture

Click through each component to understand how data flows.

๐Ÿ—๏ธ
Interactive Diagram
Inside a Transformer Block
๐Ÿ“ฅ Input Embeddings + Positional Encoding
โšก Multi-Head Self-Attention
โž• Add & Normalize
๐Ÿงฎ Feed-Forward Network
โž• Add & Normalize
๐Ÿ“ค Output Probabilities

๐Ÿ‘ˆ Click a component

Click on any block in the diagram to learn what it does and why it matters.

Deep Dive: The Transformer Explained

Materials: Interactive architectural flow diagram of a standard Transformer Block featuring distinct, clickable components for in-depth data flow tracing.

Explanation: Instead of processing a sentence sequentially, the Transformer analyzes all tokens simultaneously. Input embeddings are first combined with positional encodings (so the model knows word order). The data passes through Multi-Head Self-Attention layers to gather context. After continuous normalization (Add & Norm) to maintain stability, a Feed-Forward Network refines the data representation. Finally, the model outputs a probability distribution pinpointing the most likely next token.

Summary: The Transformer architecture relies heavily on self-attention blocks stacked sequentially. By computing global contexts in parallel, the architecture is vastly more efficient for training on massive text corpora compared to older Recurrent Neural Networks.

TL;DR: A transformer reads text, identifies hidden relationships via self-attention layers, refines the contextual data, and rapidly predicts the next word.
๐ŸŽฎ Deep Dive

Word Embedding Space

Explore how AI understands word relationships by mapping them into a mathematical space where similar words are close together!

๐ŸŒŒ
Interactive Visualization
Word Relationship Map

๐Ÿ’ก How embeddings work: Each word is represented as a vector (list of numbers). Words with similar meanings end up close together: "king" is near "queen", "cat" is near "dog". The famous example: king - man + woman โ‰ˆ queen!

Deep Dive: Embedding Space Explained

Materials: Interactive 2D projection canvas of a high-dimensional word vector space equipped with semantic search and analogy calculation tools.

Explanation: Modern embedded representations (like Word2Vec, or the core of any LLM) encode the definition and context of tokens within extremely long arrays of numbers (vectors). The model groups similar abstract concepts closely together in space. Though an LLM works in thousands of dimensions, this demo projects the math into 2D. This mapping allows semantic arithmetic, such as calculating analogies (e.g., King - Man + Woman โ‰ˆ Queen).

Summary: Word embedding is the process of translating human vocabulary into dense mathematical vectors. By plotting words onto coordinates, AI models translate semantic meanings, synonyms, and logical relationships into distances and angles that a machine can easily compute.

TL;DR: Embeddings convert words into mathematical coordinates on a map, allowing the AI to calculate meanings via distance!
Assessment

Fact or Myth about AI ๐Ÿง 

Test your understanding with these interactive quizzes!

Question 1 of 4
True or False: The AI we interact with today, such as ChatGPT, Siri, or recommendation algorithms, is Artificial General Intelligence (AGI)?
Question 2 of 4
Which is a core difference between Traditional AI and Generative AI?
Question 3 of 4
How do Large Language Models fundamentally generate their text outputs?
Question 4 of 4
Which is a widely recognized limitation of Large Language Models (LLMs)?
๐Ÿ† Final Challenge

Speed Round โ€” AI Buzzword Bingo

Click on each AI term to reveal its definition. Can you learn all 16 before time runs out?

๐Ÿ†
Speed Challenge
AI Buzzword Bingo
โฑ๏ธ 0:00

๐Ÿ‘† Press โ–ถ๏ธ Start Timer below to begin โ€” then click each term to reveal its definition!

Coming Next

Ready for More? ๐Ÿš€

In the next sessions: Prompt Engineering, n8n Workflow Automation, RAG & AI Agents, Multimodal AI, and more.

Teaser: Google AI Studio