Welcome to Prompt Versioner¶
Prompt Versioner is an enterprise-grade prompt management system that provides version control, performance tracking, A/B testing, and collaboration tools for AI applications.
๐ฏ Why Prompt Versioner?¶
In the rapidly evolving world of AI and Large Language Models, managing prompt versions, tracking performance, and ensuring consistent quality is crucial for production applications. Prompt Versioner provides enterprise-grade prompt management with:
- ๐ Version Control: Complete versioning for prompts with full history
- ๐ Performance Tracking: Comprehensive metrics and regression detection
- ๐งช A/B Testing: Built-in statistical framework for prompt optimization
- โก Real-time Monitoring: Automated alerts and performance dashboards
- ๐ฅ Team Collaboration: Annotations, reviews, and shared insights
- ๐จ Modern UI: Beautiful web dashboard with dark/light themes
โจ Key Features¶
๐ง Core Functionality¶
- Versioning: Automatic version management with MAJOR/MINOR/PATCH bumps
- Metrics Tracking: Comprehensive LLM call metrics (tokens, latency, quality, cost)
- Export/Import: Backup and share prompts with full history
- Git Integration: Optional Git integration for version control
๐งช Advanced Testing & Monitoring¶
- A/B Testing: Built-in statistical framework for comparing prompt versions
- Performance Monitoring: Automated regression detection and alerting
- Real-time Analytics: Live metrics and performance dashboards
- Custom Alerts: Configure thresholds for cost, latency, and quality metrics
๐ฅ Collaboration & Management¶
- Team Annotations: Collaborative notes and feedback system
- Version Comparison: Detailed diff views with change tracking
- Search & Filtering: Find prompts by metadata, performance, and tags
๐ Quick Start¶
Installation¶
Basic Usage¶
from prompt_versioner import PromptVersioner, VersionBump
# Initialize the versioner
versioner = PromptVersioner(project_name="my-app")
# Save a prompt version
version_id = versioner.save_version(
name="assistant",
system_prompt="You are a helpful AI assistant.",
user_prompt="Answer this question: {question}",
bump_type=VersionBump.MAJOR, # Creates version 1.0.0
metadata={"type": "general_assistant"}
)
# Create a new version
versioner.save_version(
name="assistant",
system_prompt="You are an expert AI assistant with deep knowledge.",
user_prompt="Please provide a detailed answer to: {question}",
bump_type=VersionBump.MINOR, # Creates version 1.1.0
metadata={"improvement": "enhanced expertise"}
)
# Track metrics
versioner.log_metrics(
name="assistant",
version="1.1.0",
model_name="gpt-4o",
input_tokens=15,
output_tokens=25,
latency_ms=1200,
cost_eur=0.001,
quality_score=0.95
)
Web Dashboard¶
Launch the interactive web dashboard:
๐ Documentation Structure¶
- Getting Started: Installation, setup, and configuration
- User Guide: Comprehensive guides for all features
- Examples: Practical examples and use cases
- API Reference: Complete API documentation
๐ Quick Links¶
๐ค Community & Support¶
- GitHub Repository: pepes97/prompt-versioner
- Issues & Bug Reports: GitHub Issues
- Discussions: GitHub Discussions
Built with โค๏ธ for the AI community