Fine-tuning with keyterms_prompt
Improve transcription accuracy by leveraging Slam-1’s contextual understanding capabilities by prompting the model with certain words or phrases that are likely to appear frequently in your audio file.
Rather than simply increasing the likelihood of detecting specific words, Slam-1’s multi-modal architecture actually understands the semantic meaning and context of the terminology you provide, enhancing transcription quality not just of the exact terms you specify, but also related terminology, variations, and contextually similar phrases.
Provide up to 1000 domain-specific words or phrases (maximum 6 words per phrase) that may appear in your audio using the optional keyterms_prompt
parameter:
This parameter is only supported when the speech_model
is set to "slam-1"
.
Python
Typescript
Keyword count limits
While we support up to 1000 key words and phrases, actual capacity may be lower due to internal tokenization and implementation constraints.
Key points to remember:
- Each word in a multi-word phrase counts towards the 1000 keyword limit
- Capitalization affects capacity (uppercase tokens consume more than lowercase)
- Longer words consume more capacity than shorter words
For optimal results, use shorter phrases when possible and be mindful of your total token count when approaching the keyword limit.