Part 7 · The pivot · how LLMs work · APIs · prompting · cost · RAG vs fine-tuning

LLM foundations

The move from full-stack to applied AI: what language models are, how to call them like a production engineer, and how to choose models, prompts and techniques.

L3 · Senior engineer
0 of 6 lessons · 30 min

This is where the guide turns from general engineering to applied AI. Nothing in Parts 1–6 stops being relevant; this part adds one new kind of dependency, a probabilistic, slow, expensive, rate-limited service that returns text, and everything you need to use it well.

The theme across the whole part: let the model choose; let code compute and verify.

Lessons in this part

  1. 7.1From full-stack to applied AIWhat carries over from full-stack engineering, what's genuinely new, and a 90-day plan for making the move.L3 · Senior engineer5 min
  2. 7.2How LLMs work (for engineers)Tokens, context windows, next-token prediction, sampling, reasoning models, multimodality and embeddings, at the depth an integrator needs.L3 · Senior engineer5 min
  3. 7.3Calling model APIs like a production engineerMessages, system prompts, streaming, structured output, tool calling and reasoning settings, wrapped in an adapter with timeouts, limits and validation.L3 · Senior engineer5 min
  4. 7.4Prompt engineeringStructuring prompts (role, task, context, rules, format, examples), separating instructions from data, versioning prompts like code, and reviewing them.L3 · Senior engineer5 min
  5. 7.5Model selection, cost and latencyChoosing models on evidence, routing tasks to tiers, the levers that cut cost and latency, and switching models safely.L3 · Senior engineer5 min
  6. 7.6Prompting, RAG or fine-tuning?When each technique fits, how they combine, and why fine-tuning is the wrong tool for facts that change.L3 · Senior engineer5 min