Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

promptfooconfig.nova-sonic.yaml 1.8 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Amazon Bedrock Nova Sonic with a conversation
  3. providers:
  4. - id: bedrock:amazon.nova-sonic-v1:0
  5. config:
  6. inferenceConfiguration:
  7. maxTokens: 4096
  8. temperature: 0.7
  9. topP: 0.95
  10. textOutputConfiguration:
  11. mediaType: text/plain
  12. audioInputConfiguration:
  13. mediaType: audio/lpcm
  14. sampleRateHertz: 16000
  15. sampleSizeBits: 16
  16. channelCount: 1
  17. encoding: base64
  18. audioType: SPEECH
  19. audioOutputConfiguration:
  20. mediaType: audio/lpcm
  21. sampleRateHertz: 24000
  22. sampleSizeBits: 16
  23. channelCount: 1
  24. voiceId: matthew
  25. encoding: base64
  26. audioType: SPEECH
  27. region: us-east-1
  28. prompts:
  29. - file://nova_sonic_prompt.js
  30. defaultTest:
  31. vars:
  32. system_message: You are a helpful assistant. Answer the question based on the audio input.
  33. metadata:
  34. type: text
  35. conversationId: date_thread
  36. # The conversationId is a special metadata field that promptfoo uses to maintain conversation history between tests.
  37. # When multiple tests share the same conversationId (like "date_thread" here), each test's response is added to the
  38. # conversation history, allowing the model to reference previous exchanges. This enables testing of multi-turn
  39. # conversations where context from earlier interactions affects later responses.
  40. tests:
  41. - vars:
  42. audio_file: file://assets/hello.wav
  43. metadata:
  44. type: audio
  45. conversationId: date_thread
  46. assert:
  47. - type: llm-rubric
  48. value: the date and time is today
  49. - vars:
  50. audio_file: file://assets/weather.wav
  51. metadata:
  52. type: audio
  53. conversationId: date_thread
  54. assert:
  55. - type: llm-rubric
  56. value: contains a weather report
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...