Complex · How a model learns, and what it needs to run
An opening that matches word for word
Every help agent prompt opens with the same long part: shop rules, then tool descriptions, then instructions. Reading that part again for every question is slow. With prompt caching, an unchanged opening is read one time and saved for later questions. It works only if the opening matches exactly, word for word. One changed word near the top means everything after it is read again.
Example
Maple Mart, two prompts on Tuesday prompt A [shop rules] [tool descriptions] [instructions] [question] opening kept prompt B [Tuesday 9:14] [shop rules] [tool descriptions] [question] nothing kept In prompt B the time comes first and changes, so the opening never matches.
Try it Yourself
Ayla adds “Good morning, it is Wednesday” as the first line of every prompt. Can the opening still be kept? Yes or no.
Exercise
What does prompt caching keep?