This README provides step-by-step instructions to set up and run the project, including database setup, backend, and frontend services.
Ensure you have the following installed:
- Python (Recommended: 3.8+)
- PostgreSQL
- Uvicorn
- Ollama
- Streamlit
Before running any commands, ensure you are in a virtual environment.
- For Windows (PowerShell):
venv\Scripts\activate
- For macOS/Linux:
source venv/bin/activate
Before proceeding, install all required dependencies (In a virtual env):
pip install -r requirements.txtBefore running any services, create a PostgreSQL database. (Or your anyone of your choice but do make the required changes to the code)
- Open psql:
psql -U postgres
- Create a new database:
CREATE DATABASE DBName;
- Create necessary tables (refer to the
schema.sqlTo be included).
In Terminal 1, run:
uvicorn deepseek_backend.main:app --host 0.0.0.0 --port 8001 --reloadIn Terminal 2, run:
ollama serveIn Terminal 3, run:
python deepseek_server.pySwitch to deepseek_backend
In Terminal 4, run:
streamlit run frontend.py- If any process fails, check logs for errors and restart the respective service.