You're shipping a prompt change to production. What is the strongest reason to treat prompt-template version IDs (e.g. v1.7.2) as first-class artifacts, separate from your code release version?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Prompts and code have different release cadences; tagging every LLM call with a prompt-template ID lets you attribute regressions, A/B test variants, and roll back the prompt without a code redeploy.
Imagine a restaurant where the recipe and the menu are printed on the same piece of paper. Every time the chef tweaks the salt in one dish, the whole menu has to be reprinted, reapproved, and handed out again. That is what tying prompt versions to code releases feels like. Treat the recipe as its own document, stamp every plate that goes out with the recipe number, and now you can tweak the salt without reprinting the menu, and when a customer complains you know exactly which recipe was on their plate.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: lifecycle decoupling + observability tagging + rollback granularity + A/B routing + the failure mode of versioning without logging.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Burying the prompt as a string constant inside an application config, then redeploying the service every time someone retunes the prompt and wondering why rollbacks take 20 minutes instead of 30 seconds.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.