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 2.6 KB

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
  1. prompts:
  2. - 'Solve this riddle: {{riddle}}'
  3. providers:
  4. - openai:gpt-4o
  5. - openai:gpt-4o-mini
  6. defaultTest:
  7. assert:
  8. # Inference should always cost less than this (USD)
  9. - type: cost
  10. threshold: 0.002
  11. # Inference should always be faster than this (milliseconds)
  12. - type: latency
  13. threshold: 3000
  14. tests:
  15. - vars:
  16. riddle: 'I speak without a mouth and hear without ears. I have no body, but I come alive with wind. What am I?'
  17. assert:
  18. # Make sure the LLM output contains this word
  19. - type: contains
  20. value: echo
  21. # Use model-graded assertions to enforce free-form instructions
  22. - type: llm-rubric
  23. value: Do not apologize
  24. - vars:
  25. riddle: 'You see a boat filled with people. It has not sunk, but when you look again you don’t see a single person on the boat. Why?'
  26. assert:
  27. - type: llm-rubric
  28. value: explains that the people are below deck
  29. - vars:
  30. riddle: 'The more of this there is, the less you see. What is it?'
  31. assert:
  32. - type: contains
  33. value: darkness
  34. - vars:
  35. riddle: >-
  36. I have keys but no locks. I have space but no room. You can enter, but
  37. can’t go outside. What am I?
  38. - vars:
  39. riddle: >-
  40. I am not alive, but I grow; I don't have lungs, but I need air; I don't
  41. have a mouth, but water kills me. What am I?
  42. - vars:
  43. riddle: What can travel around the world while staying in a corner?
  44. - vars:
  45. riddle: Forward I am heavy, but backward I am not. What am I?
  46. - vars:
  47. riddle: >-
  48. The person who makes it, sells it. The person who buys it, never uses
  49. it. The person who uses it, doesn't know they're using it. What is it?
  50. - vars:
  51. riddle: I can be cracked, made, told, and played. What am I?
  52. - vars:
  53. riddle: What has keys but can't open locks?
  54. - vars:
  55. riddle: >-
  56. I'm light as a feather, yet the strongest person can't hold me for much
  57. more than a minute. What am I?
  58. - vars:
  59. riddle: >-
  60. I can fly without wings, I can cry without eyes. Whenever I go, darkness
  61. follows me. What am I?
  62. - vars:
  63. riddle: >-
  64. I am taken from a mine, and shut up in a wooden case, from which I am
  65. never released, and yet I am used by almost every person. What am I?
  66. - vars:
  67. riddle: >-
  68. David's father has three sons: Snap, Crackle, and _____? What is the
  69. name of the third son?
  70. - vars:
  71. riddle: >-
  72. I am light as a feather, but even the world's strongest man couldn’t
  73. hold me for much longer than a minute. What am I?
Tip!

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

Comments

Loading...