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 540 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
  1. description: 'Golang example'
  2. prompts:
  3. - 'Write an introductory sentence for a classroom lesson on {{topic}}'
  4. providers:
  5. - id: golang:provider.go # defaults to CallApi function
  6. config:
  7. someOption: foobar
  8. tests:
  9. - vars:
  10. topic: quantum mechanics
  11. assert:
  12. - type: contains
  13. value: physics
  14. - vars:
  15. topic: the animal kingdom
  16. assert:
  17. - type: llm-rubric
  18. value: mentions at least 1 animal
  19. - vars:
  20. topic: turtles
  21. assert:
  22. - type: llm-rubric
  23. value: is funny
Tip!

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

Comments

Loading...