May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
This idea carries a full system design question on its own. Each walks through the full answer.
AI Engineering · Llm Genai Ops
Free preview: the first 2 parts of this 13-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
Generative AI and Agentic AI Engineering
Unlock this lesson and the 208 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI courseread the rest of this lesson in
Generative AI and Agentic AI Engineering
Unlock this lesson and the 208 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI coursein Llm Genai Ops
This lesson is part of the AI Engineering course. Unlock the full course, a separate one-time payment, for lifetime access.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime AccessFoundation lessons of this course are free, no payment needed. Try them now
A support team ships an AI assistant that drafts replies to customer tickets. It works well for months. One Friday afternoon a product manager decides the answers feel a little terse, so an engineer adds five words to the prompt: "be as detailed as possible." The pull request is tiny. Nobody thinks twice. It merges and deploys.
By Monday, reply quality has fallen off a cliff. The assistant now writes rambling three-paragraph essays that bury the actual answer, and half of them drop the required ticket-number format. Complaints pile up. The on-call engineer starts digging, and here is the part that hurts: nobody can say for certain what the prompt even said last Tuesday, or which change caused this, because the prompt is an f-string buried three functions deep in the codebase, edited by whoever happened to touch that file.
That is the whole problem in one story. A wording change reached production with no test, no record, and no fast way back, because the wording was never treated as a thing that ships. It was treated as a string.
A prompt is not a string. It is the most important piece of business logic in an LLM application, and most teams treat it like a throwaway literal.
The prompt decides what your model does. It carries the persona, the rules, the format, the safety constraints, and the examples that steer every single answer. Change one line and you change the behavior of the whole feature, often in ways a quick manual read will not catch. That is exactly the profile of code, and it deserves the same discipline you already give your code and your model weights: versions, review, testing before it ships, and a rollback button. This lesson is about giving prompts exactly that, and about the machinery that makes each of those guarantees cheap.
Think about how you already treat a trained model. You do not paste model weights into the middle of your app. You save each trained version to a , tag one as production, and the app looks it up by name. You version it, you know which one is live, and you can roll back to the previous one without retraining anything.
A prompt deserves the identical treatment. The idea is a prompt registry: a model registry, but for prompts. Every prompt is a named artifact with a stack of immutable versions. The app never carries the prompt text. It carries a name and a stage tag, something like a request for the version currently tagged production, and asks the registry for it at runtime. That one move, pulling the prompt out of the code and into a versioned catalog, is what makes everything else in this lesson possible.

The important detail is the indirection. The application does not ask for v14. It asks for whatever version is currently tagged production. The registry resolves that tag to a concrete version at request time. That gap between what the app asks for and what actually serves is small, and it is the source of every win below. Once prompts live in a registry instead of the codebase, four things you could never do before become easy:
None of these are exotic. They are the same guarantees you already expect from a mature deploy pipeline. The registry is just what brings them to the one artifact that was quietly exempt.