About llm.guide
A free, independent guide to how language models work, and how to build reliable products on top of them.
- 34chapters
- 8parts
- 284figures
- 102self-check questions
What it covers
The guide runs from a single neuron to complete production systems: the theory behind language models, the engineering that turns them into dependable features, and the product and business decisions that come with them.
- OrientationChapters 1 to 2
The field today, and a mechanical model of what an LLM does.
- FoundationsChapters 3 to 10
Neural networks, transformers and tokenizers, a tiny LLM built from scratch, then pretraining, post-training and reasoning models.
- Building with LLMsChapters 11 to 13
Working with model APIs, images and documents, and prompting treated as engineering.
- Retrieval and adaptationChapters 14 to 17
Embeddings and vector search, retrieval-augmented generation from basic to advanced, and fine-tuning.
- AgentsChapters 18 to 22
The agent loop, the harness around it, context engineering for long runs, frameworks and voice.
- Production disciplinesChapters 23 to 29
Evals, observability, the data engine, security, privacy and compliance, cost and latency, and self-hosting.
- Product, business and teamChapters 30 to 32
Product and UX for AI features, the economics behind them, and building the team.
- CapstonesChapters 33 to 34
One production system built end to end, and a bank of system-design cases.
Who it’s for
Software engineers moving into AI engineering, machine learning practitioners who need the production side, and technical product people who want to know what is actually hard. It assumes you can read code; the math is explained where it is used.
How it’s made
Figures are drawn from code that was actually run, mostly on small models built for the guide. Every figure says what it is: a real measurement, a simulation, a computation, published figures, or an illustration. Prices in worked examples are round illustrative numbers so the arithmetic stays readable; check a provider’s current list before relying on one.
Anything that changes, such as a model, an API or a law, is dated. The guide was last checked in November 2026.
How to read it
New to the field? Read in order: each part builds on the one before. Already shipping? Jump to the chapter you need. Every chapter opens with a figure, works through numbered sections, and ends with key takeaways, questions to check your understanding, and further reading. Search the whole guide from the top bar, or press / on a keyboard.
Independent
llm.guide is free to read, with no sponsor and no ads. It is not affiliated with any model provider or with the companies whose tools it discusses; products are named only where a comparison needs them.
Corrections and updates
Models, prices and APIs change quickly. If you spot an error or something out of date, email amit.dange2003@gmail.com.
Start readingBrowse the contents
Made by Amit Dange. amit.dange2003@gmail.com