Zunduo / DB-Final

Final Project for CSCI-GA.2433 Database Systems at NYU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DB-Final

Final Project for CSCI-GA.2433 Database Systems at NYU

Demo of Insurance Quote Dashboard

Alt text

Models

1-epoch, proof of concept NLU model can be found here: https://drive.google.com/drive/folders/1Dbpe3yf2vn1Ig3pNhfkR_SnDVUD4Fnw3?usp=sharing

Drop /saved_models in /client/app

Start Rust server

Install Rust with rustup: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Then:

cargo build

cargo run

For example, send GET request (empty body) to: http://127.0.0.1:8000/genmodelins/123456788 You will get response:

{
    "Age": 22,
    "Gender": "0",
    "Weight": 145,
    "Height": 69,
    "City": 0,
    "Country": 0,
    "SmokingHabits": 1,
    "CancerHistory": 1,
    "CardiovascularHistory": 1,
    "DrinkingHabits": null,
    "ActivityHabits": null
}

Start Client

Install Docker, increase memory to 6GB.

Then:

docker build -t rz-insurancedashboard .

docker-compose up -d

docker logs rz-insurancedashboard-dev to check logs

docker stop rz-insurancedashboard-dev to stop container

About

Final Project for CSCI-GA.2433 Database Systems at NYU


Languages

Language:Python 54.4%Language:TSQL 39.2%Language:Rust 5.8%Language:Dockerfile 0.6%Language:Shell 0.1%