Skip to content

Pass location names to recognizer initial prompt#694

Merged
dharmab merged 1 commit into
mainfrom
fix/issue-692-vector-parsing
May 19, 2026
Merged

Pass location names to recognizer initial prompt#694
dharmab merged 1 commit into
mainfrom
fix/issue-692-vector-parsing

Conversation

@dharmab
Copy link
Copy Markdown
Owner

@dharmab dharmab commented May 19, 2026

Summary

  • Adds a WithLocations functional option to NewWhisperRecognizer and the OpenAI recognizers
  • When set, location names are appended to Whisper's initial prompt so the model biases transcription towards known place names
  • The application wires this up automatically from config.Locations

Fixes #692: Whisper was transcribing location names as phonetic near-misses (e.g. "Incirlik" → "INSULIC"). Including the configured location names in the initial prompt is sufficient to correct transcription.

🤖 Generated with Claude Code

Adds a WithLocations functional option to NewWhisperRecognizer and the
OpenAI recognizers. When set, location names are appended to the initial
prompt so Whisper biases transcription towards known place names (e.g.
"Incirlik" instead of "INSULIC").

The application wires this up automatically from config.Locations.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@dharmab dharmab force-pushed the fix/issue-692-vector-parsing branch from 5de7f0f to 54e8108 Compare May 19, 2026 04:24
@dharmab dharmab enabled auto-merge (squash) May 19, 2026 04:25
@dharmab dharmab merged commit 3cd3e45 into main May 19, 2026
8 checks passed
@dharmab dharmab deleted the fix/issue-692-vector-parsing branch May 19, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: Focus unable to parse/interpret vector commands

1 participant