Goal

Everything an engineer needs to build, evaluate, secure, and operate production LLM systems — from how a model decodes a token to agentic systems, RAG, fine-tuning, evals, and LLMOps. Concept-first and tool-aware, with animated diagrams for the ideas that are easier to see than to read. Pairs with LangChain Senior Prep / LangGraph Senior Prep (the frameworks) and FastAPI Senior Prep (serving it).


How to use this track

You don’t build LLM features by knowing one big thing — you combine many small, sharp ideas correctly. Go top-to-bottom for a full pass, or jump to the module you need. Every module follows: concept → how it works → pros/cons → caveats → risk mitigation → in practice → sources.

This field churns — separate the durable from the volatile

The concepts here are stable (sampling reshapes a distribution, retrieval is nearest-neighbour, evals gate releases). The numbers and APIs are not — model IDs, prices, cache thresholds, framework versions, and even which sampling params exist change every few months. Each module flags its high-churn facts; re-verify those against the primary source before you rely on them. Today’s date context: mid-2026.

Three concerns that run through EVERY module (the spine)

  1. Security — prompt injection (esp. indirect, via retrieved/tool content) is not solved by RAG or fine-tuning. See 14 - Safety, Security & Risk.
  2. Cost & latency — input ≠ output tokens; agents cost ~4×, multi-agent ~15× a chat call. The real metric is cost-per-successful-task. See 15 - Cost, Latency & Performance.
  3. Evaluation — the component is non-deterministic, so every change needs offline evals. See 13 - Evaluation & Evals.

Curriculum

#ModuleCore questionAnimated?Status
0101 - How LLMs Worktokens, context, attention, autoregressive decoding, KV cache🎞️ready
0202 - Decoding, Sampling & Reasoning Controlstemperature, top-p/k, penalties, logprobs, reasoning_effort🎞️ready
0303 - Prompt & Context Engineeringroles, few-shot, CoT, prompt caching, context rotready
0404 - Structured Output & Tool CallingJSON schema, constrained decoding, function callingready
0505 - Model Context Protocol (MCP)the tool/integration standard for agentsready
0606 - Embeddings & Vector Searchembeddings, ANN, hybrid search, reranking🎞️ready
0707 - RAGchunk → retrieve → rerank → augment → generate🎞️ready
0808 - Agents & Agentic SystemsReAct, planning, reflection, workflow-vs-agent🎞️ready
0909 - Workflow & Orchestration Patternschaining, routing, parallel, orchestrator, evaluatorready
1010 - Multi-Agent Systemssupervisor, swarm, handoffs, when it helps vs hurts🎞️ready
1111 - Memory for LLM Appsshort/long-term, agentic memory, forgettingready
1212 - Fine-tuning & Model AdaptationSFT, LoRA/QLoRA, DPO/GRPO, distillation🎞️ready
1313 - Evaluation & EvalsLLM-as-judge, RAGAS, eval-driven dev, agent eval🎞️ready
1414 - Safety, Security & Riskinjection, OWASP LLM Top 10, guardrails, red-teaming🎞️ready
1515 - Cost, Latency & Performancecaching, routing/cascades, quantization, batchingready
1616 - Observability & LLMOps Lifecycletracing, prompt versioning, drift, the lifecycle loop🎞️ready
1717 - Deployment & ServingvLLM/SGLang, GPU sizing, provider vs self-hostready
1818 - Multimodal, Voice & Computer-Usevision/audio RAG, speech agents, computer-useready
1919 - Agent Protocols & InteropMCP · A2A · AG-UI · A2UI · AP2 — the interop stack🎞️ready

Suggested order

Foundations (01–05) → Retrieval (06–07) → Agents (08–11) → Adapting & proving (12–13) → Operating safely & cheaply (14–17) → Frontier modalities (18). If you only do six: 02, 03, 07, 08, 13, 14 — the daily-driver core of building LLM apps that actually work and don’t get owned.


How this fits the rest of the vault

PYTHON MASTERY + PYTHON ADVANCED      the language + runtime
        +
FASTAPI SYSTEMS MASTERY               serving APIs at scale
        +
LANGCHAIN / LANGGRAPH PREP            the orchestration frameworks
        ▼
GEN AI ENGINEER (this)                the LLM-specific craft: decoding, RAG,
                                      agents, fine-tuning, evals, safety, LLMOps

Framework how-tos live in LangChain Senior Prep and LangGraph Senior Prep; this track is framework-agnostic concepts you’d apply with any of them (or the raw provider SDK).


Anchor sources (re-verify, they move)

On the diagrams

Animated GIFs are generated by assets/gen_genai_gifs.py (Pillow). Re-run it to tweak. Obsidian animates GIFs in reading view (animated SVG renders frozen, so GIF is used).

19 items under this folder.