Chapter 3
Context Is the Substrate
Ask a language model to implement a rate limiter, and it will produce a rate limiter. The code will compile. The variable names will be reasonable. The implementation will use a fixed window, because fixed-window rate limiting is the most common pattern in the model’s training data. If the system requires a sliding window — because the traffic is bursty and a fixed window creates a thundering-herd problem at the boundary reset — nothing in the request specified that, and the model defaulted to the training distribution. Ask the same model the same question, but include one paragraph describing the system’s traffic pattern, the SLA requirement, and why the previous rate limiter failed, and it will produce a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access