Skip to content

Commit 99688f3

Browse files
committed
Add readme
1 parent f6c9677 commit 99688f3

File tree

1 file changed

+49
-2
lines changed

1 file changed

+49
-2
lines changed

README.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,62 @@
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
116
ollama serve
217
ollama pull mistral
318
ollama run mistral
19+
```
20+
21+
## 3. Set Up the Database
422

23+
Run Alembic to create and apply database migrations:
524

25+
```bash
626
alembic -c src/infrastructure/db/alembic.ini revision --autogenerate -m "initial migration"
727
alembic -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
1039
PYTHONPATH=src celery -A infrastructure.celery worker --loglevel=info --pool=solo
40+
```
41+
42+
### Production-like (multi-threaded)
43+
44+
```bash
1145
PYTHONPATH=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+
```

0 commit comments

Comments
 (0)