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 663 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
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - 'Write a very concise funny tweet about {{topic}}'
  4. providers:
  5. - id: file://provider.py # defaults to call_api function
  6. config:
  7. someOption: foobar
  8. - id: file://provider.py:some_other_function
  9. - id: file://provider.py:async_provider
  10. label: async provider
  11. tests:
  12. - vars:
  13. topic: bananas
  14. assert:
  15. - type: contains
  16. value: Bananamax
  17. - vars:
  18. topic: fruits
  19. assert:
  20. - type: llm-rubric
  21. value: includes at least one emoji
  22. - vars:
  23. topic: turtles
  24. assert:
  25. - type: llm-rubric
  26. value: is funny
Tip!

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

Comments

Loading...