CShorten commited on
Commit
e166997
·
verified ·
1 Parent(s): bbb131a

Upload Query Agent Gym test environments

Browse files
README.md CHANGED
@@ -28,6 +28,15 @@ configs:
28
  - nonprofits/queries.parquet
29
  - surf-schools/queries.parquet
30
  - childcare/queries.parquet
 
 
 
 
 
 
 
 
 
31
  - config_name: environments
32
  data_files:
33
  - split: test
@@ -101,16 +110,18 @@ natural-language queries with exactly known ground-truth queries.
101
 
102
  This release holds five **held-out test environments** containing
103
  15 collections with 1,000 objects each (15,000 objects, 18,000 searchable
104
- documents) and 250 queries, 50 per environment. Every entity, name, and
105
- document is synthetic.
106
-
107
- | Environment | Collections (kind) | Objects | Queries |
108
- |---|---|---:|---:|
109
- | Public Transit | TransitRoutes (knowledge_base), RidershipReports (transactional) | 2,000 | 50 |
110
- | Tattoo Studios | TattooArtists, TattooDesigns (knowledge_base) | 2,000 | 50 |
111
- | Nonprofits | Charities, Campaigns, GivingPrograms (knowledge_base), Donations (transactional) | 4,000 | 50 |
112
- | Surf Schools | SurfBeaches, SurfInstructors, LessonPrograms, SurfEquipment (knowledge_base) | 4,000 | 50 |
113
- | Childcare | DaycareCenters, ChildcareStaff (knowledge_base), ChildEnrollments (transactional) | 3,000 | 50 |
 
 
114
 
115
  ## Quick start
116
 
@@ -126,6 +137,9 @@ print(q["ground_truth_sql"]) # readable ground truth, one entry per s
126
  plan = json.loads(q["ground_truth"]) # exact ground truth (query_database arguments)
127
 
128
  routes = load_dataset("weaviate/QueryAgentGym", "public-transit_TransitRoutes", split="test")
 
 
 
129
  ```
130
 
131
  ## Layout
@@ -136,13 +150,15 @@ Each environment has its own folder.
136
  environments.parquet one row per environment
137
  <environment>/schema.json the schema exactly as generated
138
  <environment>/queries.parquet the environment's 50 queries
 
139
  <environment>/objects/<Collection>.parquet 1,000 objects per collection
140
  ```
141
 
142
  | Config | Rows | Contents |
143
  |---|---:|---|
144
  | `queries` (default) | 250 | All five environments' queries, with an `environment` column |
145
- | `environments` | 5 | One row per environment |
 
146
  | `<environment>_<Collection>` | 1,000 each | The objects of one collection, one typed column per property |
147
 
148
  To work with one environment, filter the `queries` config on `environment`,
@@ -165,6 +181,23 @@ or read `<environment>/queries.parquet` directly.
165
  | `search_grounds` | list of structs | For each sub-query with a search, its relevance-labeled result set (below) |
166
  | `reference_results` | string (JSON) | Each sub-query's ground truth executed on the objects (below) |
167
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  ### Objects
169
 
170
  Each `<environment>_<Collection>` config has a `uuid` column followed by one
@@ -253,6 +286,12 @@ operator class appears at least 3 times, which makes the sets balanced across
253
  operators rather than distributed like natural traffic. A seeded coin chose
254
  each command's phrasing, giving 113 explicit and 137 conversational commands.
255
 
 
 
 
 
 
 
256
  ## Limitations
257
 
258
  - All data is synthetic and English only. Entities are invented, so an agent
@@ -265,3 +304,11 @@ each command's phrasing, giving 113 explicit and 137 conversational commands.
265
  references with over 400 distinct values, which yield degenerate groups.
266
  - Relevance labels for searches come from a language model reading each
267
  candidate document, not from human annotation.
 
 
 
 
 
 
 
 
 
28
  - nonprofits/queries.parquet
29
  - surf-schools/queries.parquet
30
  - childcare/queries.parquet
31
+ - config_name: search_mode
32
+ data_files:
33
+ - split: test
34
+ path:
35
+ - public-transit/search_mode_queries.parquet
36
+ - tattoo-studios/search_mode_queries.parquet
37
+ - nonprofits/search_mode_queries.parquet
38
+ - surf-schools/search_mode_queries.parquet
39
+ - childcare/search_mode_queries.parquet
40
  - config_name: environments
41
  data_files:
42
  - split: test
 
110
 
111
  This release holds five **held-out test environments** containing
112
  15 collections with 1,000 objects each (15,000 objects, 18,000 searchable
113
+ documents) and two query sets over them. The default `queries` set has 250
114
+ queries, 50 per environment. The `search_mode` set has 150 retrieval-only
115
+ queries, 30 per environment, that test whether an agent picks a search,
116
+ filters, or both. Every entity, name, and document is synthetic.
117
+
118
+ | Environment | Collections (kind) | Objects | Queries | Search mode |
119
+ |---|---|---:|---:|---:|
120
+ | Public Transit | TransitRoutes (knowledge_base), RidershipReports (transactional) | 2,000 | 50 | 30 |
121
+ | Tattoo Studios | TattooArtists, TattooDesigns (knowledge_base) | 2,000 | 50 | 30 |
122
+ | Nonprofits | Charities, Campaigns, GivingPrograms (knowledge_base), Donations (transactional) | 4,000 | 50 | 30 |
123
+ | Surf Schools | SurfBeaches, SurfInstructors, LessonPrograms, SurfEquipment (knowledge_base) | 4,000 | 50 | 30 |
124
+ | Childcare | DaycareCenters, ChildcareStaff (knowledge_base), ChildEnrollments (transactional) | 3,000 | 50 | 30 |
125
 
126
  ## Quick start
127
 
 
137
  plan = json.loads(q["ground_truth"]) # exact ground truth (query_database arguments)
138
 
139
  routes = load_dataset("weaviate/QueryAgentGym", "public-transit_TransitRoutes", split="test")
140
+
141
+ search_mode = load_dataset("weaviate/QueryAgentGym", "search_mode", split="test")
142
+ print(search_mode[0]["retrieval_shape"]) # search_only | search_and_filters | filter_only
143
  ```
144
 
145
  ## Layout
 
150
  environments.parquet one row per environment
151
  <environment>/schema.json the schema exactly as generated
152
  <environment>/queries.parquet the environment's 50 queries
153
+ <environment>/search_mode_queries.parquet the environment's 30 search mode queries
154
  <environment>/objects/<Collection>.parquet 1,000 objects per collection
155
  ```
156
 
157
  | Config | Rows | Contents |
158
  |---|---:|---|
159
  | `queries` (default) | 250 | All five environments' queries, with an `environment` column |
160
+ | `search_mode` | 150 | All five environments' search mode queries, with `environment` and `retrieval_shape` columns |
161
+ | `environments` | 5 | One row per environment (its `num_queries` and `queries_fingerprint` describe the `queries` set) |
162
  | `<environment>_<Collection>` | 1,000 each | The objects of one collection, one typed column per property |
163
 
164
  To work with one environment, filter the `queries` config on `environment`,
 
181
  | `search_grounds` | list of structs | For each sub-query with a search, its relevance-labeled result set (below) |
182
  | `reference_results` | string (JSON) | Each sub-query's ground truth executed on the objects (below) |
183
 
184
+ ### `search_mode`
185
+
186
+ The same fields as `queries`, plus `retrieval_shape`. Every query is
187
+ retrieval only, with no aggregations or group-by, and holds one sub-query.
188
+ Each environment's 30 are split evenly across three retrieval shapes, and its
189
+ `query_id`s run in shape order (`000` to `009`, `010` to `019`, `020` to
190
+ `029`).
191
+
192
+ | `retrieval_shape` | Per environment | The ground truth |
193
+ |---|---:|---|
194
+ | `search_only` | 10 | A search and no filter |
195
+ | `search_and_filters` | 10 | A search and at least one filter |
196
+ | `filter_only` | 10 | At least one filter and no search |
197
+
198
+ A `search_only` query's search is labeled over the whole collection, so its
199
+ `search_grounds[0].candidate_ids` hold all 1,000 records.
200
+
201
  ### Objects
202
 
203
  Each `<environment>_<Collection>` config has a `uuid` column followed by one
 
286
  operators rather than distributed like natural traffic. A seeded coin chose
287
  each command's phrasing, giving 113 explicit and 137 conversational commands.
288
 
289
+ The `search_mode` queries were sampled as three separate pools of operator
290
+ plans, one per retrieval shape, over search and the eight filter kinds only,
291
+ with the same models, checks, and verifier. Each shape's 10 queries were
292
+ selected from a pool of 200 sampled plans to cover the filter kinds the pool
293
+ holds, and a seeded coin with even odds chose each command's phrasing.
294
+
295
  ## Limitations
296
 
297
  - All data is synthetic and English only. Entities are invented, so an agent
 
304
  references with over 400 distinct values, which yield degenerate groups.
305
  - Relevance labels for searches come from a language model reading each
306
  candidate document, not from human annotation.
307
+ - A `search_only` query's ground truth names only its collection and the fact
308
+ that it searches, so an exact-match score cannot tell two `search_only`
309
+ queries on the same collection apart. Their labeled result sets differ.
310
+ - A few `search_only` topics on the same collection cover overlapping themes
311
+ (in Tattoo Studios, three architecture topics), so their relevant sets
312
+ share many records.
313
+ - With 10 queries per shape, not every filter kind appears in every
314
+ environment's `search_mode` queries.
childcare/search_mode_queries.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5be2ee999c016d803c70fc51e84c34e990ca996754ac0e4d86b13ae2f6ca853
3
+ size 277248
nonprofits/search_mode_queries.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:626f80cfbce261b239d4b2d0aacbe4d1919e115093e5a82f06573ad67b2deffa
3
+ size 359956
public-transit/search_mode_queries.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:802356bfbde1ec0e86d4768481bd9c963bb4e59f4e146ddec5ca3b997b2154f6
3
+ size 232118
surf-schools/search_mode_queries.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db677c1f89bc3208008d19570c6e3eb10fb4665883faf68d29e7df7db3ffc6c8
3
+ size 353026
tattoo-studios/search_mode_queries.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97e9dfc4a3e0941c057e6b28ccbd9629f7897c5f2bf2ae7d8de78d6a881a2fa6
3
+ size 258317