Prompt Templates & Versions
Prompt Template
Section titled “Prompt Template”A prompt template is the living, current representation of a prompt. It contains:
- The prompt body with
{{variable}}placeholders - A list of declared variable names
- Optional tags and description
Think of it as the main branch of your prompt.
Prompt Version
Section titled “Prompt Version”A prompt version is an immutable snapshot of a prompt at a point in time. Each version:
- Has its own content, changelog, and version number
- Is linked to its predecessor via a
followsrelation - Can be tested and scored independently
Think of it as a tagged commit.
The Relationship
Section titled “The Relationship”prompt-template (root, "current") ↑ followsprompt-version v1 (snapshot, immutable) ↑ followsprompt-version v2 (snapshot, immutable) ← latestThe follows relation always points from newer to older: source is the newer version, target is the older one.
When to Create a Version
Section titled “When to Create a Version”Create a new version whenever you want to:
- Track a specific change for comparison
- Set up an A/B test
- Enable rollback to a known-good state
- Archive a version for regulatory/audit purposes