give gpt_oss_120b the safe (flag-dont-guess) system prompt #18
Reference in New Issue
Block a user
Delete Branch "worktree-swap-default-prompt"
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?
What
Replace
server/prompts/default_system_prompt.mdwith the llama prompt content, so the default backendgpt_oss_120b(which carries all real traffic) uses the safe "keep the dictated word and flag it — never guess" prompt instead of the permissive "substitute the term and bracket the original" one.Why
Analysis of 16 real alpha-test cases showed the default prompt systematically over-corrects: it substitutes dictated medical terms with the model's own guess and, when the guess is wrong, inverts meaning, deletes negations, or invents drugs/doses (e.g.
kontrastmittelaffin→kontrastmittelfrei,keine relevanten Vitien→Stenosen, inventedNovalgin 500 mg).Evidence
Experiments sandbox, full pipeline (pre-gazetteer →
gpt-oss-120b→ post-gazetteer), 3 runs per case, each divergence independently judged:Same model, same gazetteer — only the prompt changed. No case-specific vocabulary was baked into the prompt.
Residual (honest)
Not zero: one hard ASR case (
davon→Tavor) still defeats both prompts and points to a separate gazetteer/model-prior follow-up.Follow-up (not in this PR)
The
DEFAULT_SYSTEM_PROMPTdoc-comment inanalyze/backend.rsstill describes the old prompt's design and c414cf52 validation; it should be refreshed. The two prompt files are now content-identical (as thebackend.rs:61comment already anticipated).Tests
Full server suite green (lib 233 passed / 0 failed; all integration suites green). No test depended on the prompt's exact text.
WIP: give gpt_oss_120b the safe (flag-don't-guess) system promptto give gpt_oss_120b the safe (flag-dont-guess) system prompt