Continual Learning for Large Language models
- Setup .env file use example from. env.example. Note: donot add db_host manually.
db_username = 'postgres'
db_password = 'postgres'
db_name = 'memory_manager'
db_host = db
db_port = '5432'
conversation_table_name = 'chat_history'
OPENAI_API_KEY = 'sk-<your-openai-api-key>'
- docker compose up
- Download postgres - https://www.postgresql.org/download/
- Create new database for the project
- setup .env file
db_username = 'postgres'
db_password = 'postgres'
db_name = 'memory_manager'
db_host = '127.0.0.1'
db_port = '5432'
conversation_table_name = 'chat_history'
OPENAI_API_KEY = 'sk-<your-openai-api-key>'
- Setup enviornment
conda create -n cll python=3.11
conda activate cll
- Go to backend folder
cd continual_learning/backend
- Install the packages from requirements.txt
pip install -r requirements.txt
- Run server
python backend.py
- Go to frontend folder
cd continual_learning/frontend
- Install packages
npm i
- Run server
npm run dev