internalsGet Pro

AI Engineering · Module 01

AI engineering fundamentals

Lessons
13
Free
5
Reading
~3 h

Your progress

0 / 13 lessons done

Sign in to track

Lessons

  1. Introduction to AI engineeringFreeMost AI features are built by product engineers who call a model someone else trained. Knowing what changes compared with ordinary code shows you where the real work, the real cost and the real risks are.14 min
  2. The AI application stack: from model to productKnowing which parts of an AI feature you build and which you rent shows you where your work, your bill and your risks are. It also explains why prompts, evals and model upgrades become part of everyday engineering.11 min
  3. Calling a model API: request, response and costFreeEvery AI feature you build is made of calls like this one. Knowing what each field controls, how to spot a cut-off answer and what a call really costs is what turns a demo into a feature you can run every day.15 min
  4. Tokens: how models read text and charge for itFreePrices, limits and output ceilings in a model API are all counted in tokens, not words. If your token estimate is wrong, your cost estimate and your limits are wrong with it.8 min
  5. Choosing a model: capability, cost and speedThe model id is one line of code, but it sets most of a feature’s bill and how long users wait. You choose it at the start of every AI feature, and again whenever models or prices change.8 min
  6. Hosted and open-weight models: the tradeoffsSooner or later a customer, a lawyer or the finance team asks where your model runs and whether running it yourself would be cheaper. You need an answer with numbers, not a guess.16 min
  7. Sampling and temperature: controlling randomnessFreeMany tutorials still say “set temperature to 0” for steady output. On the current Claude API that request fails, so you need to know where consistent output comes from instead.12 min
  8. Context windows: what fits and what gets lostFreeEvery feature that adds documents, history or past conversations to a call decides what goes in its context window. That choice sets the bill on every call, and whether the model notices the one detail that matters.7 min
  9. Streaming responses: showing output as it arrivesAny feature where a person watches the screen while a model writes, a chat, a draft, an answer, feels slow without streaming. Streaming also moves the stop reason, the token counts and some errors to the end of the response, so the code that reads them has to change.13 min
  10. Model API errors, rate limits and retriesEvery feature that calls a model API meets 429s, overloaded errors and timeouts on its busiest day. Knowing which failures to wait out and which to fix is the difference between a feature that recovers on its own and one that hides bugs or shows people empty results.17 min
  11. Estimating the cost and latency of a featureBefore an AI feature launches, someone asks what it will cost each month and how fast it will be. An estimate built from one call can be several times too low, and a latency promise without a budget behind it gets broken in the first week.15 min
  12. Design: a ticket summary featureMost first AI features look like this one: one model call that turns a long text into a short one. Getting it into production is mostly ordinary engineering around that call, and the decisions you make here, when to call, what to store and what to show when the call fails, come back in every AI feature you build.30 min
  13. Lab: a command-line chat with streamingMost AI features you will build are conversations: support assistants, coding helpers, agents. Building one by hand shows where the memory really lives and why long conversations cost more with every turn.16 min

Practise with

No tools or paper guides for this module yet.

Terms this module teaches 35

Open glossary

AI application stack

The three layers an AI product sits on: the application layer on top, the model layer in the middle and the infrastructure layer at the bottom.