Graphviz is an innovative project that empowers users to seamlessly upload SQL database files in CSV format through its intuitive frontend functionality. Once uploaded, users can effortlessly query the database using natural language. The results of these queries are then dynamically displayed in various graphical formats, including bar graphs, line graphs, or tables, providing users with clear and insightful visual representations of their data.
- Easy Database Upload: Upload SQL database files in CSV format with a simple frontend interface.
- Natural Language Queries: Query your database using natural language for a user-friendly experience.
- Dynamic Visualization: Visualize query results dynamically with options for bar graphs, line graphs, or tables.
- Powered by OpenAI API: Utilizes the robust capabilities of OpenAI API in the backend for efficient processing and natural language understanding.
To get started with Graphviz, follow these steps:
- Make sure you have Python installed on your system.
- Create a new conda environment. Install the required dependencies by running the following commands:
$ conda create -n env <env_name>
$ conda activate <env_name>
$ pip install -r requirements.txt
- Start the API service by running the
app.py
file:
$ python app.py
To enable frontend functionality, a separate service needs to be initiated. GitHub repository for the frontend - graphviz-frontend
- You can find a
.env
file in the api directory. Open the file using the following command
$ vi api/.env
- You can change
HOST
,PORT
or theENDPOINT
of the flask service here. - Update your OpenAI API key in the
.env
file.