Skip to main content

Add your description here

Project description

NL2SQLEvaluator

Roadmap

  • Add MySQL database executor
  • Add Precision, Recall, F1 metrics for ambiguity Text2SQL datasets

👷🏼‍♂️ Work in progress

Configuration Guide

🔧 Use a YAML config (with CLI overrides)

Run your experiment with a config file:

nl2sql_eval --config path/to/config.yaml

Example config.yaml

# Core
output_dir: ./outputs
seed: 42

# Dataset
relative_db_base_path: data/bird_dev/dev_databases
dataset_path: simone-papicchio/bird
dataset_name: bird-dev

# Model
model_name: Qwen3-Coder-30B
model: Qwen/Qwen3-Coder-30B-A3B-Instruct
temperature: 0.7
top_p: 0.8
top_k: 20
repetition_penalty: 1.05
max_tokens: 32000

# Weights & Biases
project: text2sql-eval
entity: spapicchio-politecnico-di-torino   # or your team
group: evals
mode: online                               # or "offline" on clusters without net
tags: [eval, seg]
notes: ""
job_type: eval

Override any value from the CLI

Command-line flags take precedence over the YAML:

nl2sql_eval --config config.yaml \
  --output_dir ./outputs/run-42 \
  --mode offline \
  --temperature 0.2 \
  --max_tokens 4096 \
  --tags eval --tags ablation

Notes

  • The config is flat (all keys at top level) so it works smoothly with the parser.
  • Lists (e.g., tags) can be provided in YAML or by repeating the flag in CLI (--tags ... multiple times).
  • Booleans accept true/false in YAML and --flag true/false in CLI.
  • This package uses TRL’s TRLParser / HF’s HfArgumentParser under the hood, so the same configuration behaviors apply.

This package relies on TrlParser so all the configurations available there can be used as well.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nl2sqlevaluator-1.2.3.tar.gz (205.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nl2sqlevaluator-1.2.3-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file nl2sqlevaluator-1.2.3.tar.gz.

File metadata

  • Download URL: nl2sqlevaluator-1.2.3.tar.gz
  • Upload date:
  • Size: 205.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for nl2sqlevaluator-1.2.3.tar.gz
Algorithm Hash digest
SHA256 baa14afec90dbba8123e8dc378a0af24fdad1c09a7f4c408ca2f6e45bf4fe23d
MD5 7aa5fe60caf8e66bc6c6c130b337da76
BLAKE2b-256 30ccb8de2746ccd7a17dba5d8f87708a0ee7888ebe9bd2d93002b0d7d0a292cc

See more details on using hashes here.

File details

Details for the file nl2sqlevaluator-1.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nl2sqlevaluator-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2dfb7933d881003edded3e5c63c98f39904cb357165eeba2fe8e38a0742a304a
MD5 c287db355ef25f4263ee1e084d736689
BLAKE2b-256 8b12a285bc992965035d796b3a5e34440b7be9e5a73e8f0c5eee908ce3c0572d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page