Why Use Keyword Boosting?
Keyword boosting is beneficial for:- Enhancing the recognition of specialized terms and proper nouns.
- Improving transcription accuracy without the need for a custom-trained model.
- Quickly updating the model’s vocabulary with new or uncommon words.
Important Notes
- Keywords should be uncommon words or proper nouns not frequently recognized by the model.
- Custom model training is the most effective way to ensure accurate keyword recognition.
- For more than 50 keywords, consider custom model training by contacting Deepgram.
Enabling Keyword Boosting in VAPI
API Call Integration
To enable keyword boosting, you need to add akeywords
parameter to your VAPI assistant’s transcriber section. This parameter should include the keywords and their respective intensifiers.
Example of POST Request
To create an assistant with keyword boosting enabled, you can make the following POST request to VAPI:- name: The name of the assistant.
- model: Specifies the model and provider for the assistant’s conversational capabilities.
- voice: Specifies the voice and provider for the assistant’s speech.
- transcriber: Specifies Deepgram as the transcription provider, along with the model, language, smart formatting, and keywords for boosting.
- firstMessage: The initial message the assistant will speak.
- firstMessageMode: Specifies that the assistant speaks first.
Intensifiers
Intensifiers are exponential factors that boost or suppress the likelihood of the specified keyword being recognized. The default intensifier is1
. Higher values increase the likelihood, while 0
is equivalent to not specifying a keyword.
- Boosting Example:
keywords=snuffleupagus:5
- Suppressing Example:
keywords=kansas:-10
Best Practices for Keyword Boosting
- Send Uncommon Keywords: Focus on keywords not successfully transcribed by the model.
- Send Keywords Once: Avoid repeating keywords.
- Use Individual Keywords: Prefer individual terms over phrases.
- Use Proper Spelling: Spell proper nouns as you want them to appear in transcripts.
- Moderate Intensifiers: Start with small increments to avoid false positives.
- Custom Model Training: For extensive vocabulary needs, consider custom model training.