Version Structure
Helicone uses semantic versioning for prompts with major and minor versions:- Major versions (1.0, 2.0, 3.0) - Significant changes or breaking updates
- Minor versions (1.1, 1.2, 1.3) - Incremental improvements within a major version
Creating Versions
Via API
Create a new version with a commit message:Version Metadata
Each version includes:Querying Versions
Get All Versions
Get Specific Version
Get Production Version
Comparing Versions
The Helicone UI allows you to compare versions side-by-side:- Navigate to your prompt in the dashboard
- Select two versions to compare
- View diff highlighting changes in:
- Messages and content
- Model parameters (temperature, max_tokens, etc.)
- Tools and function definitions
- Variables and their types
Version Counts
Retrieving Version Body
Get the full prompt body for a specific version:Rollback Strategy
To rollback to a previous version:1. Identify the Target Version
2. Deploy to Production
3. Verify the Change
Best Practices
Commit Messages
Write clear, descriptive commit messages:- Good: “Improved system instructions to reduce hallucinations in medical queries”
- Bad: “Updated prompt”
Major vs Minor Versions
Use major versions for:- Complete prompt rewrites
- Changing the model (e.g., GPT-3.5 → GPT-4)
- Breaking changes to variables or structure
- New tool/function definitions
- Refining wording or instructions
- Adjusting temperature or max_tokens
- Adding examples or context
- Bug fixes
Version Testing
Always test new versions before deploying to production:- Create a new version
- Deploy to
developmentenvironment - Run integration tests
- Deploy to
stagingfor QA - Monitor metrics and quality
- Deploy to
productionwhen validated
Audit Trail
Version history provides an audit trail:- Track who created each version
- Understand why changes were made
- Correlate prompt changes with performance metrics
- Debug issues by comparing current vs previous versions
Next Steps
Deployment
Learn how to deploy versions to environments
SDK Integration
Use versions in your application code