Discussion about this post

User's avatar
The Coding Gopher's avatar

On growing conversation history: if the history is append-only, each request starts with the previous one exactly, so prefix caching keeps hitting and covers more of the chat every turn. The misses come from rewriting the front: sliding-window truncation, summarizing old turns, or a timestamp in the system prompt.

Ready for more?