(also provided Traditional Chinese version document README-CH.md.)
Connect Vanna AI to database PostgreSQL and use database data finetune AI, and finally use Flask as the frontend web page.
Vanna AI can not only write sql query according to the data schema, but can also directly fetch the data from the database and then create chart.
Also provide init_postgres.sql for example data of my project.
- AI: Vanna AI v0.6.3
- Database: PostgreSQL v13.2
- Web FrameWork: Flask
copy .env.example as .env
VANNA_MODEL
and VANNA_API_KEY
can be get at Vanna AI Office WebSite
VANNA_MODEL=
VANNA_API_KEY=
PG_HOST=localhost
PG_DBNAME=postgres
PG_USER=postgres
PG_PASSWORD=password
PG_PORT=5432
pip install vanna
pip install psycopg2
pip install python-dotenv
python run.py
http://localhost:8084