Phase 1 of 12 · about 17 hours of study
Building with LLMs
Prompting, retrieval, tools, agents and evals. 31 lessons, about 17 hours of study, in four tracks. One lesson is free to try without an account: the first, What an LLM actually does. The rest need a free account.
Start with What an LLM actually does Create a free account
What you'll learn
Prompting
- What an LLM actually does FreeNext-token prediction, and why that produces useful behavior.
- Tokens and the context windowHow text becomes tokens, and what fits in one request.
- Prompt fundamentalsClear instructions, context and constraints: the 80% of prompting.
- System prompts and rolesSet behavior once, separately from the conversation.
- Examples in promptsShow the model what good looks like (few-shot prompting).
- Structured outputGet reliable JSON back that your code can use.
- Prompt chainingBreak big tasks into a pipeline of smaller model calls.
- Choosing a modelTrade capability, speed and cost across model families.
- Reasoning models and effortWhen models think before answering, and how to control it.
- Streaming responsesShow output as it's generated instead of waiting.
- Conversations and memoryAPIs are stateless: how chat history and memory really work.
Context & retrieval
- Images and documentsSend screenshots, PDFs and charts as input.
- EmbeddingsMeaning as a list of numbers, so text can be compared.
- Similarity searchFind the most relevant text by comparing embeddings.
- Chunking documentsSplit long documents so the right piece can be retrieved.
- Vector databasesStore and search millions of embeddings quickly.
- Retrieval-augmented generationAnswer from your own documents instead of the model's memory.
- Making RAG goodHybrid search, reranking and citations.
- Hallucinations and groundingWhy models make things up, and how to design against it.
Tools & agents
- Tool useLet the model call your functions (function calling).
- The agent loopModel → tool → result → model, until the task is done.
- Model Context ProtocolA standard way to plug tools and data into any AI app.
- Agent design patternsRouting, orchestrator-workers and when not to build an agent.
- LLMs in automationsPut models inside scripts and workflow tools that run on their own.
- Prompt injection and securityHow untrusted text hijacks models, and how to limit the damage.
Quality & production
- EvalsMeasure output quality with test sets instead of vibes.
- LLM-as-judgeGrade open-ended output with rubrics and a second model.
- Cost and latencyPrompt caching, batching and routing to cheaper models.
- Logging and monitoringSee what your LLM app actually did in production.
- Shipping an LLM appDeploy, secure keys, rate-limit and handle failures.
- Capstone: research agentA marketing research agent with retrieval, tools and evals.
Before you start
Lessons here build on an earlier phase:
The placement test can mark off what you already know, so you only study what's new to you.
What you'll build
A marketing research agent with retrieval, tools and evals. Read the tutorial.
- Combine retrieval, tools and an agent loop into one assistant
- Make every claim traceable to a source the agent actually looked at
- Grade the agent automatically with code checks on a small eval set
When you finish
Finish every lesson in this phase, or show you know it in the placement test, and you earn a certificate of completion, "Building with LLMs (Phase 1)", with its own link you can share.