Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -97,13 +97,9 @@ configs:
|
|
| 97 |
# Query Agent Gym
|
| 98 |
|
| 99 |
Query Agent Gym is a set of procedurally generated database environments and
|
| 100 |
-
natural-language queries with exactly known ground-truth queries
|
| 101 |
-
evaluate data agents that answer questions by writing database queries, such
|
| 102 |
-
as the [Weaviate Query Agent](https://docs.weaviate.io/agents/query). How the
|
| 103 |
-
environments and queries are generated is described in the blog post
|
| 104 |
-
[Query Agent Gym: Post-Training our Query Agent](https://weaviate.io/blog/query-agent-gym).
|
| 105 |
|
| 106 |
-
This release holds
|
| 107 |
15 collections with 1,000 objects each (15,000 objects, 18,000 searchable
|
| 108 |
documents) and 250 queries, 50 per environment. Every entity, name, and
|
| 109 |
document is synthetic.
|
|
@@ -122,14 +118,14 @@ document is synthetic.
|
|
| 122 |
from datasets import load_dataset
|
| 123 |
import json
|
| 124 |
|
| 125 |
-
queries = load_dataset("
|
| 126 |
surf = queries.filter(lambda r: r["environment"] == "surf-schools")
|
| 127 |
q = queries[0]
|
| 128 |
print(q["command"]) # the natural-language request
|
| 129 |
print(q["ground_truth_sql"]) # readable ground truth, one entry per sub-query
|
| 130 |
plan = json.loads(q["ground_truth"]) # exact ground truth (query_database arguments)
|
| 131 |
|
| 132 |
-
routes = load_dataset("
|
| 133 |
```
|
| 134 |
|
| 135 |
## Layout
|
|
@@ -304,21 +300,3 @@ each command's phrasing, giving 113 explicit and 137 conversational commands.
|
|
| 304 |
Studios design searches share the phrase "melting snow".
|
| 305 |
- The query sets exclude what the Weaviate Query Agent cannot express, such as
|
| 306 |
aggregating over the results of a semantic search.
|
| 307 |
-
|
| 308 |
-
## Citation
|
| 309 |
-
|
| 310 |
-
```bibtex
|
| 311 |
-
@misc{query_agent_gym_2026,
|
| 312 |
-
title = {Query Agent Gym: Post-Training our Query Agent},
|
| 313 |
-
author = {Shorten, Connor},
|
| 314 |
-
year = {2026},
|
| 315 |
-
url = {https://weaviate.io/blog/query-agent-gym}
|
| 316 |
-
}
|
| 317 |
-
|
| 318 |
-
@article{shorten2025querying,
|
| 319 |
-
title = {Querying Databases with Function Calling},
|
| 320 |
-
author = {Shorten, Connor and others},
|
| 321 |
-
journal = {arXiv preprint arXiv:2502.00032},
|
| 322 |
-
year = {2025}
|
| 323 |
-
}
|
| 324 |
-
```
|
|
|
|
| 97 |
# Query Agent Gym
|
| 98 |
|
| 99 |
Query Agent Gym is a set of procedurally generated database environments and
|
| 100 |
+
natural-language queries with exactly known ground-truth queries.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
+
This release holds five **held-out test environments**:
|
| 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.
|
|
|
|
| 118 |
from datasets import load_dataset
|
| 119 |
import json
|
| 120 |
|
| 121 |
+
queries = load_dataset("weaviate/query-agent-gym", "queries", split="test")
|
| 122 |
surf = queries.filter(lambda r: r["environment"] == "surf-schools")
|
| 123 |
q = queries[0]
|
| 124 |
print(q["command"]) # the natural-language request
|
| 125 |
print(q["ground_truth_sql"]) # readable ground truth, one entry per sub-query
|
| 126 |
plan = json.loads(q["ground_truth"]) # exact ground truth (query_database arguments)
|
| 127 |
|
| 128 |
+
routes = load_dataset("weaviate/query-agent-gym", "public-transit_TransitRoutes", split="test")
|
| 129 |
```
|
| 130 |
|
| 131 |
## Layout
|
|
|
|
| 300 |
Studios design searches share the phrase "melting snow".
|
| 301 |
- The query sets exclude what the Weaviate Query Agent cannot express, such as
|
| 302 |
aggregating over the results of a semantic search.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|