4 ms·
Show HN: Tsellm: Interactive SQLite shell with LLM support
Hello HN,
While browsing the Python docs yesterday, I discovered that the latest 3.12 version has added support for a `python3 -m sqlite3` interactive shell. I looked into the source code, and its implementation was simple, giving me an idea:
Why not hook the beautiful llm library by simonw into such an interactive shell, and thus have direct LLM support in SQLite? Without writing a C extension, build a shared object and all that fuss.
Well, now you can `pip install tsellm` and do just that.
demo gif: https://github.com/Florents-Tselai/tsellm/blob/main/tsellm-demo.gif https://github.com/Florents-Tselai/tsellm/blob/main/tsellm-d...
- metadat 2y agoFeedbacks: The gif is very slow to get to the interesting parts, and then speeds through them faster than I can understand what's happening, especially at the end. It could really benefit by being a few screenshots instead. Additionally, it'd be nice to show or clarify the intended use cases. I was expecting it to be an LLM to make querying SQLite easier, but this doesn't seem like the purpose. I'm still unclear on why one would want this or what it is appropriate for. Cheers.
- fforflo 2y agoYes, you're right. I felt the gif wasn't polished but was too lazy to re-run. I removed it for now. Simplified the README a bit too. Hope is better now. Thanks!
- metadat 2y agoI like the tweaks you made to the README, especially the introduction at the very top! It is much clearer now. Cheers and best wishes.