Building AI Apps with LLMs

From first API call to a feature you can ship: prompting, structured output, tool calling, streaming, and cost control.

popularIntermediate2h 27m4 modules26.4k students

What you’ll learn

  • Understand the model

    Reason about tokens, context windows, and sampling instead of treating the model as a black box.

  • Get structured output

    Make a model return data your program can rely on, and validate it before you use it.

  • Wire up tool calling

    Let the model call your functions, and keep the loop bounded and observable.

  • Ship it affordably

    Stream responses, cache what repeats, and keep latency and spend under control.

Tracklist

4 modules · 2h 27m

  1. 1LLM FundamentalsWhat the model is doing, what it costs, and which knobs actually change the output.26m 39s
    1. Lesson 1.1Tokens and context windowsFree preview11m 31s
    2. Lesson 1.2Temperature and sampling8m 11s
    3. Lesson 1.3Choosing a model for the job6m 57s
  2. 2Prompting That Holds UpWriting prompts that behave the same way on the thousandth call as they did on the first.34m 47s
    1. Lesson 2.1Designing the system prompt21m 1s
    2. Lesson 2.2Few-shot examples4m 31s
    3. Lesson 2.3Structured output and JSON9m 15s
  3. 3Tool Calling and AgentsLetting the model act: exposing functions, running the loop, and keeping the whole thing bounded.54m 22s
    1. Lesson 3.1Tool calling fundamentals31m 14s
    2. Lesson 3.2Building an agent loop15m 50s
    3. Lesson 3.3Guardrails and evaluation7m 18s
  4. 4Shipping to ProductionThe engineering around the model: streaming, cost, caching, and behaving well under load.31m 27s
    1. Lesson 4.1Streaming responses to the browser8m 56s
    2. Lesson 4.2Managing cost and latency13m 25s
    3. Lesson 4.3Caching and rate limits9m 6s