vanna-ai / vanna

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

Question about embeddings of DDL, SQL matched against Query #409

Closed sourabh-patil closed 5 months ago

sourabh-patil commented 5 months ago

Hi, Thanks for sharing this work. I had a question, which might be naive, I did not get how we get expected embeddings of DDL or SQL if we match it against natural language Query? Can anyone please shed some light on it? As per the base class of vanna, we first get the similar embeddings matched against stored (or here referred as trained) SQLs, DDLs and documentation.