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 576 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
27
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Errors vs Failures'
  3. prompts:
  4. - 'Tell me about {{topic}}'
  5. providers:
  6. - id: file://customProvider.js
  7. label: 'My custom provider'
  8. tests:
  9. - vars:
  10. topic: 'black holes'
  11. assert:
  12. # This should succeed
  13. - type: not-equals
  14. value: this should always pass
  15. - vars:
  16. # Force an error
  17. topic: '!ERROR! banana slugs'
  18. - vars:
  19. topic: 'blue herons'
  20. assert:
  21. # Force a failure
  22. - type: equals
  23. value: this should always fail
Tip!

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

Comments

Loading...