Skip to main content
Vanna AI logo

Vanna AI

Open-source text-to-SQL framework using RAG and LLMs

coding#text-to-sql#open source#rag#data analytics
Free plan API Self-hosted
Toolglade’s take

Vanna is one of the better-known open-source text-to-SQL projects, and its RAG-based approach genuinely improves accuracy over naive prompting when you invest in training it on your schema and examples. It is developer-first: you get flexibility and self-hosting, but you also own the setup, maintenance, and guardrails. Any hosted or paid cloud tier should be confirmed directly, since the project's commercial details are less clearly documented than its open-source core, and generated SQL should always be reviewed before running against production data.

About Vanna AI

Vanna AI is an open-source Python framework that converts natural-language questions into SQL using retrieval-augmented generation over your schema, documentation, and example queries. It connects to major databases, supports local or hosted LLMs, and is self-hostable, making it well suited to developers building private, accurate text-to-SQL experiences.

Vanna AI is an open-source (MIT-licensed) Python framework for text-to-SQL. Instead of relying purely on a large language model to guess queries, Vanna uses retrieval-augmented generation: you train it on your database schema, documentation, and example question-and-SQL pairs, and it retrieves that context at query time to produce more accurate SQL. It connects to a wide range of databases, including Snowflake, BigQuery, Postgres, and Athena, and can pair with hosted models or local LLMs via tools like Ollama. The framework ships with a production-ready web interface and can be embedded into applications, notebooks, or internal tools. Because it is code-first and self-hostable, teams can keep their data and query context in their own environment, which appeals to organizations with privacy or compliance requirements. A significant rewrite (referred to as Vanna 2.0) in late 2025 moved the project from a SQL-generation library toward a more complete agent framework, adding capabilities such as row-level security and support for current-generation models. Vanna is aimed at data teams, analytics engineers, and developers who want to build natural-language query experiences over their own databases without sending schema and data to a closed vendor. Its open-source core is free; the project and associated hosted offerings sit alongside a growing category of AI SQL assistants.

TL;DR

Vanna AI is an open-source Python framework for text-to-SQL that uses retrieval-augmented generation over your schema and example queries. It supports major databases, local or hosted LLMs, and self-hosting. It is developer-first and free at its core. A late-2025 rewrite (Vanna 2.0) expanded it toward an agent framework with features like row-level security.

Company overview

Vanna AI is a project and small company, founded around 2023 and associated with New York City, behind an open-source text-to-SQL framework. It has gained a substantial developer following, with tens of thousands of GitHub stars.

Public funding information is limited. The project is often described as bootstrapped, and its most cited milestone is winning Paddle's AI Launchpad competition in 2024. No traditional venture funding round is clearly disclosed.

Product features

Vanna converts natural-language questions to SQL using RAG over schema, documentation, and example query pairs. It connects to many databases, works with local or hosted LLMs, ships a web interface, and can be embedded into applications.

The Vanna 2.0 rewrite in late 2025 moved it from a SQL-generation library toward an agent framework, adding capabilities such as row-level security and support for current-generation models.

Target market

Data engineers, analytics engineers, and developers who want to build private, accurate natural-language query experiences over their own databases.

Buyer personas

End users

Developers and analytics engineers who integrate and train the framework, plus analysts who query through the resulting interface.

Buyers

Engineering or data platform leads choosing open-source tooling.

Key influencers

Data platform architects and privacy or compliance stakeholders.

Ideal customer profile

A technically capable data team that wants a self-hostable, customizable text-to-SQL layer and is willing to invest in training and maintenance.

Funding & performance

No significant venture funding is publicly disclosed. Vanna is commonly described as bootstrapped and is noted for winning Paddle's 2024 AI Launchpad competition. Verify any funding details with the company.

Pros & cons

Pros

  • Free, MIT-licensed open-source core
  • RAG approach improves SQL accuracy with training
  • Self-hostable for privacy and compliance
  • Works with many databases and both local and hosted LLMs
  • Ships with a usable web interface
  • Active project with a major 2.0 rewrite

Cons

  • Requires engineering effort to set up and train
  • Accuracy depends on quality of training examples
  • Generated SQL must be reviewed before use
  • Limited built-in team collaboration in the open-source core
  • Commercial and hosted pricing details are not clearly documented
  • Not a turnkey product for non-technical buyers

Pricing plans

Open Source
$0
  • MIT license
  • Self-hosted
  • Connect any supported database
  • Bring your own LLM

Key features

API
Self-hosted
Integrations
Snowflake, BigQuery, PostgreSQL, Amazon Athena, Ollama, OpenAI
Input types
text
Output types
code, text
Best For
Building natural-language query tools, Self-hosted text-to-SQL, Embedding SQL generation in apps, Keeping schema and data private

Compare key features

View all alternatives →
Feature
Vanna AI
Pinecone
Weaviate
Pricing
Freemium
Freemium
Freemium
Free plan
Yes
Yes
Yes
Free trial
No
No
Yes
API
Yes
Yes
Yes
Self-hosted
Yes
No
Yes
Team support
No
Yes
Yes

Frequently asked questions

Is Vanna AI free?+

The open-source Vanna framework is free under the MIT license. You are responsible for any underlying LLM API costs and your own hosting.

How is Vanna more accurate than plain ChatGPT for SQL?+

Vanna uses retrieval-augmented generation, training on your schema, docs, and example queries and retrieving that context at query time, which improves accuracy over prompting a model with no context.

Can Vanna run locally?+

Yes. Vanna is self-hostable and can use local LLMs via tools like Ollama, so schema and data can stay in your environment.

Which databases does Vanna support?+

It supports many databases, including Snowflake, BigQuery, PostgreSQL, and Amazon Athena, among others.

Is Vanna suitable for non-technical users?+

Vanna is a developer-first framework that requires setup and training. Non-technical users can query through a built-in or embedded interface once a developer has configured it.

Reviews (0)

Write a review

Pick a rating
Loading reviews…
Compare

Compare Vanna AI with other AI tools

Side-by-side pages for pricing, features, and best-fit use cases.

All comparisons →

Similar tools you may like