1 comment

[ 0.63 ms ] story [ 11.7 ms ] thread
Hey HN! DataLang is my latest SaaS attempt.

Yet another prompt engineering tool, for SQL generation/execution.

Try the demo at https://datalang.io/demo.

You input your data source, ask a question naturally, and DataLang not only generates the corresponding SQL query but also executes it and provides a natural language response.

For example:

- Data Source: postgresql://USER:PASS@db.HOST:PORT/DB

- Question: What was our total revenue last quarter?

- Answer: Your total revenue last quarter was $11,204

I know that sharing your connection string is scary, but I'm committed to making it as secure as possible, for example, I never log or store raw connection strings (https://gist.github.com/AlexandroMtzG/9e0ebd0751f49e3f6d8b1e...).

I have basically 4 prompts:

1. Understanding the end-user question

2. Interpreting the DB schema + making sense of the question

3. Crafting SQL statements (SELECT only)

4. Final SQL safety check

Let me know what you think!

--

I built this MVP with my SaaS framework SaasRock, so I'll wait for user feedback before adding more features. I'm not doing the same mistake of over-engineering a product before actually having users (and if this doesn't get at least 10 users by July 16th, I'll make it a SaasRock Enterprise template).