Skip to main content
Tian Pan

Tian Pan

Software Engineer

View all authors

·tian

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.

evaluation
llm
benchmarks
ai-engineering
·tian

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.

streaming
llm
production
infrastructure
+1
·tian

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.

fine-tuning
prompt-engineering
llm
ai-engineering
·tian

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.

ai-agents
tool-design
llm-engineering
function-calling
·tian

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
agents
tool-use
production
+1
·tian

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.

llm
cost-optimization
ai-engineering
model-routing
·tian

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.

multi-agent
ai-engineering
production
orchestration
·tian

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.

llm
observability
production
tracing
+1
·tian

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.

ai-engineering
llms
production-ai
model-selection
·tian

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.

llm
inference
performance
production
·tian

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.

llm
production
structured-outputs
ai-engineering
·tian

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.

ai-agents
production
reliability
async
+1
Showing 2029–2040 of 2314 posts
Prev170 / 193Next