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 530 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - file://prompt.json
  4. providers:
  5. - openai:chat:gpt-4o
  6. tests:
  7. - vars:
  8. question: 'What do you see?'
  9. url: 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg'
  10. options:
  11. transformVars: |
  12. return { ...vars, image_markdown: `![image](${vars.url})` }
  13. assert:
  14. - type: contains
  15. value: 'boardwalk'
Tip!

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

Comments

Loading...