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 intonl2sql-apiand 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-clicarries thenl2sqlcommand, which depends on the engine and Textual, and addsnl2sql chat. This is the first release ofnl2sql-clion 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:orNL2SQL_MODE. - A restructured docs site. Get started, Use it, Configure, Deploy and operate, Extend, Reference, How it works and Contribute, with
SECURITY.mdandCODE_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_demoand try the demo (#411). - Error parents, the approval store, and the
apiandmodeconfig keys (#403). - The v1 REST API: error envelope, identity,
serveand 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).
/metanames 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-uiwith 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-clipackage (#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.feedbackkey, 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
viewerrole cannot answer.
Upgrading
Third-party adapter and store authors: pip install "nl2sql-sdk==0.10.0".
Breaking changes: several. Each needs a look before you upgrade.
- The
nl2sqlcommand now comes fromnl2sql-cli(#439).nl2sql-engineno longer installs it, and itsnl2sql.clipackage is gone. The command is stillnl2sql. What to do:pip install nl2sql-cli, orpip install "nl2sql-cli[web]"to also runnl2sql demoandnl2sql serve, which startnl2sql-apias a child process. Code that importednl2sql.clishould call the engine facade. - The
demoextra ofnl2sql-engineis gone (#438). The web app ships insidenl2sql-api. What to do: replacenl2sql-engine[demo]withnl2sql-cli[web]. settings.feedbackis removed (#446). Nothing read it. A config that sets it now fails withsettings.feedback: Unknown key.What to do: delete thefeedback:block undersettings:. Ratings are still stored andnl2sql feedbackstill 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.keyunderstorage.path. What to do: nothing; visitors start a new session. - New optional config keys: a top-level
mode:(demo,your_dataorhosted) and anapi:file include fornl2sql-apisettings (#403).NL2SQL_MODEsets 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