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.vision.yaml 914 B

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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Databricks vision model example
  3. prompts:
  4. # Vision models require structured JSON prompts
  5. - file://vision-prompt.json
  6. providers:
  7. - id: databricks:databricks-claude-3-7-sonnet
  8. config:
  9. isPayPerToken: true
  10. temperature: 0.1
  11. max_tokens: 300
  12. # Replace with your workspace URL
  13. workspaceUrl: https://your-workspace.cloud.databricks.com
  14. tests:
  15. - description: 'Identify what is in the nature image'
  16. vars:
  17. question: 'What do you see in this image? Be brief.'
  18. image_url: 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/320px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg'
  19. assert:
  20. - type: contains-any
  21. value: ['boardwalk', 'nature', 'path', 'wooden', 'trees']
  22. - type: max-length
  23. value: 500
Tip!

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

Comments

Loading...