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
- Store the prompt or approved template in version control or a prompt registry, including variables and system instructions.
- Record the exact resolved version used at execution time, along with model ID and relevant tool configuration.
- 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
- How do I check whether examples in my prompt are biasing the answer?
- How do I test prompts with long inputs before using them in production?