TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Tsellm: Interactive SQLite shell with LLM support

8 点作者 fforflo11 个月前
Hello HN,<p>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:<p>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.<p>Well, now you can `pip install tsellm` and do just that.<p>demo gif: <a href="https:&#x2F;&#x2F;github.com&#x2F;Florents-Tselai&#x2F;tsellm&#x2F;blob&#x2F;main&#x2F;tsellm-demo.gif">https:&#x2F;&#x2F;github.com&#x2F;Florents-Tselai&#x2F;tsellm&#x2F;blob&#x2F;main&#x2F;tsellm-d...</a>

1 comment

metadat11 个月前
Feedbacks:<p>The gif is very slow to get to the interesting parts, and then speeds through them faster than I can understand what&#x27;s happening, especially at the end.<p>It could really benefit by being a few screenshots instead.<p>Additionally, it&#x27;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&#x27;t seem like the purpose. I&#x27;m still unclear on why one would want this or what it is appropriate for.<p>Cheers.
评论 #40771739 未加载