Originally published at nlqdb. com/blog The demo really is an afternoon. Pull the table definitions out of information_schema , template them into a prompt with the user's question, call a model, run whatever SQL comes back, render the rows.
Source: [Dev.to](https://dev.to/omer_hochman/the-text-to-sql-demo-takes-an-afternoon-the-other-90-is-why-you-should-buy-it-4iko)