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

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

Comments

Loading...