feat: prompt versioning — track prompt_version + model in tip_scores #91
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Every served tip knows which prompt template and model produced it. This enables per-version A/B analysis without running a formal experiment.
DB changes
Prompt template store
ml/prompts/tip_generator_v1.txt,tip_generator_v2.txtTIP_GENERATOR_PROMPT_VERSIONenv var (defaultv1)content_hashof template at startup; log it — catches accidental version driftInvalidation pattern (from taskpile)
tip_scoresquery filters byprompt_versionto compare like-for-like--prompt-versionflag to compare two versions offline before deployingAdmin dashboard
prompt_versionas a breakdown dimension in/admin/reward-analyticsNotes
alvis referenced this issue2026-04-17 08:13:44 +00:00