Vanna is a natural language query tool for SQL databases, with the core goal of converting user questions into SQL and returning readable data results. According to the project description, it implements Text-to-SQL generation through large language models and Agentic Retrieval, allowing users to ask questions to the database in natural language.
Purpose and Positioning Vanna is suitable for building data analysis applications with natural language interfaces. After a user asks a question, the system returns streaming progress updates, SQL code blocks, interactive data tables, Plotly charts, and natural language summaries. By default, SQL code blocks are shown only to admin users.
Main Capabilities Vanna 2.0 emphasizes user awareness and production readiness. Its capabilities include: user identity carried throughout system prompts, tool execution, and SQL filtering; row-level security, where queries are automatically filtered according to user permissions; audit logging, recording each query by user; per-user rate limiting through lifecycle hooks. It also provides a prebuilt <vanna-chat> web component that supports streaming tables and charts, responsive design, adaptation to mobile, desktop, and light/dark themes, and is not tied to a frontend framework, so it can be used in React, Vue, or plain HTML.
Technology Stack Compatibility Vanna supports multiple LLMs, including OpenAI, Anthropic, Ollama, Azure, Google Gemini, AWS Bedrock, Mistral, and more; supports multiple databases, including PostgreSQL, MySQL, Snowflake, BigQuery, Redshift, SQLite, Oracle, SQL Server, DuckDB, ClickHouse, and more; can use users' existing authentication systems, such as cookies, JWT, OAuth tokens; backend frameworks support FastAPI and Flask.
Usage
The project provides three getting-started approaches: a production chat interface, a custom database Agent, and web embedding. Users need to define a User Resolver to extract user identity from requests; tools automatically check permissions based on the user's group; the backend sends structured UI components to the frontend in a streaming manner; the frontend renders using the built-in <vanna-chat> component. The documentation also explains that custom tools can be extended by inheriting the Tool base class, and supports advanced features such as lifecycle hooks, LLM middleware, conversation storage, observability, context enhancers, and Agent configuration.
Use Cases Vanna is suitable for data analysis applications with natural language interfaces, multi-tenant SaaS requiring user-aware permissions, teams that want to directly use prebuilt web components and a backend, enterprise environments with security and audit requirements, applications that need rich responses such as streaming tables and charts, and projects that need to integrate with existing authentication systems.
Limitations and Migration Notes Vanna 2.0 is a complete rewrite: the API changes from VannaBase class methods to an Agent-based approach, components are all aware of user identity, responses change from text/DataFrame to streaming UI components, and a web component and server are built in. To upgrade from 0.x, you can use LegacyVannaAdapter to quickly wrap existing instances to get the new Web UI, or gradually migrate to the new Agent API. The project is licensed under MIT. Specific installation commands, code examples, and complete configuration steps are not yet provided in the existing materials and require consulting the official documentation.