The problem
What needed solving
Let non-SQL users explore relational data without giving a language model unrestricted access to a database.
Natural Language → PostgreSQL Assistant
A modular Python application that turns plain-English questions into safe SQL, validates and repairs generated queries, executes them against a read-only PostgreSQL database, and summarizes results back in natural language.
The problem
Let non-SQL users explore relational data without giving a language model unrestricted access to a database.
The approach
I separated generation, validation, execution and summarization into independent steps. The model proposes SQL, the application validates it, execution happens through read-only access, failures can be repaired, and the result is summarized for the user.
Interactive architecture
The user asks a question in plain English.
Highlights