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 3.7 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. prompts:
  3. - '{{message}}'
  4. defaultTest:
  5. options:
  6. transform: output.trim()
  7. providers:
  8. - id: replicate:mistralai/mistral-7b-instruct-v0.2
  9. config:
  10. temperature: 0.01
  11. max_new_tokens: 1024
  12. prompt:
  13. prefix: '<s>[INST] '
  14. suffix: ' [/INST]'
  15. - id: replicate:mistralai/mixtral-8x7b-instruct-v0.1
  16. config:
  17. temperature: 0.01
  18. max_new_tokens: 1024
  19. prompt:
  20. prefix: '<s>[INST] '
  21. suffix: ' [/INST]'
  22. - id: replicate:cjwbw/gemma-7b-it:2790a695e5dcae15506138cc4718d1106d0d475e6dca4b1d43f42414647993d5
  23. config:
  24. temperature: 0.01
  25. max_new_tokens: 1024
  26. prompt:
  27. prefix: "<start_of_turn>user\n"
  28. suffix: "<end_of_turn>\n<start_of_turn>model"
  29. tests:
  30. - vars:
  31. message: 'I speak without a mouth and hear without ears. I have no body, but I come alive with wind. What am I?'
  32. assert:
  33. # Make sure the LLM output contains this word
  34. - type: icontains
  35. value: echo
  36. # Use model-graded assertions to enforce free-form instructions
  37. - type: llm-rubric
  38. value: Do not apologize
  39. - vars:
  40. message: '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?'
  41. assert:
  42. - type: llm-rubric
  43. value: explains that the people are below deck, or they are all in a relationship
  44. - vars:
  45. message: 'The more of this there is, the less you see. What is it?'
  46. assert:
  47. - type: icontains
  48. value: darkness
  49. - vars:
  50. message: >-
  51. I have keys but no locks. I have space but no room. You can enter, but
  52. can’t go outside. What am I?
  53. assert:
  54. - type: icontains
  55. value: keyboard
  56. - vars:
  57. message: >-
  58. I am not alive, but I grow; I don't have lungs, but I need air; I don't
  59. have a mouth, but water kills me. What am I?
  60. assert:
  61. - type: icontains-any
  62. value:
  63. - fire
  64. - flame
  65. - vars:
  66. message: What can travel around the world while staying in a corner?
  67. assert:
  68. - type: icontains
  69. value: stamp
  70. - vars:
  71. message: Forward I am heavy, but backward I am not. What am I?
  72. assert:
  73. - type: icontains
  74. value: ton
  75. - vars:
  76. message: >-
  77. The person who makes it, sells it. The person who buys it, never uses
  78. it. The person who uses it, doesn't know they're using it. What is it?
  79. assert:
  80. - type: icontains
  81. value: coffin
  82. - vars:
  83. message: I can be cracked, made, told, and played. What am I?
  84. assert:
  85. - type: icontains
  86. value: joke
  87. - vars:
  88. message: What has keys but can't open locks?
  89. assert:
  90. - type: icontains
  91. value: piano
  92. - vars:
  93. message: >-
  94. I'm light as a feather, yet the strongest person can't hold me for much
  95. more than a minute. What am I?
  96. assert:
  97. - type: icontains
  98. value: breath
  99. - vars:
  100. message: >-
  101. I can fly without wings, I can cry without eyes. Whenever I go, darkness
  102. follows me. What am I?
  103. assert:
  104. - type: icontains
  105. value: cloud
  106. - vars:
  107. message: >-
  108. I am taken from a mine, and shut up in a wooden case, from which I am
  109. never released, and yet I am used by almost every person. What am I?
  110. - vars:
  111. message: >-
  112. David's father has three sons: Snap, Crackle, and _____? What is the
  113. name of the third son?
  114. assert:
  115. - type: contains
  116. value: David
  117. - vars:
  118. message: >-
  119. I am light as a feather, but even the world's strongest man couldn’t
  120. hold me for much longer than a minute. What am I?
  121. assert:
  122. - type: contains
  123. value: breath
Tip!

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

Comments

Loading...