File tree Expand file tree Collapse file tree 1 file changed +49
-2
lines changed Expand file tree Collapse file tree 1 file changed +49
-2
lines changed Original file line number Diff line number Diff line change 1+ # Carleton CS Assistant
2+
3+ * Description coming soon.*
4+
5+ ## 1. Install Dependencies
6+
7+ ``` bash
8+ pip install -r requirements.txt
9+ ```
10+
11+ ## 2. Set Up Ollama LLM
12+
13+ Start the Ollama server and pull the required model:
14+
15+ ``` bash
116ollama serve
217ollama pull mistral
318ollama run mistral
19+ ```
20+
21+ ## 3. Set Up the Database
422
23+ Run Alembic to create and apply database migrations:
524
25+ ``` bash
626alembic -c src/infrastructure/db/alembic.ini revision --autogenerate -m " initial migration"
727alembic -c src/infrastructure/db/alembic.ini upgrade head
28+ ```
29+
30+ > Make sure your database connection URL is properly configured in ` src/infrastructure/db/alembic.ini ` and your SQLAlchemy settings.
31+
32+ ## 4. Run Celery Worker
833
34+ Start the Celery worker to process tasks:
935
36+ ### Development (single-threaded)
37+
38+ ``` bash
1039PYTHONPATH=src celery -A infrastructure.celery worker --loglevel=info --pool=solo
40+ ```
41+
42+ ### Production-like (multi-threaded)
43+
44+ ``` bash
1145PYTHONPATH=src celery -A infrastructure.celery worker --loglevel=info
46+ ```
1247
13- pip freeze > requirements.txt
48+ ## 5. Running Tests
49+
50+ Run the full test suite using Pytest:
1451
15- PYTHONPATH=src pytest
52+ ``` bash
53+ PYTHONPATH=src pytest
54+ ```
55+
56+ ## 6. Updating ` requirements.txt `
57+
58+ After installing new packages, freeze your environment:
59+
60+ ``` bash
61+ pip freeze > requirements.txt
62+ ```
You can’t perform that action at this time.
0 commit comments