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 794 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
28
29
30
31
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Golang provider example'
  3. prompts:
  4. - 'Given the sequence {{sequence}}, what are the next two numbers and explain your reasoning?'
  5. providers:
  6. - id: 'file://evaluation/main.go:CallApi'
  7. label: 'Provider in evaluation/'
  8. - id: 'file://main.go:CallApi'
  9. label: 'Provider in root'
  10. config:
  11. reasoning_effort: 'high'
  12. tests:
  13. - vars:
  14. sequence: '2, 6, 12, 20, 30'
  15. assert:
  16. - type: contains
  17. value: '42' # Next number in sequence
  18. - type: contains
  19. value: '56' # Number after that
  20. - vars:
  21. sequence: '3, 7, 13, 21, 31'
  22. assert:
  23. - type: contains
  24. value: '43' # Next number
  25. - type: contains
  26. value: '57' # Number after that
Tip!

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

Comments

Loading...