Skip to content

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

pip install prompt-versioner

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:

python examples/run_dashboard.py
Dashboard Overview Dark Mode

๐Ÿ“– Documentation Structure

๐Ÿค Community & Support


Built with โค๏ธ for the AI community