Multi-model Β· T5-SQL + SQLite + FLAN-T5 Β· WASM
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.
Seeded database schema:
Pick a question (single-answer questions suit the small FLAN model best):
Step 1 Β· Text-to-SQL wrote:
Step 2 Β· the in-browser database returned:
Step 3 Β· FLAN-T5's plain-English answer:
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.