forked from i-am-alice/3rd-devs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpick_domains.yaml
258 lines (246 loc) · 7.57 KB
/
pick_domains.yaml
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
description: "alice:pickDomains"
prompts: [file://pick_domains/pick_domains.js]
providers:
- "openai:chat:gpt-4o-2024-08-06"
tests:
- vars:
query: "Tell me about John Wick and his movies"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
items:
type: object
required: [q, url]
properties:
q:
type: string
url:
type: string
- type: contains
value: "wikipedia.org"
- type: contains
value: "John Wick"
- type: contains
value: "movie"
- type: llm-rubric
value: "The response should include queries about John Wick and his movies, using Wikipedia for information and optionally YouTube for clips"
- vars:
query: "Find an overment videos about functional programming on YouTube"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
items:
type: object
required: [q, url]
properties:
q:
type: string
url:
type: string
- type: contains
value: "youtube.com"
- type: contains
value: "functional programming"
- type: regex
value: "[Oo]verment"
- type: not-contains
value: "wikipedia.org"
- type: llm-rubric
value: "The response should only include YouTube queries for overment videos about functional programming, without any Wikipedia or other domain searches. The term 'overment' should be present, either as 'Overment' or 'overment'."
- vars:
query: "How to configure Nginx on DigitalOcean and set up a PostgreSQL database for high performance"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
items:
type: object
required: [q, url]
properties:
q:
type: string
url:
type: string
- type: contains
value: "digitalocean.com"
- type: contains
value: "nginx.org"
- type: contains
value: "postgresql.org"
- type: contains
value: "Nginx"
- type: contains
value: "PostgreSQL"
- type: contains
value: "DigitalOcean"
- type: contains
value: "configuration"
- type: contains
value: "performance"
- type: llm-rubric
value: "The response should include queries for DigitalOcean Nginx configuration and PostgreSQL database setup, using official documentation sources when possible. It should cover both topics adequately and suggest resources for optimizing performance."
- vars:
query: "Setup Kubernetes cluster on AWS"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
items:
type: object
required: [q, url]
properties:
q:
type: string
url:
type: string
- type: contains
value: "kubernetes.io"
- type: contains
value: "aws.amazon.com"
- type: contains
value: "Kubernetes"
- type: contains
value: "AWS"
- type: llm-rubric
value: "The response should include queries for setting up a Kubernetes cluster on AWS, using official documentation from both Kubernetes and AWS."
- vars:
query: "Compare M1 vs M2 MacBook Pro performance"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
items:
type: object
required: [q, url]
properties:
q:
type: string
url:
type: string
- type: contains
value: "M1"
- type: contains
value: "M2"
- type: contains
value: "MacBook Pro"
- type: contains
value: "performance"
- type: llm-rubric
value: "The response should include queries comparing the performance of M1 and M2 MacBook Pro models, using Wikipedia YouTube for performance comparison videos."
- vars:
query: "Configure Nginx as reverse proxy for Node.js"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
items:
type: object
required: [q, url]
properties:
q:
type: string
url:
type: string
- type: contains
value: "Nginx"
- type: contains
value: "Node.js"
- type: contains
value: "reverse proxy"
- type: llm-rubric
value: "The response should include queries for configuring Nginx as a reverse proxy for Node.js, using official documentation from both Nginx and Node.js."
- vars:
query: "Solve React useEffect infinite loop issue"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
items:
type: object
required: [q, url]
properties:
q:
type: string
url:
type: string
- type: contains
value: "react.dev"
- type: contains
value: "React"
- type: contains
value: "useEffect"
- type: contains
value: "infinite loop"
- type: llm-rubric
value: "The response should include queries for solving the React useEffect infinite loop issue, using official React documentation and reputable React community resources."
- vars:
query: "Find open-source alternative to Airtable"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
items:
type: object
required: [q, url]
properties:
q:
type: string
url:
type: string
- type: contains
value: "github.com"
- type: contains
value: "open-source"
- type: contains
value: "Airtable"
- type: contains
value: "alternative"
- type: llm-rubric
value: "The response should include queries for finding open-source alternatives to Airtable, focusing on GitHub repositories and open-source project directories."
- vars:
query: "What is the speed of light"
assert:
- type: is-json
value:
type: object
required: [queries]
properties:
queries:
type: array
maxItems: 0
- type: llm-rubric
value: "The response should return an empty array of queries, as the speed of light is a well-known constant that doesn't require a web search."