Purrx

Learn generative AI by building with Gemini

Go from 'what is an LLM?' to building a working AI agent — writing real code against the Gemini API in your browser. Concepts first, then a playground that checks your work.

Lessons
19
Total time
~200 min
XP on offer
565
Level
Beginner to advanced
Price
Free

Syllabus

Work top to bottom, or jump straight to the gap you came here to fill.

  1. 01

    Setup

    Get a free API key and understand exactly where it lives.

  2. 02

    How models actually work

    Next-token prediction, tokens, context windows and the sampling knobs — the mental model everything else rests on.

  3. 03

    Prompting that holds up

    System instructions, few-shot examples, and why a prompt is never a security boundary.

  4. 04

    Structure and tools

    Make output parseable, then let the model call your own functions.

  5. 05

    From LLM to agent

    What agency actually means, built by hand — plus retrieval so your agent can work from real sources.

  6. 06

    Multimodal and streaming

    Images as input, and streaming tokens to a UI as they arrive instead of making people wait.

  7. 07

    Safety and evaluation

    Safety settings, LLM-as-judge scoring, and how to test a feature whose output changes every run.

  8. 08

    Boss challenge: build an assistant

    Tools, an agent loop and structured output combined into one working assistant.

Questions

Does this course cost anything?
The course is free. You bring your own Gemini API key, and every exercise is sized to run comfortably inside Google's free tier.
Where is my API key stored?
On your Purrx account, encrypted before it is written to the database, so it is there on every device you sign in on. It is only used for your own requests — playground code runs in a sandboxed Web Worker that calls Google directly, and the PPTX Lab calls Google from our server on your behalf.
Do I need to know machine learning?
No. This is an engineering course. You need to be able to read JavaScript; everything about how models work is taught from first principles.
Is this useful if I've already used the ChatGPT or Gemini apps?
Yes — using a chat product teaches you very little about tokens, sampling, structured output, function calling or agent loops. Those are the things that matter when you build with a model rather than talk to one.
What is the difference between an LLM and an AI agent?
An LLM call is a single function: text in, text out. An agent is a loop around that call which can use tools, observe the results and decide its next step until a goal is met. The course covers both, and you build an agent by hand.