← All models Β· Text-to-SQL

Multi-model Β· T5-SQL + SQLite + FLAN-T5 Β· WASM

Ask in English, get an English answer

The complete "chat with your data" loop, all in the tab and all real: Text-to-SQL turns your question into a query, an in-browser SQLite runs it against a seeded database, and FLAN-T5 reads the result rows and answers your original question in plain English. Two small models plus a database engine β€” each doing the part it's actually good at.

Ask your database

Seeded database schema:

Pick a question (single-answer questions suit the small FLAN model best):

Why chain three stages

Each component is weak alone but strong together. T5-SQL knows how to produce SQL from a schema but can't run it or talk about results; SQLite runs SQL but knows nothing about the question; FLAN-T5 can't query a database but is good at reading a small set of facts and answering from them. Composed, they form the same retrieve-then-answer shape as a production text-to-SQL assistant β€” with nothing leaving the device. The tiny FLAN model answers single-value questions cleanly; multi-row aggregates are where its 80M-parameter ceiling shows, and the page shows you the real rows either way.