Prompt Versioning
You can version your prompts in Athina’s Prompt Playground, or via API.
When you create a prompt_template
in Athina, it is automatically assigned a version
(an auto-incremented integer) to help you track of changes over time.
This allows you to revert to previous versions if needed, and collaborate with others on the same prompt.
Commit a new version
You can commit a new version of a prompt_slug
in the prompt playground, or via the API.
- Press the
Commit
button in the editor - Enter a commit message (optional), and check that the prompt, default model, and parameters are correct.
Set Default Version
One version of your prompt_slug
can be considered the “default” version.
This is the version that will be used by default when you run the prompt via API.
To set a version as the default version, you can do so in the prompt playground, or via the API.
VERSION
: The version number you want to set as the default version. (ex:11
)
Get Default Version
You can also get the default version of the prompt programmatically.
View all versions
You can view all versions of a prompt_slug
in the prompt playground, or via the API.
- Click the version identifier in the top bar of the editor.
- A panel will open showing all versions of the prompt.
- Hover over a version to see it in the editor.
- Click on a version to replace the editor content with that version.