back
▲ 2 points

Show HN: SQLiteGPT – Directly query ChatGPT with SQL functions

github.com
by adius·3y ago·2 comments·view on hn ↗
Hi, today I realized I could query ChatGPT directly from SQLite with a custom SQL function. I'm incredible excited about the possibilities of this. All kinds of crazy AI powered data enhancement, extraction, summarization, analysis, … prompts are now only a SQL query away! =)

The implementation is just a prototype and it should be implemented as proper loadable extension in Rust with sqlite-loadable-rs. Make sure to star the GitHub repo if you want to see this happen! ;-)

2 comments
Shillelagh is a Python library that allows you to write adapters which expose APIs through SQL.

https://github.com/betodealmeida/shillelagh/

I’ve implemented something similar to your library for a project using that. As I was based in Python.

Cool! Thanks for the pointer, this could actually come in handy in the future =)