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

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

Comments

Loading...