Skip to content

CarletonComputerScienceSociety/assistant

Repository files navigation

Carleton CS Assistant

Description coming soon.

Setup Instructions

  1. Install Ollama
brew install ollama
  1. Pull the Mistral model
ollama serve
ollama pull mistral
  1. Install Docker

Install Docker Desktop: https://www.docker.com/products/docker-desktop/

brew install docker-compose
  1. Run Docker Compose
docker-compose up
  1. Install More Stuff
brew install libpq && brew link --force libpq
brew install openssl@3
  1. Create a virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies
env \
  LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib" \
  CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include" \
  PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig" \
  pip install -r requirements.txt
  1. Run Migrations
alembic -c src/infrastructure/db/alembic.ini upgrade head

Run Data Ingestion

In one terminal, activate your virtual environment and run Celery:

source venv/bin/activate
PYTHONPATH=src celery -A config.celery worker --loglevel=info --pool=solo

Then in another terminal run the data ingestion script:

source venv/bin/activate
make post-deploy

Run Dev CLI

source venv/bin/activate
make dev-cli

Run Tests

source venv/bin/activate
make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published