🧠

How LLMs Actually Work

v1.0

Tokens, embeddings, and transformers, plus the security angle: prompt injection, jailbreaks, and data leakage.

2h total5 lessons

Written by Wahyu N, reviewed by Wahyu N, with AI help. Last updated November 24, 2026.

Release notes on GitHub

This track opens up the large language models (LLMs) behind chat assistants and AI features. Five lessons cover how text becomes tokens, how embeddings turn meaning into numbers, how a model predicts the next word and why it sometimes makes things up, and then the security side: prompt injection, jailbreaks, data leakage, and AI agents that can take actions.

Most exercises are on paper. One optional step uses a free, public tokenizer page that needs no account. Take AI Fundamentals first if terms like “training” and “model” are new to you.

LLM features are now built into email, documents, help desks, and code tools, and each one is new attack surface. This track gives you the foundation to reason about it. When a question goes beyond the lessons, bring it to the community Discord.

Start track
  1. From Text to TokensOrientation
  2. Embeddings: Meaning as NumbersCore Concepts
  3. Transformers and Next-Token PredictionCore Concepts
  4. Prompt Injection and JailbreaksCore Concepts
  5. Data Leakage, Agents, and Wrap-upWrap-up