Harness EngineeringDesign a Cache Experiment That Measures the Right Thing
Prompt caching measurement means separating context size, billed usage and latency instead of reading one counter as proof of all three.
Rod Rivera

1 entry and 2 thoughts filed under this tag.
Two requests can look similar to a person while failing to reuse a cached prefix. Measure the actual usage data. Run a controlled test with a stable prompt and several different synthetic inputs. Record the API's…
If many API requests share the same instructions, keep that stable material together. Changing text at the start of every request can prevent useful prompt-prefix reuse. For a classification workflow, put the fixed task…
Learn
Save your progress with a free account.
Checking sign-in…
Cookie duty
The one he did not eat is a measurement cookie. Say yes and the site loads Google Analytics (GA4), which stores an identifier in your browser and lets us count which lessons get read.
Change your mind any time with Privacy choices in the footer. Read the Privacy Policy
Optional · newsletter
That is saved and settled. Separately, and this is marketing rather than measurement: Rod writes a weekly email — one lesson, one field note — sent through Kit. It has nothing to do with cookies, and skipping it costs you nothing.
We will send a confirmation email. Click the link in it and the next lesson finds you.