home/productivity/prompt-configuration-as-data

Prompt Configuration as Data

GPTClaudeDeepSeek··253 copies·updated 2026-07-14
prompt-configuration-as-data.prompt
# 006 — Prompt configuration as versioned, audited data

**Status:** Accepted

## Context

Prompts and model choices change often and have outsized effects on output
quality and cost. If they live in application code, every wording tweak is a
deploy, there is no record of what produced a past result, and rolling back
means a revert-and-redeploy.

## Decision

Store prompt configuration — task, model id, parameters, and templates — in a
`prompt_configs` table, one active row per task. Every write lands a row in
`prompt_config_history` via a trigger. The AI client loads the active config by
task at request time; app code never hardcodes a model id or a prompt string.

## Consequences

- A prompt or model change is a reviewable, revertable data change, and the
  exact configuration behind any past output can be reconstructed from history.
- The eval harness (ADR-010) grades a specific config version, so quality
  changes are attributable.
- Configuration is now operational data that must be seeded and migrated; the
  reference impl ships a default config in code to keep the path self-contained,
  with the table as the production source.

when to use it

Community prompt sourced from the open-source GitHub repo chrisrollins-labs/rag-report-platform (MIT). A "Prompt Configuration as Data" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

chrisrollins-labs/rag-report-platform · MIT