
Tian Pan
Software Engineer
What AI Benchmarks Actually Measure (And Why You Shouldn't Trust the Leaderboard)
AI benchmark scores look objective, but data contamination, format sensitivity, and Goodhart's Law mean leaderboard rankings often tell you little about real-world performance. Here's what to watch for.
Streaming AI Applications in Production: What Nobody Warns You About
Production streaming failures almost never come from the LLM itself — they come from NGINX buffering silently, load balancers timing out long-lived connections, and incremental JSON parsers degrading to O(n²). A practical guide to the infrastructure patterns that actually break at scale.
Fine-Tuning Is Usually the Wrong Move: A Decision Framework for LLM Customization
Most teams reach for fine-tuning too early. Here's a practical decision framework — backed by benchmarks and production examples — for when prompt engineering beats fine-tuning, when it doesn't, and the real economics of each approach.
Writing Tools for Agents: The ACI Is as Important as the API
How you design tools for AI agents — schemas, descriptions, return values, error messages — directly determines agent reliability. A guide to treating the agent-computer interface as seriously as any production API.
Tool Calling in Production: The Loop, the Pitfalls, and What Actually Works
A practical guide to tool calling in production LLM systems — covering the agentic loop, parallel execution formatting rules, writing effective tool descriptions, error recovery with is_error, and when tools add latency without value.
LLM Routing and Model Cascades: How to Cut AI Costs Without Sacrificing Quality
Running every query through a frontier model is the most common way teams overspend on AI. LLM routing and model cascades can cut costs by 45–85% while maintaining 95% of quality — here's how the patterns actually work in production.
Why Multi-Agent Systems Break at the Seams: Designing Reliable Handoffs
Production multi-agent systems fail at the boundaries between agents, not inside them. A breakdown of the three dominant failure modes and the engineering patterns that prevent them.
What Your APM Dashboard Won't Tell You: LLM Observability in Production
Production LLM systems fail silently — green dashboards hide hallucinations, prompt drift, and wrong tool selection. Here's the instrumentation model that actually surfaces what's going wrong.
Reasoning Models in Production: When They Help and When They Hurt
Reasoning models can solve problems that instruct models can't touch — but using them wrong costs 10x more and adds 10 seconds of latency to every request. Here's how to think about the tradeoff.
LLM Latency in Production: What Actually Moves the Needle
A practical breakdown of LLM latency — prefill vs decode phases, streaming, KV cache strategies, speculative decoding, and what to measure to ship faster AI applications.
Beyond JSON Mode: Getting Reliable Structured Outputs from LLMs in Production
Prompt-only JSON extraction fails 5–20% of the time in production. A practical breakdown of all four generations of structured output techniques — from JSON mode to constrained decoding — with library recommendations and schema design rules.
Why Long-Running AI Agents Break in Production (And the Infrastructure to Fix It)
Long-running AI agents fail in predictable ways: compound error rates, synchronous timeouts, non-idempotent retries, and no plan for human interrupts. Here is the infrastructure that actually makes them reliable.