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 448 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - 'Write a tweet about {{topic}}'
  4. - 'Write a very concise, funny tweet about {{topic}}'
  5. providers:
  6. - openai:gpt-4
  7. tests:
  8. - vars:
  9. topic: bananas
  10. assert:
  11. - type: select-best
  12. value: choose the funniest tweet
  13. - vars:
  14. topic: nyc
  15. assert:
  16. - type: select-best
  17. value: choose the tweet that contains the most facts
Tip!

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

Comments

Loading...