Move prompts into embedded Markdown assets
This commit is contained in:
31
internal/prompts/assets/modules/homophones/user.md
Normal file
31
internal/prompts/assets/modules/homophones/user.md
Normal file
@@ -0,0 +1,31 @@
|
||||
Review this transcript section and return only homophone or spoken-form corrections that should be applied.
|
||||
|
||||
Rules:
|
||||
- Approve only corrections where the original text is plausibly a mistaken homophone, phonetic rendering, or mistranscription of what was likely spoken.
|
||||
- Allow examples such as changing "dam" to "damn", "rank" to "Hrank", or "gestures" to "Jesters" when local context supports the correction.
|
||||
- Reject unrelated substitutions like changing "Lyra" to "Jesters".
|
||||
- Reject antonyms or reversals such as changing "visible" to "invisible".
|
||||
- Do not add or remove punctuation, alter capitalization only, normalize spacing, remove filler words, collapse repetitions, or make general readability edits.
|
||||
- Treat glossary names and aliases as protected spellings and context.
|
||||
- You may correct toward glossary names, aliases, or their plural forms when the correction is acoustically plausible and supported by local context.
|
||||
- Do not replace, Anglicize, normalize, lowercase, or otherwise alter protected glossary names or aliases that already appear correctly in the transcript.
|
||||
- Preserve canonical glossary capitalization for protected names and aliases, even if they look unusual.
|
||||
- If a segment includes categories, treat them as additional transcript context.
|
||||
- Use the exact id from the input segment.
|
||||
- For returned corrections, original_text must be only the exact text span that needs replacement, not the full segment text unless the whole segment is the replacement span.
|
||||
- Choose an original_text span that appears exactly once in the current segment text.
|
||||
- corrected_text must be only the replacement text for that span, not the full corrected segment text unless the whole segment is the replacement span.
|
||||
- Each returned correction must contain only id, original_text, corrected_text, and confidence.
|
||||
- Do not return corrections where original_text and corrected_text are identical.
|
||||
- Do not return speaker, start, or end fields.
|
||||
- Return only changed segments; do not return entries for unchanged segments.
|
||||
- confidence must be between 0.0 and 1.0.
|
||||
- If no corrections are needed, return an empty corrections list.
|
||||
|
||||
{{ hardening }}
|
||||
|
||||
{{ .TranscriptDescriptionBlock }}Protected glossary/context:
|
||||
{{ .GlossaryJSON }}
|
||||
|
||||
Transcript section:
|
||||
{{ .SectionJSON }}
|
||||
Reference in New Issue
Block a user