-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample.txt
220 lines (219 loc) · 4.52 KB
/
example.txt
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
Here are some examples:
```json
[
{
"domain": "E-commerce Customer Feedback",
"mapping": {
"properties": {
"feedback_id": {
"type": "keyword"
},
"customer_id": {
"type": "keyword"
},
"order_id": {
"type": "keyword"
},
"date": {
"type": "date"
},
"rating": {
"type": "integer"
},
"comment": {
"type": "text"
}
},
"_meta": "E-commerce Customer Feedback"
},
"NLQs": [
{
"NLQ": "Find all feedback with a rating of 5 stars.",
"query": {
"query": {
"term": {
"rating": 5
}
}
}
},
{
"NLQ": "Show negative feedback from the past month.",
"query": {
"query": {
"bool": {
"must": {
"range": {
"rating": {
"lte": 2
}
}
},
"filter": {
"range": {
"date": {
"gte": "now-1M/M"
}
}
}
}
}
}
},
{
"NLQ": "List all feedback for order 1234.",
"query": {
"query": {
"term": {
"order_id": "1234"
}
}
}
}
]
},
{
"domain": "Retail Products",
"mapping": {
"properties": {
"product_id": {
"type": "keyword"
},
"name": {
"type": "text"
},
"category": {
"type": "keyword"
},
"price": {
"type": "double"
},
"stock_quantity": {
"type": "integer"
},
"rating": {
"type": "double"
},
"release_date": {
"type": "date"
}
},
"_meta": "Retail Products"
},
"NLQs": [
{
"NLQ": "List all electronics with a rating above 4 stars.",
"query": {
"query": {
"bool": {
"must": {
"term": {
"category": "electronics"
}
},
"filter": {
"range": {
"rating": {
"gt": 4
}
}
}
}
}
}
},
{
"NLQ": "Find new arrivals in the kitchen category that are in stock.",
"query": {
"query": {
"bool": {
"must": {
"term": {
"category": "kitchen"
}
},
"filter": [
{
"range": {
"release_date": {
"gte": "now-1M/M"
}
}
},
{
"range": {
"stock_quantity": {
"gt": 0
}
}
}
]
}
}
}
}
]
},
{
"domain": "Vehicle Maintenance Records",
"mapping": {
"properties": {
"record_id": {
"type": "keyword"
},
"vehicle_id": {
"type": "keyword"
},
"service_date": {
"type": "date"
},
"service_type": {
"type": "keyword"
},
"description": {
"type": "text"
},
"cost": {
"type": "double"
}
},
"_meta": "Vehicle Maintenance Records"
},
"NLQs": [
{
"NLQ": "List all maintenance for vehicle ID 1234 in the past year.",
"query": {
"query": {
"bool": {
"must": {
"term": {
"vehicle_id": "1234"
}
},
"filter": {
"range": {
"service_date": {
"gte": "now-1y/y"
}
}
}
}
}
}
},
{
"NLQ": "Find all oil change records.",
"query": {
"query": {
"term": {
"service_type": "oil change"
}
}
}
}
]
}
]
```
Please generate more synthetic data based on these examples.
Hoewver, feel free to modify the examples as you see fit.