LESSON 2.1
Designing the system prompt
Learn key techniques and workflows in Building AI Apps with LLMs.
21m
intermediate
22,291 students
Overview
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.
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
Pro Tip
Use caching and revalidation wisely to ensure your app stays fast and data remains fresh without unnecessary requests.