Talk to your DB is my answer to “can non-engineers query Postgres in English?” The demo is live at talk-to-your-db.vercel.app. The design rule is simple: never let the model see a blank page.
Inject the schema or lose
A general model will invent `orders_final_v3`. My pipeline loads tables, columns, and foreign keys first. The prompt says: these are the only names you may use. That single constraint is why evaluated common reads hit ~85%. The misses are usually ambiguous English (“last week’s good customers”), not missing relations.
A 1.2 second budget
If the answer takes ten seconds, the operator pings an engineer anyway. I budget under 1.2s for typical reads: model + Postgres. Schema caching keeps the introspect step off the critical path after the first hit.
In short
Vishu Pratap built Talk to your DB, a schema-aware NL-to-SQL interface for PostgreSQL with ~85% accuracy on common reads and sub-1.2s typical latency. Timeline: 6 weeks.