Merge branch 'main' into post-to-zulip

This commit is contained in:
Koper
2023-12-04 21:06:10 +07:00
53 changed files with 2479 additions and 692 deletions

View File

@@ -23,7 +23,7 @@ It also uses https://github.com/fief-dev for authentication, and Vercel for depl
- [OpenAPI Code Generation](#openapi-code-generation)
- [Back-End](#back-end)
- [Installation](#installation-1)
- [Start the project](#start-the-project)
- [Start the API/Backend](#start-the-apibackend)
- [Using docker](#using-docker)
- [Using local GPT4All](#using-local-gpt4all)
- [Using local files](#using-local-files)
@@ -133,15 +133,15 @@ TRANSLATE_URL=https://monadical-sas--reflector-translator-web.modal.run
ZEPHYR_LLM_URL=https://monadical-sas--reflector-llm-zephyr-web.modal.run
```
### Start the project
### Start the API/Backend
Use:
Start the API server:
```bash
poetry run python3 -m reflector.app
```
And start the background worker
Start the background worker:
```bash
celery -A reflector.worker.app worker --loglevel=info
@@ -153,6 +153,12 @@ Redis:
TODO
```
For crontab (only healthcheck for now), start the celery beat (you don't need it on your local dev environment):
```bash
celery -A reflector.worker.app beat
```
#### Using docker
Use: