Designing the system prompt

The system prompt sets role, constraints, and refusals. It is followed more reliably than instructions buried in user content, so the load-bearing rules belong here.

Lesson 2.121m 1sIntermediate22.3k students

Chapters

21:01
  1. 0:00Primer on System Prompts
  2. 0:07What is a System Prompt?
  3. 3:07Comprehensive System Prompt Example
  4. 6:30Auto Generate System Prompts with OpenAI Playground
  5. 7:40Testing System Prompts with the OpenAI Playground
  6. 10:00Techniques for High-Quality System Prompt Design
  7. 18:12Perplexity and Copilot System Prompt Leaks

What this lesson covers

  • Separate durable rules from per-request input
  • State constraints and refusals explicitly
  • Keep it short enough to stay affordable per call

This lesson sits in Prompting That Holds Up, part of Building AI Apps with LLMs. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will

  • Separate durable rules from per-request input
  • State constraints and refusals explicitly
  • Keep it short enough to stay affordable per call

Resources