Foundations
Tools, Python and the habits of a working engineer.
A complete written path through Python, how LLMs work, prompting, RAG, agents, evaluation, production and safety. Every lesson has runnable code, real output and a self-check at the end.
No sign-up. Your progress is saved in this browser.
Hover a station to see who the module is for. Click it to open the module.
Start with the tools every engineer uses, learn what a model actually does, then build retrieval, agents and production systems on top. The last stage turns it all into a portfolio.
Tools, Python and the habits of a working engineer.
How models work and how to talk to them.
Turn documents into answers you can trust.
Tools, agents, voice and vision.
Evaluate, operate and secure LLM systems.
Capstone products and your career.
These examples are from lesson 02.2, Tokens and Tokenization, exactly as they appear in the path.
import tiktoken
# o200k_base is the tokenizer used by GPT-4o and later OpenAI models
enc = tiktoken.get_encoding("o200k_base")
text = "Common words stay whole, but rare ones like defenestration get split!"
ids = enc.encode(text) # text -> list of token IDs
print("Tokens: ", len(ids))
print("Pieces: ", [enc.decode([i]) for i in ids])Tokens: 16 Pieces: ['Common', ' words', ' stay', ' whole', ',', ' but', ' rare', ' ones', ' like', ' def', 'en', 'estr', 'ation', ' get', ' split', '!']
An LLM never sees your text. Before a single neuron fires, a separate program called a tokenizer chops the text into pieces called tokens and replaces each piece with a number.
A token is not the same as a word. A token can be a whole word (" hello"), part of a word ("ization"), a single character ("!"), a run of spaces, or even a fragment of a character's bytes.
Production BPE encoders don't loop over the whole merge list. They repeatedly find the pair in the current text with the lowest merge rank (earliest learned) and merge it, which gives the same result much faster.
Append / exclusive-create / read+write file modes.
The professional bar: tested, reviewed, documented — not just "ran once".
An explicit "cannot determine" escape in a judge's output schema; counted separately rather than averaged into scores.
Every lesson stays open on both routes. The route only changes where you start and what is marked to skim.
Set up your computer, learn the terminal, Git and Python properly, then move on to LLMs with nothing missing.
Skim the foundations and Python basics, then start with project setup for AI work and go straight on to LLMs.
Pick up where you left off at any time. Your progress and route are saved in this browser.