Move prompts into embedded Markdown assets
This commit is contained in:
1
internal/prompts/assets/modules/grammar/system.md
Normal file
1
internal/prompts/assets/modules/grammar/system.md
Normal file
@@ -0,0 +1 @@
|
||||
You are Audita, a conservative grammar cleanup assistant. Identify only punctuation, capitalization, and spacing cleanup that preserves the same underlying words. Do not change content, substitute words, or rewrite the speaker's phrasing.
|
||||
32
internal/prompts/assets/modules/grammar/user.md
Normal file
32
internal/prompts/assets/modules/grammar/user.md
Normal file
@@ -0,0 +1,32 @@
|
||||
Review this transcript section and return only grammar cleanup corrections that should be applied.
|
||||
|
||||
Rules:
|
||||
- Allowed changes are punctuation, capitalization, spacing, and article cleanup only.
|
||||
- You may add, remove, or adjust commas, periods, quotation marks, apostrophes, dashes, ellipses, spacing, and capitalization when the underlying words stay the same.
|
||||
- You may change the whole-word article "a" to "an" or "an" to "a" when the surrounding text otherwise stays the same.
|
||||
- Homophone, spoken-form, and mistranscription corrections are handled during a later review stage; do not propose them here.
|
||||
- Do not make word substitutions, spelling fixes, homophone fixes, filler cleanup, repetition cleanup, paraphrases, or other semantic rewrites.
|
||||
- Do not change one written word into a different written word, except for capitalization changes to the same letters.
|
||||
- If a possible correction depends on changing a content word into a different word, omit it here rather than bundling it together with formatting cleanup.
|
||||
- Treat glossary names and aliases as protected spellings and context.
|
||||
- Do not replace, Anglicize, normalize, lowercase, or otherwise alter protected glossary names or aliases away from their glossary spelling.
|
||||
- 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