Dr.Ginseng combines biological data with wellness practices from TCM and Western medicine. This integrated approach offers personalized advice on diet, exercise, and stress management, aiming to prevent health issues before they occur and providing a cutting-edge solution in smart healthcare.
- Frontend: React, Typescript
- Backend: Python, PostgreSQL
- AI Development: Pytorch, Nvidia AI Workbench
- Data Analysis: SAS viya
- Hosting: firebase, Heroku
- Bio-Data Analysis: Performed data cleaning, analysis, visualization, and model training using SAS Viya, leveraging advanced machine learning techniques like RNN/LSTM for data prediction and extrapolation.
- LLM Medical Model with RAG: Used Nvidia AI Workbench to fine-tune LLMs for predicting health conditions based on wearable data, with RAG providing personalized suggestions through real-time contextual information.
- Full Stack Development: Developed three main pages: Health Dashboard, TCM Knowledge Base, and LLM Medical Chatbot, with a TypeScript frontend, Python backend, and PostgreSQL database.
- Install dependencies
npm install
- Start the frontend server
npm run dev
- Local Env
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=xxxxxxxxxxx
CLERK_SECRET_KEY=xxxxxxxxxxx
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/login
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/signup
# you need to config the clerk webhook secret key if you want to use the clerk with database
CLERK_WEBHOOK_SECRET=xxxxxxxxxxx
NEXT_PUBLIC_SERVICE_MODE=server
# Postgres database URL
DATABASE_URL=xxxxxxxxxxx
# use `openssl rand -base64 32` to generate a key for the encryption of the database
# we use this key to encrypt the user api key
KEY_VAULTS_SECRET=xxxxxxxxxxx
APP_URL=xxxxxxxxxxx
DATABASE_DRIVER=neon
OPENAI_API_KEY=xxxxxx
3.Init Databse
- Navigate to the database folder
/src/app/database/server/migrations
- Copy and pasted the init sql to neon instance and run
0000_init.sql
0001_add_client_id.sql
0002_amusing_puma.sql
0003_naive_echo.sql
0004_add_next_auth.sql
0005_pgvector.sql
0006_add_knowledge_base.sql
0007_fix_embedding_table.sql