←back to thread

103 points nicktikhonov | 2 comments | | HN request time: 0.637s | source

SnapQL is an open-source desktop app (built with Electron) that lets you query your Postgres database using natural language. It’s schema-aware, so you don’t need to copy-paste your schema or write complex SQL by hand.

Everything runs locally — your OpenAI API key, your data, and your queries — so it's secure and private. Just connect your DB, describe what you want, and SnapQL writes and runs the SQL for you.

1. throwmeaway9876 ◴[] No.44329300[source]
Great tool!

Pardon my technical ignorance, but what exactly is OpenAI's API being used for in this?

replies(1): >>44329470 #
2. nicktikhonov ◴[] No.44329470[source]
OpenAI LLM is used to generate SQL based on a combination of a user prompt and the database schema.
replies(1): >>44331216 #