vanna-ai / vanna

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

Support additional js chart libraries (like highcharts / d3 js ) in addition to plotly. #338

Closed rrimmana closed 3 months ago

rrimmana commented 3 months ago

Support customization of charting libraries for front end. Exploring on using vann-flask/API or built in VannaFlaskApp(vn) but this seems to be tightly coupled with Plotly as visualization library. Trying to extend on the example given below link but the js assets are compressed and minified. Can I know from where can I find the uncompressed src.js or jsx files or the information regarding building those js files for the javascript code shared in the below https://github.com/vanna-ai/vanna-flask and assest.py in src/vanna/flask folder.

Describe the solution you'd like Make the front end samples decoupled with plotting libraries.

zainhoda commented 3 months ago

We have decided to keep the uncompiled UI components closed source for now because it's undergoing constant changes. We would prefer the customizations to be done via configuration rather than dependencies to specific behaviors in the UI: https://vanna.ai/docs/web-app/#customization

In this way, we have a clear API boundary and we can make rapid iterations to the UI code without having to worry about external dependencies.

A community contributor has provided a NextJS app that might be a good starting point for you if you're looking for deep customization of the UI: https://github.com/vanna-ai/vanna-nextjs-flask

rrimmana commented 3 months ago

Thanks @zainhoda for information. will try it.