Architecture

5 articles

· 2 min read

Prompt caching is the only discount you control

Cache reads cost a tenth of normal input tokens. The math on when caching pays, when it doesn't, and the mistake that quietly doubles your write costs.

#cost#caching#api

· 1 min read

Structured outputs are API contracts, act like it

Schema-enforced output killed the regex parser. It did not kill the need to version, validate and monitor what your model returns.

#structured-outputs#api#reliability

· 4 min read

Your context window needs a budget, not a bigger limit

Million-token windows did not fix context rot, they subsidized it. How I split the window into line items and stopped my agents from getting dumber mid-task.

#context#agents#architecture

· 4 min read

Fine-tuning is the last resort and that's a compliment

The decision tree for prompting, RAG and fine-tuning, in the order your wallet prefers. Most teams asking about fine-tuning need a better prompt and a dataset they don't have.

#fine-tuning#models#cost