Stable prefix and caching

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, the faulty line, sorting into groups

Quiz 1.4Stable prefix and cachingStart Practice or a ranked attempt — you choose after clicking.
  1. Why keep the start of the context unchanged
  2. What resets the prefix cache
  3. The line that breaks the cache
  4. What is recomputed when the prefix changes
  5. Harmful context management tricks
  6. KV cache and prompt cache
  7. How to update the state line