AI Engineer’s Playbook
A pragmatic field guide for software engineers and IT professionals stepping into AI/ML.
No hype. No “journey” metaphors. No “democratizing” anything. Just facts, patterns, code that runs, and the occasional “here’s what everyone gets wrong.”
Table of Contents
Foundations
- Probability & Statistics for Engineers — Your Bayesian intuition is probably broken. Let’s fix it.
- Cheatsheet · PDF
- Live Code Demo
- Linear Algebra for Engineers — Matrices are just functions. Stop pretending they’re magic.
- Cheatsheet · PDF
- Live Code Demo
- Optimization & Calculus for ML — Gradient descent is just walking downhill. Your intuition fails at 100D, so here’s code instead.
- Cheatsheet · PDF
- Live Code Demo
LLM Fundamentals
- Transformers Demystified — The transformer is not a neural network. It’s a composition operator. Here’s why that distinction saves you three weeks of debugging.
- Cheatsheet · PDF
- Live Code Demo
- LLM Training Lifecycle — Pretraining is expensive. Fine-tuning is easy. Both are wrong. The actual pipeline: data curation → pretraining → SFT → RLHF/DPO → monitoring.
- Cheatsheet · PDF
- Live Code Demo
- Tokenization & Context Windows — Your 128K context window is a lie. Understanding tokenizers, subword fragmentation, and context economics.
- Cheatsheet · PDF
- Live Code Demo
Prompting (It’s Not Magic, But It’s Not Nothing)
- Prompt Engineering Patterns — Zero-shot, few-shot, CoT, ReAct — patterns that actually work and ones that don’t.
- Cheatsheet · PDF
- Live Code Demo
- Structured Outputs & Function Calling — JSON is a schema. Functions are APIs. Here’s how to make LLMs use them reliably.
- Cheatsheet · PDF
- Live Code Demo
- Guardrails & Safety — Your LLM will argue and lie. Here’s how to constrain it without making it useless.
- Cheatsheet · PDF
- Live Code Demo
RAG (Retrieval, Not Magic)
- RAG Architecture & Chunking — RAG is just Google with a neural network. Here’s what actually makes it work.
- Cheatsheet · PDF
- Live Code Demo
- Embedding Models & Vector Databases — Your embeddings are not vectors. They’re probability distributions in disguise.
- Cheatsheet · PDF
- Live Code Demo
- RAG Debugging & Evaluation — RAG isn’t broken. Your evaluation is. Here’s how to actually test it.
- Cheatsheet · PDF
- Live Code Demo
Fine-Tuning (When It’s Actually Worth It)
- Fine-Tuning Fundamentals — You probably don’t need fine-tuning. Here’s how to tell when you do.
- Cheatsheet · PDF
- Live Code Demo
- LoRA & QLoRA in Practice — Low-rank adaptation for engineers who don’t care about the math (but need the results).
- Cheatsheet · PDF
- Live Code Demo
AI Engineering Tools
- Orchestration Frameworks — LangChain is a dependency tree. LlamaIndex is RAG-specific. DSPy is the weird one. Here’s when to use which.
- Cheatsheet · PDF
- Live Code Demo
- Model Serving & Inference — Inference is not deployment. Here’s latency/throughput/cost without the marketing copy.
- Cheatsheet · PDF
- Live Code Demo
- Agent Frameworks — Agents are just programs with tool access. Most patterns are overcomplicated. Here’s what actually works.
- Cheatsheet · PDF
- Live Code Demo
MLOps & Production
- Training Pipeline Engineering — Training pipelines are infrastructure problems with a math hat.
- Cheatsheet · PDF
- Live Code Demo
- Monitoring & Drift Detection — Your model works. Until it doesn’t. Here’s how to catch it before your users do.
- Cheatsheet · PDF
- Live Code Demo
- Cost Engineering for AI Systems — AI is expensive. Here’s how to not go broke building with it.
- Cheatsheet · PDF
- Live Code Demo