Skip to content

Commit 73a1612

Browse files
committed
fix: make enhancement prompt comprehensive for all error types
- Broaden prompt to fix all errors not just specific examples - Add informal speech correction (gonna → going to) - Cover logical inconsistencies and nonsensical phrases - Change "don't restructure into lists" to "don't restructure or change style" - Reduce from 10 to 8 concise lines while improving coverage The prompt now handles all types of transcription errors including pronoun mismatches, semantic issues, and informal speech patterns.
1 parent 29d2679 commit 73a1612

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src-tauri/src/ai/prompts.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ pub fn build_enhancement_prompt(
7575

7676
const DEFAULT_PROMPT: &str = r#"THEN clean up this voice transcription:
7777
78-
- Remove filler words (um, uh, like) and stutters
79-
- Fix unnatural conjunctions or articles that seem out of place
80-
- Fix grammar, spelling, and common homophones
81-
- Correct technical terms and programming terminology
78+
- Remove filler words and stutters
79+
- Fix all errors: grammar, spelling, punctuation, word choice
80+
- Fix logical inconsistencies and nonsensical phrases
81+
- Correct informal speech if inappropriate (gonna → going to)
82+
- Correct technical terms and proper nouns
8283
- Format numbers, dates, times naturally
8384
- Handle dictation commands when explicitly stated
84-
- Keep the original tone and flow - don't restructure into lists
85-
- Preserve natural speech patterns while fixing errors
85+
- Keep the original tone and flow - don't restructure or change style
8686
8787
Return ONLY the cleaned text as natural dictation output."#;
8888

0 commit comments

Comments
 (0)