TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Vanna AI – Open-sourced text-to-SQL in Python

33 pointsby zainhodaover 1 year ago
Hey there HN!<p>We&#x27;ve just open-sourced Vanna – a Python package that allows you to transform questions into SQL. We&#x27;ve leveraged LLMs to enable you to &quot;ask&quot; databases what you need, bypassing the need to &quot;write&quot; complex SQL.<p>Quick Overview:<p>- &quot;Train&quot; using DDL statements, documentation, or known correct SQL statements.<p>- &quot;Ask&quot; questions in natural language and receive SQL, tables, and charts in return.<p>- Open Source Flexibility: Swap storage mechanisms, customize LLMs, and choose your databases.<p>- Local or Hosted: Operate everything locally or use our hosted version for free (including complimentary LLM calls).<p>- Use it wherever Python is applicable. We provide code examples for integration in Jupyter, Streamlit, Slack, and more.<p>We would greatly appreciate your feedback, insights on issues, and contributions:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;vanna-ai&#x2F;vanna">https:&#x2F;&#x2F;github.com&#x2F;vanna-ai&#x2F;vanna</a>

6 comments

npace12over 1 year ago
Looks nice but I&#x27;m confused why it&#x27;s advertised as if it&#x27;s training anything. It&#x27;s just doing retrieval from a vector db and generating a prompt with openai&#x2F;LLM.
评论 #37435334 未加载
ban-lan-genover 1 year ago
Just curious what kinds of models are used in your project?<p><a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2306.08891" rel="nofollow noreferrer">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2306.08891</a> One paper seems to suggest trained specialized model can outperform LLM in some tasks.
评论 #37435384 未加载
crazy_marksmanover 1 year ago
Impressive! Quick question - is it possible to generate sql for a slight variant of sql? My project augments standard sql with a few new constructs.
评论 #37444833 未加载
jesuslopover 1 year ago
These results are impressive, guys. I&#x27;m saving a pointer to dig deeper to glean the details. Tip in the hat for making it open.
tzmover 1 year ago
Open source, but requires an API key?
评论 #37435361 未加载
ashishsingalover 1 year ago
oh how exciting :)