AI Help

How do I version prompts so I can trace which one produced an output?

Give each prompt revision an immutable ID and log it with the model, input reference and output for every run.

Steps to follow

  1. Store the prompt or approved template in version control or a prompt registry, including variables and system instructions.
  2. Record the exact resolved version used at execution time, along with model ID and relevant tool configuration.
  3. Link outputs and evaluation results to that run record. Keep private inputs under suitable access and retention controls.

Example in practice

Illustrative example. An incorrect classification can be traced to prompt-v7 and compared with the evaluation that approved that revision.

Related AI help

Official guidance

OpenAI documentation