Database Schema Awareness
Author: zthafirCreated Mar 9, 2026Updated Mar 9, 2026
I'm new to using Vanna AI for NL2SQL, and I'm currently working with version 2.x.x. When I run the example provided in the documentation, it keeps raising errors. It seems that the model might not be aware of the schema of the connected database. I noticed that it's possible to add business rules and example queries, but I couldn't find any mention of how to provide the database schema itself. Do you have any recommendations on how to make it schema-aware or properly train it with the database schema?
Source: vanna-ai/vanna