#How use keywords with nova 3

1 messages · Page 1 of 1 (latest)

edgy jungle
#

I try. to pass by parameters keywords but I got 400
#STEP 2: Configure Deepgram options for audio analysis
options = PrerecordedOptions(
model=self.model,
smart_format=True,
language="en-US",
dictation= True,
punctuate= True,
sample_rate=16000,
keywords=keywords,
diarize=True,
)

Exception: DeepgramApiError: Keywords are not supported for Nova-3. Please use keyterm instead. (Status: 400)

vapid jackalBOT
#

Hi @edgy jungle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

echo archBOT
#

Hey there! This channel allows you to ask Kapa.ai for assistance. But it looks like you haven't connected your Discord profile to your Deepgram account yet. You can do so at https://community.deepgram.com - by doing so, you'll be able to ask questions in #1115960287183511643 if you need human assistance!

vapid jackalBOT
#

It appears you're encountering an error when trying to use the keywords parameter with the Nova-3 model. Based on the error message, Nova-3 doesn't support the keywords parameter that was available in previous models.

The error message suggests using keyterm instead of keywords for Nova-3. This indicates that Deepgram has updated their keyword boosting functionality for the Nova-3 model with a new parameter name.

Try modifying your code to use keyterm instead of keywords:

options = PrerecordedOptions(
    model=self.model,
    smart_format=True,
    language="en-US",
    dictation=True,
    punctuate=True,
    sample_rate=16000,
    keyterm=keywords,  # Changed from keywords to keyterm
    diarize=True,
)

This appears to be a change specific to Nova-3, as previous discussions show that keyword boosting has had compatibility issues with different models in the past. For example, there were issues with keywords not working with the Nova model as mentioned in this discussion and another discussion noted issues with keyword boosting on the enhanced tier.

If you continue to experience issues, you might want to check Deepgram's latest documentation for any updates on keyword/keyterm functionality with Nova-3.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@edgy jungle Kapa.ai is still learning and improving, please let me know how I did by reacting below.

edgy jungle
#

Exception: PrerecordedOptions.init() got an unexpected keyword argument 'keyterm'