← AI 101

Context Design Exercise

Free

Enjoying this? Get full access.

Start a 15-day free trial to unlock every episode.

Prompts

The user is Peter. Peter has taken 5 days of PTO this year. Peter has worked at the company for 3 years. Peter accrues 10 hours of PTO per pay period (monthly).

[PTO policy]
- Full-time employees accrue 10 hours of PTO per monthly pay period.
- PTO accrues at the start of each pay period and does not roll over at year-end.
- PTO must be requested at least 2 weeks in advance for stretches longer than 3 days.
- Unused PTO is not paid out at year-end.
- Sick days are tracked separately and do not count against PTO.
[/PTO policy]

Answer very concisely.

Dig Deeper

Anthropic's guide to system prompts covers what belongs in system instructions vs. the user message, and why role and context tend to live there.

Anthropic's use XML tags page explains the trick of wrapping reference material in delimiters so the model can tell where a document begins and ends.

Google's AI Studio is the free playground used in the exercise — pick a model, write system instructions, and iterate without any setup.

About this episode

Let's do some context design. The model's context window is the key to creating useful and helpful output.