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.yaml 684 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'WatsonX Image Analysis'
  3. prompts:
  4. - 'Analyze the content of the image located at {{image_url}}.'
  5. providers:
  6. - id: watsonx:meta-llama/llama-3-2-11b-vision-instruct
  7. label: 'LLaMA-3 Vision Instruct'
  8. defaultTest:
  9. options:
  10. transformVars: |
  11. return { ...vars, image_markdown: `![image](${vars.image_url})` }
  12. tests:
  13. - vars:
  14. image_url: https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Great_Wave_off_Kanagawa2.jpg/640px-Great_Wave_off_Kanagawa2.jpg
  15. expected_text: Great Wave off Kanagawa
  16. assert:
  17. - type: icontains
  18. value: '{{expected_text}}'
Tip!

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

Comments

Loading...