Online course, Engineering
14 lessons of 25–30 minutes, 5 modules: from a mental model of LLMs to DSPy and drift monitoring. A measured task in every lesson.
No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.
Lesson 1, 30 minLLM as a text completion engineThe course is for developers who build LLM pipelines and want to measure prompt quality with numbers. 14 lessons of 25–30 minutes, each with a measured task: structure and few-shot, chain-of-thought and self-consistency, Tree-of-Thoughts, ReAct, system prompt hardening, output constraints, meta-prompts, attacks and red-teaming, LLM-as-judge with promptfoo, DSPy and prompt versioning in production.
At every step an LLM estimates the probability of the next token, so any word in the prompt shifts the answer. In the task you write three versions of a sentiment prompt (a short question, a role with an explicit label set, the same plus an output format), run each 5 times on one input and compare which is more stable.
Foundations of systematic prompting → reasoning techniques → instruction design patterns → reliability and evaluation → optimization and scale. The first two lessons of module 1 are free.
The LLM mental model, prompt structuring (XML/markdown, roles), and balancing zero-shot vs few-shot.
1LLM as a text completion enginefree30 minThe LLM as a probabilistic next-token predictor, and why the wording of a prompt changes the output so much.2Structuring prompts: XML, markdown, rolesfree25 minXML tags for Claude, markdown for GPT/Gemini, separating system/user/assistant, and defending against delimiter injection.3Zero-shot vs few-shot: when and how25 minWhen zero-shot is enough, how to pick few-shot examples (diversity, format matching), negative examples, and dynamic selection.Chain-of-thought and self-consistency, tree-of-thoughts, ReAct — how to make the model reason reliably.
4Chain-of-thought and self-consistency35 minCoT patterns, zero-shot CoT 'Let's think step by step', self-consistency (sampling + voting), when CoT hurts.5Tree-of-Thoughts30 minThe ToT algorithm, BFS/DFS exploration, evaluator prompts, a practical framework-free implementation.6You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.
See how a certificate is checkedThe course techniques come from the papers that first described them, linked below.
Two notes if you do the tasks on Claude. API version 2026-10-21 removed the temperature parameter and a request with it returns a 400 error; Claude 4.7 and later models already accepted only the default. Default sampling runs at temperature 1.0, so self-consistency still gets varied answers without the parameter.
Prefilling “{” for JSON stopped working with Claude 4.6: use structured outputs or a tool with a schema instead.
promptfoo has belonged to OpenAI since March 2026 and remains open source under the MIT license.
Prompt Engineering from Scratch is for people who write requests in a chat and do not code. The Prompt Engineering Guide course follows the open guide by DAIR.AI. This course is for developers: you measure each technique on a set of examples, count tokens and calls, and decide whether it pays off in production.
On simple tasks such as a lookup or trivial classification, reasoning adds noise and tokens and sometimes leads to a wrong answer. With a strict output format it gets in the way of clean JSON, so leave reasoning to the model's built-in thinking and get the answer through structured outputs. Reasoning models need no CoT instructions: OpenAI advises avoiding them, and effort sets the reasoning depth. CoT also makes the answer longer, which matters when latency is tight.
It is a tree search instead of a single reasoning chain. At each step the model proposes several candidates, a separate evaluator prompt marks them sure, maybe or impossible, and only promising branches continue. Yao et al. described it in 2023; it costs several times more than CoT and pays off on search problems like Game of 24.
The lesson combines several measures: unique delimiters with an explicit note that the text inside is data, least privilege for the agent, input and output classifiers, normalizing encoded input, and repeating the rules after the data. One prompt cannot give full protection, so dangerous actions are blocked in code and the attack success rate is tracked with a regression set.
DSPy wins when you have a training set and an automatic metric, a multi-step pipeline, or a pipeline you need to move between models. Hand tuning is better for one-off simple tasks, for generation without a metric and where every word matters. In the lesson task you compare both on accuracy and number of calls.
Advanced, ClaudeAn LLM evals course based on Anthropic's materials: test cases and golden answers, Playground, code-graded evals, promptfoo, LLM as a judge. 8 Python lessons.
Certificate
Advanced, Gemini8 advanced Gemini API projects from Google: a ReAct agent, Google Search reports, Barista Bot, PDF to JSON, anomaly detection and embedding re-ranking.
Certificate
Intermediate, Claude7 lessons: how to give Claude design tasks, build a DESIGN.md with tokens and components, generate screens in Stitch and code from Figma over MCP.
Certificate
Intermediate, Claude10 lessons on Claude Code in real projects: CLAUDE.md, slash commands, task plans, git and PRs, test-first debugging, MCP servers, VS Code, JetBrains and CI.
CertificateThe lessons on the LLM mental model and prompt structure are open after a free sign-up. Sign up with email or Google to get 7 days of full access to every lesson in the course and the whole catalog.
Sign upRoles and personas, output constraints, and meta-prompts — how to precisely control model behavior.
7Roles, personas, and system-prompt hardening25 minRole prompting, persona locking, hardening the system prompt against jailbreak, the difference between role and identity.8Output constraints: format, length, negative30 minFormat constraints (JSON, CSV, XML) via a schema in the prompt and structured outputs in the API, length limits, negative constraints with a reason, and constraint order in long context.9Meta-prompts and self-improving prompts30 minPrompt generators, self-improving prompts, output self-critique, the constitutional AI pattern.Self-consistency in production, adversarial robustness, automated prompt-quality evaluation.
10Self-consistency in production25 minSelf-consistency decoding, majority-voting implementation, ensemble prompts, cost vs accuracy tradeoffs.11Adversarial: injections, jailbreak, red-teaming30 minPrompt injection, jailbreak vectors (DAN, role-play, encoding tricks), defensive patterns, red-teaming your own prompts.12Prompt evaluation: LLM-as-judge and test harnesses30 minThe LLM-as-judge pattern, rubric design, pairwise comparison, automated harnesses (PromptFoo), regression testing of prompts.Automated prompt optimization (DSPy) and production practices: versioning, A/B, cost, drift monitoring.
13Automated optimization: DSPy30 minDSPy overview, automatic few-shot selection, prompt optimization loops, when it beats manual tuning.14Prompts in production: versions, A/B, cost, drift30 minPrompt versioning, A/B testing, cost optimization (caching, shorter prompts), drift monitoring, prompt as code.Yes, with two adjustments. Claude API version 2026-10-21 removed temperature: delete it from the code and sampling runs at temperature 1.0. Prefill stopped working with Claude 4.6, so use structured outputs for JSON. Everything else (tool use for ReAct, XML tags, LLM-as-judge) works as in the lessons.
The course is advanced. You need Python, an API key from one provider (Anthropic or OpenAI) and some experience writing prompts. If prompting is new to you, start with Anthropic's interactive tutorial.
The first two lessons are always free. After sign-up you get 7 days of full access with no card. Pro opens every lesson in the catalog for $9 a month or $79 a year.