BIRD-Bench
Harbor: pendingText-to-SQL, which involves translating natural language into Structured Query Language (SQL), is crucial for enabling broad access to structured databases without expert knowledge.
- Samples
- N/A
- Released
- 2024
- Scores
- 0
bird-bench
BIRD SQL parity subset (150 tasks, seed 42). Original benchmark: https://huggingface.co/datasets/birdsql/bird_sql_dev_20251106. Adapter: https://github.com/laude-institute/harbor/tree/main/adapters/bird-bench.
$ npm i -g lettokenburn-cli$ ltb bench run bird-bench@parity --benchmark bird-sql -a claude-code -m anthropic/claude-opus-4-8$ ltb bench push
Harbor-native: you can also call Harbor directly.
$ harbor run -d bird-bench@parity -a claude-code -m anthropic/claude-opus-4-8
Runs happen on your machine with your own subscription; only the score summary is pushed. CLI docs
No sourced scores recorded yet.
Every number links to where it was published. Low-confidence rows are muted and need per-cell verification.
This adapter converts BIRD-Bench benchmark tasks into Harbor task format.
This adapter evaluates natural language to SQL (nl2sql) performance using the BIRD SQL dev dataset (birdsql/bird_sql_dev_20251106). Each task provides a natural language question, an evidence/hint field when available, and a SQLite database. Agents must produce a SQL query that answers the question. Evaluation uses execution accuracy (EX): the predicted SQL is correct if its execution result matches the gold SQL result on the same database.
birdsql/bird_sql_dev_20251106dev_20251106.json), unless a subset is requested. (150 tasks stratified by difficulty with seed 42 are used for parity runs and registry entry in this adapter.)BIRD is a large-scale, cross-domain text-to-SQL benchmark. Each example includes a natural language question and a relational database. The goal is to generate a SQL query that yields the correct result. This adapter uses the official dev dataset on HuggingFace and follows the execution-accuracy evaluation protocol.
dev_20251106.json from the HuggingFace Hub by default, plus SQLite DBs from Google Drive. Tasks emitted by this adapter default to datasets/bird-bench.datasets/bird-bench.solution/solve.sh writes the gold SQL to /app/answer.sqlevaluation.py (set-based result equality)bird-bench/
├── {task_id}/
│ ├── task.toml # Task configuration
│ ├── instruction.md # Task instructions for the agent
│ ├── environment/ # Container definition + database
│ │ ├── Dockerfile
│ │ └── db.sqlite
│ ├── solution/ # Oracle/golden solution
│ │ └── solve.sh
│ └── tests/ # Test assets and scripts
│ ├── test.sh
│ ├── evaluate.py
│ └── gold.sqlAdapter code layout:
harbor/adapters/bird_bench/
├── README.md
├── adapter_metadata.json
├── parity_experiment.json
├── run_bird-bench.yaml
├── run_bird-bench-parity.yaml
├── parity/
│ ├── prepare_bird_eval_inputs.py
│ ├── format_predictions.py
│ ├── export_harbor_predictions.py
│ ├── run_original_codex.py
│ └── original_prompt.md
└── src/
└── bird_bench/
├── adapter.py
├── main.py
└── task-template/
├── task.toml
├── instruction.md
├── environment/
│ └── Dockerfile
├── solution/
│ └── solve.sh
└── tests/
├── test.sh
└── evaluate.py# Use oracle agent (reference solution) uv run harbor run -d bird-bench@parity # Use your specified agent and model uv run harbor run -d bird-bench@parity -a <agent_name> -m "<model_name>"
The registered dataset (bird-bench@parity) runs the 150-task parity subset. To run the full dev split, generate tasks locally (see "Full dataset generation (local-only, not registered)") and run with -p datasets/bird-bench or -c adapters/bird_bench/run_bird-bench.yaml.
# Run a job with the default adapter configuration uv run harbor run -c adapters/bird_bench/run_bird-bench.yaml -a <agent_name> -m "<model_name>" # Run parity subset with the parity config uv run harbor run -c adapters/bird_bench/run_bird-bench-parity.yaml -a <agent_name> -m "<model_name>" # Run a job with locally prepared dataset path uv run harbor run -p datasets/bird-bench -a <agent_name> -m "<model_name>" # Or run the local parity subset uv run harbor run -p datasets/bird-bench-parity -a <agent_name> -m "<model_name>"
# Run a single trial with oracle (pre-written solution) uv run harbor trial start -p datasets/bird-bench/<task_id> # Run a single trial with a specific agent and model uv run harbor trial start -p datasets/bird-bench/<task_id> -a <agent_name> -m "<model_name>"
# From adapter directory cd adapters/bird_bench # Default: download dev_20251106.json + dev_databases into adapters/bird_bench/datasets uv run bird_bench # Custom output dir and limit uv run bird_bench --output-dir ../../datasets/bird-bench --limit 50 # Increase HuggingFace timeout/retries if needed uv run bird_bench --hf-timeout 300 --hf-retries 10 # Download into a custom dataset directory uv run bird_bench --download-dir /path/to/bird-datasets # U