vanna
Basic Information
Vanna is an MIT-licensed open-source Python RAG (Retrieval-Augmented Generation) framework focused on translating natural language questions into SQL and related functionality. It is designed to let developers train a lightweight RAG "model" on schema DDL, business documentation, and example SQL so the system can generate accurate SQL queries. After training, users can ask natural language questions and receive SQL that can optionally be executed against connected databases to return result tables and charts. The project exposes a base Vanna class and plug-in style implementations so you can combine different LLMs and vector stores. User interface examples include Jupyter notebooks and reference apps for Streamlit, Flask, and Slack, making the project suitable as a backend for integrations or as a developer toolkit to build custom SQL-assistant workflows.