System prompt and instructions

A section of the "Prompting and context" topic. The questions check an understanding of practice, not memory of specific library APIs. After each answer comes a review: why the correct option is right, what is wrong with each incorrect one and which chapter to read.

Quiz difficulty Formats: one correct option, several correct options

Quiz 1.2System prompt and instructionsStart Practice or a ranked attempt — you choose after clicking.
  1. Testing a system prompt
  2. Business rules in the prompt
  3. Capital letters in a prompt
  4. The system prompt and the user message
  5. The model's chat template
  6. Concatenating messages by hand
  7. Protection against injections at the context level
  8. How to write a skill description