Glossary

Prompt management

Glossary

What is prompt management?

Prompt management is storing, versioning, and serving the prompts an LLM app uses from a central place instead of hard-coding them, so prompts can change without a deploy and every change can be traced and rolled back.

Last updated

To version prompts for an LLM app: move each prompt out of the code into a prompt registry; publish every change as a new, permanent version instead of editing in place; fetch the prompt at runtime by name (latest, or a pinned version); fill variables at fetch time; and record the prompt name and version on each trace so you can tell which version produced an answer.

Keeping prompts out of code means non-engineers can change wording without a release. The risk is the same: a bad edit is live on the next call. Plan the way back before you need it. Pinning a version through configuration stops the bad version fastest; publishing the old text as a new version rolls everyone forward to a known good prompt.

Use drafts for work in progress so unfinished edits are never served, and handle a failed fetch explicitly: if the app cannot load its prompt, it should fall back to a safe response rather than run without its instructions.

OpenLIT Prompt Hub is open source (Apache 2.0). Each published version is permanent and numbered as a Major, Minor, or Patch bump; drafts are never served; variables such as {{company}} are filled at fetch time with openlit.get_prompt(); and download counts show which versions apps are fetching. Walkthrough: https://openlit.io/blogs/prompt-versioning-with-prompt-hub. Docs: https://docs.openlit.io/latest/openlit/prompts-experiments/prompt-hub/overview.

FAQ

How do I manage and version prompts for LLM apps?

Store prompts in a prompt registry instead of code, publish each change as a new permanent version, fetch prompts at runtime by name and version, fill variables at fetch time, and record the prompt version on every trace.

How do I roll back a bad prompt version?

Pin the app to the last good version through configuration, or publish the old text again as a new version so every unpinned caller picks it up. In OpenLIT Prompt Hub old versions are read-only, so both approaches leave the full history intact.

Is there an open-source prompt management tool?

Yes. OpenLIT Prompt Hub is open source under Apache 2.0, with versioned prompts, drafts, variables, and runtime fetching through the OpenLIT SDK. Langfuse also offers open-source prompt management.

Related terms

Get started

Ready to use the OpenLIT UI in production?

Self-host or connect your stack in minutes. Same harness UI for traces, dashboards, prompts, and evaluations.