AI interviews · AI engineers, the loop and the fundamentals

Prompts and context, from one call to a whole agent loop

Prompting questions now test whether you can treat the context window as an engineered system. This lesson covers what goes in each role, when examples and reasoning help, how to get output a program can trust, how to lay out and cache long prompts, and how to improve a prompt with evidence instead of taste.

17 min read Full lesson in the app Patterns: stable-then-volatile, instructions-data-restatement, eval-before-edit

What you'll be able to do

Before this: how-llms-work

Log in to read the rest of this lesson

Prompting questions now test whether you can treat the context window as an engineered system. This lesson covers what goes in each role, when examples and reasoning help, how to get output a program can trust, how to lay out and cache long prompts, and how to improve a prompt with evidence instead of taste. This walkthrough runs about 17 minutes, with runnable code you can edit and re-run as you read. A new account gets 7 days of Pro free, no card required.

Log in to continue

The first module of every track is free to read on the web: see what's open in AI interviews.