PromptEngine Docs

Overview

Comprehensive documentation for PromptEngine - Rails engine for AI prompt management

What is PromptEngine?

Welcome to PromptEngine - a powerful Rails engine for managing the AI prompts your application uses. Sick of hardcoding your prompts in your code so that every time you want to update them, you have to change your code and deploy? PromptEngine solves this by giving you an admin interface to make your prompts, store them in a database, and load them when you need them.

Quick Start

Why PromptEngine?

Managing AI prompts in code is painful. Every change requires a deployment, testing is cumbersome, and non-technical team members can't contribute. PromptEngine solves these problems by providing:

  1. Central Management - All prompts in one place
  2. Version Control - Track changes and restore previous versions
  3. Team Collaboration - Non-technical users can manage prompts
  4. Testing Tools - Validate prompts before production
  5. Rails Integration - Works seamlessly with your Rails app

Core Features

Create and organize AI prompts with a powerful template system. Supports multiple AI providers including OpenAI and Anthropic. - Organize prompts by category - Set system messages and model configurations - Define reusable templates - Control prompt status (draft, active, archived)

Never lose a working prompt again. PromptEngine automatically versions every change with full history tracking. - Automatic versioning on save - Compare versions side-by-side - One-click restoration - Change descriptions for context

Test prompts with real AI providers before using them in production. See actual responses and iterate quickly. - Live testing interface - Multiple model support - Token counting - Response streaming

Build dynamic prompts with variables that are automatically detected and validated. - {{ variable }} syntax - Type inference and validation - Default values - Complex types (arrays, JSON)

Next Steps

Ready to get started? Check out our installation guide to add PromptEngine to your Rails application.