Skip to content

NL2SQL 0.10.0

A new product surface: a React web app served by nl2sql-api, a full v1 REST API behind it, a nl2sql chat terminal app, and the CLI in its own package, nl2sql-cli. Saved answers, a guided dashboard builder and stored approvals come with them. The nl2sql command now needs nl2sql-cli, so read Upgrading before you install it.

Released 2026-11-03.

Highlights

  • A web app. One React app (nl2sql-ui) is built into nl2sql-api and served from the same process, so installing needs no Node. It has chat with clarifying questions, approvals and "why this answer", dashboards in workspaces, connect, knowledge review and drift pages, evals, settings and a start screen. The old playground is gone.
  • A full v1 REST API. Routes for queries, results, traces, conversations, dashboards, workspaces, datasources, the index, knowledge, evals, settings and API keys under /api/v1, with server-sent events, background jobs, per-request model overrides, one error envelope and caller identity. In hosted demo mode each visitor gets a signed session.
  • Saved answers and a guided dashboard builder. "Did this answer it?" saves an answer to a personal list and proposes it for review. The builder turns saved answers and curated queries into a dashboard you tick tile by tile. Approvals can be stored as grants tied to a request id.
  • The CLI in its own package, and a terminal app. nl2sql-cli carries the nl2sql command, which depends on the engine and Textual, and adds nl2sql chat. This is the first release of nl2sql-cli on PyPI.
  • Try the demo, and one deployment. A replay provider runs the demo with no model key. One API image and a compose stack serve the demo, your data or the hosted demo, chosen by mode: or NL2SQL_MODE.
  • A restructured docs site. Get started, Use it, Configure, Deploy and operate, Extend, Reference, How it works and Contribute, with SECURITY.md and CODE_OF_CONDUCT.md.

What's included

Features

  • Saved answers in the engine (#430).
  • The guided dashboard builder engine (#431).
  • Stored approval grants with request ids (#410).
  • Progress, cancellation and readiness (#409).
  • Per-request model overrides and a providers catalogue (#408).
  • The replay provider, prepare_demo and try the demo (#411).
  • Error parents, the approval store, and the api and mode config keys (#403).
  • The v1 REST API: error envelope, identity, serve and the app factory (#404).
  • Server-sent events, background jobs and request overrides (#405).
  • Query, results, traces, feedback and approvals routes (#414).
  • Conversations and chat tools routes (#413).
  • Dashboards and workspaces routes (#412).
  • Datasources, connect, index, drift and knowledge routes (#415).
  • Evals, settings, keys, ready and meta routes (#418).
  • /meta names the caller (#426).
  • Serve modes, the hosted demo, preview and web routes (#420).
  • Saved answers and dashboard builder routes (#432).
  • The web app moves to nl2sql-ui with an HTTP client (#406).
  • Outputs, charts, diagrams and reports in the web app (#422).
  • The chat page with clarify, approvals and why this answer (#423).
  • The dashboards page with workspaces, filters and schedule (#425).
  • Generate a starter dashboard from the dashboards page (#427).
  • Connect, knowledge review and drift pages (#424).
  • "Did this answer it?" and My answers (#433).
  • The guided dashboard builder page (#434).
  • Evals and settings pages (#435).
  • The home start screen, pipeline and retrieval pages on the v1 routes (#436).
  • One image and a compose stack for self-hosting (#421).
  • The launcher, the Space and the scripts on the web app (#437).
  • nl2sql chat, a terminal app on the engine facade (#441).
  • The CLI moves into its own nl2sql-cli package (#439).

Fixes

  • Traces and ratings are bound to the asker (#407).
  • The hosted demo no longer sends the user id as its session cookie; sessions are signed (#428).
  • The planner prompt lists the allowed joins (#397).
  • Group-by keys, exact figures and rank ordinals in answers (#399).
  • The test bed pins the re-published Sakila archive (#419).

Refactors and removals

  • The CLI's config and init commands run on the facade (#416).
  • The CLI's remaining commands run on the facade (#417).
  • The old playground is deleted (#438).
  • The unused settings.feedback key, dead UI panels and a stale UI readme are removed (#446).

Docs

  • Every page describes shipped behaviour (#445).
  • A production docs structure, a package diagram and a short readme (#443).
  • A style guide and a complete How it works section (#444).
  • Design documents move out of the repo (#442).

Benchmarks

The Chinook retrieval baseline is re-recorded on 2026-11-03: column recall 91.2%, table recall 99.2%. The Pagila baseline is unchanged. See Benchmarks.

Known limits

  • The web app and the REST API serve one project per process. There is no multi-project platform.
  • The hosted demo's limits are not hardened against deliberate abuse.
  • The hosted demo's recorded chat includes questions its viewer role cannot answer.

Upgrading

pip install --upgrade "nl2sql-engine==0.10.0"
pip install "nl2sql-cli[web]==0.10.0"

Third-party adapter and store authors: pip install "nl2sql-sdk==0.10.0".

Breaking changes: several. Each needs a look before you upgrade.

  • The nl2sql command now comes from nl2sql-cli (#439). nl2sql-engine no longer installs it, and its nl2sql.cli package is gone. The command is still nl2sql. What to do: pip install nl2sql-cli, or pip install "nl2sql-cli[web]" to also run nl2sql demo and nl2sql serve, which start nl2sql-api as a child process. Code that imported nl2sql.cli should call the engine facade.
  • The demo extra of nl2sql-engine is gone (#438). The web app ships inside nl2sql-api. What to do: replace nl2sql-engine[demo] with nl2sql-cli[web].
  • settings.feedback is removed (#446). Nothing read it. A config that sets it now fails with settings.feedback: Unknown key. What to do: delete the feedback: block under settings:. Ratings are still stored and nl2sql feedback still works.
  • The REST routes moved (#404, #414, #415, #405). Datasource routes are plural (/api/v1/datasources, was /datasource), results are read under /api/v1/results/ (was /query/{request_id}/results/{result_id}), and indexing runs as a background job (POST /api/v1/jobs/index, was /index/{id} and /index-all). Errors use one envelope. What to do: update REST clients to the routes in the REST API reference.
  • Traces and ratings belong to the asker (#407, #414). A caller who did not run a query cannot read its trace or rate it, and a trace redacts withheld rows and operator config for non-operators. What to do: pass the asker's identity when reading a trace.
  • The hosted demo's session cookie is no longer the user id (#428). Sessions are signed with a key kept as hosted_session.key under storage.path. What to do: nothing; visitors start a new session.
  • New optional config keys: a top-level mode: (demo, your_data or hosted) and an api: file include for nl2sql-api settings (#403). NL2SQL_MODE sets the mode when no flag does.
  • The state store gains saved answers and approval grants (#430, #410). What to do: third-party state stores add the new methods.

What's next

Next: the hosted demo re-recorded for its viewer role, then hardening its limits.

Full changelog: v0.9.1...v0.10.0