Production AI pipelines have ~7 stages, and only one is the model

Aiden_Tech_Ai · x · 2026-09-20

A viral explainer argues that "using AI" in production is closer to 7 stages — clean the question, vectorize, retrieve context, rerank, assemble the prompt, run the model, check the output — with 6 of them having nothing to do with the model.

The key failure example: retrieval pulls the US refund policy instead of the EU one, and every downstream stage still "works perfectly" — the reranker sorts the wrong chunks, the prompt assembles them correctly, and the model confidently generates a polished but wrong answer. Nothing breaks; the problem was the input.

That's why the final output guardrail matters: it's the only stage designed to question everything before it. The post also notes the model can be a small fraction (9%) of your latency, with the rest in surrounding stages.

Original post →

More from coding & agent

coding & agent channel →