Topic

Performance

16 articles on Performance, written from production systems rather than documentation.

3 min read

Chain of thought: what it buys and what it costs

Asking a model to reason step by step improves some tasks and slows every one of them. The trade is latency and tokens, paid on every single call.

AIPrompt EngineeringLLMsPerformance
Read post
3 min read

Choosing a model for one feature, not for the company

Teams pick one model and route everything through it. Most systems have several jobs with different requirements, and one answer fits none of them well.

AILLMsPerformanceArchitecture
Read post
3 min read

Compacting context without losing the thread

Long sessions fill the window and something has to go. What you drop, and what you replace it with, decides whether the system degrades or forgets.

AIContext EngineeringAgentsPerformance
Read post
3 min read

How vector indexes trade accuracy for speed

Approximate search is approximate on purpose. Knowing which results you are giving up explains retrieval failures that look like model problems.

AIVector DatabasesPerformanceDatabases
Read post
3 min read

Hybrid search beats pure semantic search almost everywhere

Vector search handles paraphrase well and exact terms badly. Keyword search is the reverse, and users send both kinds of query in the same session.

AIRAGEmbeddingsPerformance
Read post
3 min read

Prompt caching is the cheapest win available, if you order for it

Caching the stable prefix of a prompt cuts cost and time to first token substantially. It only works if the stable part is genuinely first.

AILLMsPerformanceContext Engineering
Read post
3 min read

Reranking is usually the cheapest upgrade a RAG system can get

Retrieval optimises for recall and the model needs precision. A reranker sits between them and fixes the mismatch without touching the index.

AIRAGEmbeddingsPerformance
Read post
3 min read

What running vector search at scale actually costs

Approximate indexes want to be in memory, and memory is the bill. Sizing that before you commit is the difference between a plan and a surprise.

AIVector DatabasesPerformanceDatabases
Read post
3 min read

Speech to text is easy until the audio is real

Transcription accuracy on clean audio is a solved problem. Production audio is noisy, overlapping and full of the terms your domain depends on.

AIMultimodalArchitecturePerformance
Read post
4 min read

Streaming responses breaks your error handling

Once you have sent a 200 and started writing tokens, there is no status code left for the failure that happens halfway through the answer.

AILLMsArchitecturePerformance
Read post
3 min read

Temperature, top-p and top-k: which knob to actually turn

Three settings control the same thing from different angles. Turning all of them is how teams get output that is either rigid or quietly unhinged.

AILLMsPrompt EngineeringPerformance
Read post
3 min read

Tokens are the unit your system is actually measured in

Cost, latency and the point at which text gets cut off are all counted in tokens. Reasoning about the system in words will mislead you in all three.

AILLMsPerformanceArchitecture
Read post

Have a system to build?

Whether it needs designing from scratch or rescuing from its own success, tell me what you’re building and I’ll tell you how I’d architect it.

Open to remote and hybrid work worldwide