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.multimodal.yaml 1.1 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Multimodal capabilities with Mistral Pixtral model'
  3. providers:
  4. - id: mistral:pixtral-12b
  5. config:
  6. temperature: 0.5
  7. max_tokens: 1000
  8. prompts:
  9. - '{{task}}'
  10. tests:
  11. - vars:
  12. task: 'Describe what you would expect to see in a typical office workspace photo, including common objects and furniture.'
  13. assert:
  14. - type: contains
  15. value: 'desk'
  16. - type: contains
  17. value: 'computer'
  18. - type: javascript
  19. value: 'output.length >= 100'
  20. - vars:
  21. task: 'If I were to show you an image of a restaurant menu, what types of information would you look for to help someone decide what to order?'
  22. assert:
  23. - type: contains
  24. value: 'price'
  25. - type: contains
  26. value: 'menu'
  27. - type: javascript
  28. value: 'output.length >= 150'
  29. - vars:
  30. task: 'Explain how you would analyze a chart or graph if one were provided to you.'
  31. assert:
  32. - type: contains
  33. value: 'data'
  34. - type: contains
  35. value: 'chart'
  36. - type: javascript
  37. value: 'output.length >= 100'
Tip!

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

Comments

Loading...