Prompt Engineering

Free course. Beginner level. 11 modules, about 1 h 31 min of reading. Verified November 24, 2026.

The complete course: from first principles to production context systems

Learn everything about prompt engineering for modern frontier models, from how LLMs read a prompt to context engineering, structured outputs, agents, security and evaluation.

What you will be able to do

  • Write clear, specification-driven prompts using the six-block blueprint, for chat and for APIs.
  • Choose the right technique for each model type, including when "think step by step" backfires.
  • Engineer context: fight context rot, ground answers in sources, and design prompts for caching.
  • Produce reliable structured outputs with schemas and constrained decoding.
  • Design safe agents and tools, and defend against prompt injection with layered architecture.
  • Evaluate, version and monitor prompts like production software.

Two tracks, one course

Everyday users

You use ChatGPT, Claude or Gemini for work and want reliable, high-quality results from chat interfaces, documents and creative tools. No coding required.

Engineers and AI practitioners

You build with APIs, schemas, agent harnesses and evaluation pipelines and need patterns that hold up in production.

Curriculum

  1. How LLMs read your prompt (9 min): Learn how a model tokenizes, attends to and caches your prompt, which instructions win a conflict, and why sampling knobs like temperature are being retired.
  2. Prompt anatomy, few-shot science and personas (10 min): Build prompts from six modular blocks, use few-shot examples without hurting accuracy, and learn what research says about expert persona prompting.
  3. Reasoning techniques and the reasoning-model reversal (7 min): Master chain-of-thought and its successors, then learn why "think step by step" now slows or hurts reasoning models and what to do instead.
  4. Provider playbooks and model dialects (8 min): Core prompting principles transfer across models, but each family has distinct defaults, controls and gotchas. Learn the dialects before they cost you a silent regression.
  5. Context engineering, RAG and prompt caching (11 min): Prompt engineering writes instructions; context engineering curates everything the model sees each turn. Learn context rot, the four-layer defense, grounding and caching.
  6. Structured outputs and constrained decoding (6 min): Prose like "return only valid JSON" breaks unpredictably. Learn constrained decoding, how to pick an engine, and the rules that keep structured output both valid and true.
  7. Agentic prompting, tool design and context files (9 min): When one prompt is not enough, build agents safely: choose the simplest pattern, write the four-part agentic contract, design MCP tools well and onboard coding agents.
  8. Multimodal prompting: perception and generative media (8 min): Multimodal AI splits into two disciplines: analyzing images, PDFs, audio and video, and generating media. Learn the five input slots and the slot models behind every generator.
  9. Security, red-teaming and defense in depth (8 min): As AI gains access to email, databases and code, prompt injection ranks first. Learn the OWASP LLM risks, modern attack families and the architecture that actually defends.
  10. Iteration, automated optimization and LLMOps (8 min): A prompt that works once is a coincidence, not a system. Learn systematic iteration, meta-prompting, DSPy and GEPA, calibrated LLM judges, versioning and drift monitoring.
  11. Master troubleshooting matrix and capstone (7 min): Use this quick-reference matrix whenever an AI output misses expectations, from a personal chat to a high-traffic service, then finish with a capstone that ties the course together.

Four principles the course returns to

  1. Clarity beats cleverness. Contemporary models execute what you explicitly specify rather than guessing unstated intent.
  2. Context is a finite, decaying resource. Extra tokens steadily degrade recall, even far below a model's advertised limit.
  3. Architecture beats prose. Natural-language instructions alone cannot guarantee machine-readable formats or defend against prompt injection.
  4. Unmeasured prompts become technical debt. Production prompts must be versioned, tested and re-evaluated whenever the model changes.

Frequently asked questions

Is the Prompt Engineering course really free?

Yes. The complete course, all eleven modules, quizzes and exercises, is free to read and use.

Do I need to know how to code?

No. Every module pairs an Everyday User track (chat, documents, creative tools) with an Engineering track (APIs, schemas, agents, evaluation). Pick the track that fits your work, or read both.

Which AI models does the course cover?

OpenAI GPT-4.1, GPT-5 and GPT-6 families, Anthropic Claude and Fable, Google Gemini, and open-weight models such as DeepSeek-R1, Qwen and Llama 4, with their different dialects and controls.

How current is the information?

The content was compiled and last reviewed on 24 November 2026 from peer-reviewed research and vendor documentation. Where a figure comes from a vendor benchmark, a single study or a practitioner report, the lesson says so. Model names, parameters and prices change quickly, so check current vendor documentation before you ship.

How long does the course take?

About an hour and a half of reading, plus the practice tasks. Each module shows its own reading time and ends with a short self-check quiz.

Is my progress saved?

Your completed modules and quiz scores are stored in your own browser. Nothing is sent to a server.