Prompt

I'm building an LLM app and need a prompt registry with version history

Artificial Intelligence / MLOps1 observationLast seen Nov 4, 2026

Latest observation

Nov 4, 2026OpenAI APIWeb search: off

A good prompt registry with version history should let you treat prompts like code: identifiable, auditable, testable, and easy to roll back.

Core capabilities

At minimum, include:

  • Prompt records

    • prompt_id
    • name
    • description
    • tags
    • owner
    • created_at, updated_at
  • Version history

    • version_id
    • prompt_id
    • version_number
    • content
    • change_summary
    • created_by
    • created_at
    • status like draft, active, archived
  • Environment mapping

    • dev, staging, prod
    • which version is currently deployed where
  • Audit trail

    • who changed what and when
    • immutable history for rollback and compliance
  • Testing metadata

    • evaluation results
    • sample inputs/outputs
    • model used
    • pass/fail metrics

Suggested data model

A simple relational schema could look like this:

prompts

  • id UUID PK
  • name text unique
  • description text
  • owner text
  • tags text[]
  • created_at timestamp
  • updated_at timestamp

prompt_versions

  • id UUID PK
  • prompt_id UUID FK -> prompts.id
  • version_number int
  • content text
  • variables_schema JSONB
  • change_summary text
  • created_by text
  • created_at timestamp
  • is_active boolean
  • unique (prompt_id, version_number)

prompt_deployments

  • id UUID PK
  • prompt_version_id UUID FK -> prompt_versions.id
  • environment text
  • deployed_by text
  • deployed_at timestamp
  • rolled_back_from UUID nullable

prompt_evaluations

  • id UUID PK
  • prompt_version_id UUID FK
  • dataset_name text
  • metrics JSONB
  • notes text
  • created_at timestamp

Recommended workflow

  1. Create prompt
  2. Add version
  3. Validate schema
  4. Run evaluations
  5. Promote to staging
  6. Promote to production
  7. Track all changes
  8. Rollback if needed

API endpoints

If you’re exposing this as a service, useful endpoints are:

  • POST /prompts
  • GET /prompts
  • GET /prompts/{id}
  • POST /prompts/{id}/versions
  • GET /prompts/{id}/versions
  • GET /prompts/{id}/versions/{version}
  • POST /deployments
  • GET /deployments?environment=prod
  • POST /versions/{id}/rollback

Versioning best practices

  • Make versions immutable
  • Store prompts as exact text, not generated state
  • Include parameter schema for placeholders
  • Require a change summary
  • Support diffing between versions
  • Keep active version pointer separate from the version content
  • Add RBAC for who can edit or deploy
  • Use semantic versioning if helpful, but simple incrementing numbers often work best

Example version record

{
  "prompt_id": "p_123",
  "version_number": 7,
  "content": "You are a helpful assistant. Answer in JSON...",
  "variables_schema": {
    "type": "object",
    "properties": {
      "user_query": { "type": "string" }
    },
    "required": ["user_query"]
  },
  "change_summary": "Tightened JSON output format and added examples.",
  "created_by": "alice@example.com",
  "created_at": "2026-11-04T12:30:00Z",
  "is_active": true
}

Nice-to-have features

  • Side-by-side diff viewer
  • Commenting/review approval
  • A/B testing across versions
  • Automatic regression testing
  • Prompt templates with variables
  • Rollback with one click
  • Search by tag, owner, model compatibility

If you want, I can also help you with:

  1. a Postgres schema
  2. a Python/FastAPI implementation
  3. a Prisma/TypeScript schema
  4. a UI design for the registry

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.