This repository demonstrates converting CSV to SQLite, running a Flask/Streamlit server, and interacting with a 2B‑parameter LLaMA model to convert Natural Language → SQL → Graphs.
python3 -m venv env
source env/bin/activate # for macOS/Linux
pip install -r requirements.txt
If you get an error for packages like
json,typing,logging, etc. — they are part of Python’s standard library. You do not need to list or install them separately.
The model used is around 2B parameters, requiring approximately 8 GB RAM.
server.py and comment out the last line:# t1.start()
python server.py
Your server will now be live at http://localhost:8000
First step is to convert your input CSV file into a SQLite database.
python nl_to_sql_to_graph/csv_to_sqlite.py
This generates database.sqlite in the root folder.
server.py.git clone <your-repo-url>
cd <your-repo-folder>
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python nl_to_sql_to_graph/csv_to_sqlite.py
python server.py
export PORT=8000
export MAX_RAM_GB=8
export LLAMA_MODEL_PATH="/path/to/llama-2b"
## Front-end
The front-end application for this project lives in its own repository:
2 commits
Jupyter Notebook
97.1%
Python
2.8%
This repository demonstrates converting CSV to SQLite, running a Flask/Streamlit server, and interacting with a 2B‑parameter LLaMA model to convert Natural Language → SQL → Graphs.
python3 -m venv env
source env/bin/activate # for macOS/Linux
pip install -r requirements.txt
If you get an error for packages like
json,typing,logging, etc. — they are part of Python’s standard library. You do not need to list or install them separately.
The model used is around 2B parameters, requiring approximately 8 GB RAM.
server.py and comment out the last line:# t1.start()
python server.py
Your server will now be live at http://localhost:8000
First step is to convert your input CSV file into a SQLite database.
python nl_to_sql_to_graph/csv_to_sqlite.py
This generates database.sqlite in the root folder.
server.py.git clone <your-repo-url>
cd <your-repo-folder>
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python nl_to_sql_to_graph/csv_to_sqlite.py
python server.py
export PORT=8000
export MAX_RAM_GB=8
export LLAMA_MODEL_PATH="/path/to/llama-2b"
## Front-end
The front-end application for this project lives in its own repository:
2 commits
Jupyter Notebook
97.1%
Python
2.8%