learn.ai

Week 1 of 5

Foundations and an agent loop from scratch

Understand what an LLM actually does, then write a streaming chat and a tool-using agent loop without any framework.

0%

Pick a start date to see real dates.

0%
Today

Build this week

  • A one-page design doc for your project
  • A chat endpoint that streams tokens, and a UI that renders them as they arrive
  • An agent loop with no framework and 2 or 3 tools
  • Structured outputs with schema validation and retries
  • Cosine similarity written from scratch
  1. Day 11 h 26 min

    What an LLM is

    Notes
  2. Day 21 h 30 min

    Pretraining and tokens

    Notes
  3. Day 31 h 30 min

    Sampling and hallucination

    Notes
  4. Day 41 h 30 min

    First code-along

    Notes
  5. Day 54 h 10 min · weekend

    Streaming chat

    Notes
  6. Day 64 h 15 min · weekend

    Agent loop and structured output

    Notes
  7. Day 71 h 20 min

    Week review

    • 50 min
    • 30 min
    Notes

If you have time

Checkpoint

Answer out loud, then rate yourself.

Walk through an agent loop step by step.
When is a fixed workflow better than an agent?