vanna-ai / vanna

🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using RAG 🔄.
https://vanna.ai/docs/
MIT License
9.12k stars 673 forks source link

Does it works? Or is it just yet another mess? #468

Closed antonio-gabriele closed 1 month ago

antonio-gabriele commented 1 month ago

pip install openai pip install vanna[openai,chromadb]

vanna.py from openai import AzureOpenAI from vanna.openai import OpenAI_Chat from vanna.chromadb import ChromaDB_VectorStore

python vanna.py

Traceback (most recent call last): File "C:\Work\vanna\vanna.py", line 2, in from vanna.openai import OpenAI_Chat File "C:\Work\vanna\vanna.py", line 2, in from vanna.openai import OpenAI_Chat ModuleNotFoundError: No module named 'vanna.openai'; 'vanna' is not a package

deathblade287 commented 1 month ago

This is not a bug. The name of both the module (this library) and your file is vanna.py - python sometimes gets confused by this. Try renaming your file to main.py or really anything else and let me know if the error persists.

zainhoda commented 1 month ago

@deathblade287 is correct. @antonio-gabriele please rename your file.