This is a AI system that allows users to analyze data using SQL and DuckDB, a lightning-fast database engine, combined with the power of GPT-4, a large language model
Requirments : You must install Node.js and Python on your local machine.
---------------Import Database ---------------
- You must install navicat and xampp to local machine.
- You have to run xampp and click "start" button of "apache" and "mysql" line. It will run and you can show enable port number 3306 that left the "stop" button of "mysql" line.
- You have to open navicate and import "duckdb.sql" file.
- You have to create a new mysql connection and create new database named "duckdb"
- If you click right button when you put "duckdb" database item, you can see "Execute SQL file..." item.
- If you click this item, you can import mysql file.
You can modify .env file of backend to your mysql connection details.
--------------- Run frontend -----------------
- You must copy .env.local file into /frontend location
- You must run "npm install" by cmd into /frontend location
- You can run frontend.bat to run frontend.
---------------- Run backend -----------------
- You must copy .env file into /backend location
- You must run this command by "pip install -r requirements.txt"
- You can run backend.bat to run backend.
- You can change your OPEN_AI_KEY in ask.py file at 10 line.
--------------- Run datagraph-----------------
- You must run "yarn add" by cmd into /frontend location
- If you must install yarn at first, you can run this command. "npm install --global yarn"
- You can run datagraph.bat to run frontend.