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 586 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - 'Respond to the user: {{message}}'
  4. providers:
  5. - openai:gpt-4o
  6. tests:
  7. - vars:
  8. message: "What's your favorite fruit? You must pick one. Output the name of a fruit only"
  9. options:
  10. storeOutputAs: favoriteFruit
  11. transform: output.split(' ')[0]
  12. - vars:
  13. message: 'Why do you like {{favoriteFruit}} so much?'
  14. options:
  15. storeOutputAs: reason
  16. - vars:
  17. message: 'Write a snarky 2 sentence rebuttal to this argument for loving {{favoriteFruit}}: \"{{reason}}\"'
Tip!

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

Comments

Loading...