dkAmulet/sql-query-optimizer
0
SQL Query Optimizer — OpenEnv Environment
An RL environment where AI agents learn to rewrite slow SQL queries for correctness, performance, and style — against a live SQLite e-commerce database.
![OpenEnv]() ![Python 3.11]() ![License MIT]()
Quick Start
# Reset to the easiest task
curl -X POST "$SPACE_URL/reset?task_id=select_star_removal"
# Submit an optimised query
curl -X POST "$SPACE_URL/step" \
-H "Content-Type: application/json" \
-d '{"optimized_query": "SELECT user_id, username, email FROM users WHERE is_active = 1"}'
# Check current episode state
curl "$SPACE_URL/state"Interactive API docs: $SPACE_URL/docs
Tasks
Reward Dimensions
Every step returns a dense, partial-credit reward:
Baseline Scores (GPT-4o-mini)
Full documentation in README.md.
