rag-service/ocr-service/README.md

23 lines
692 B
Markdown

# OCR Service Development Environment
Unit 5 uses the repository-local virtual environment `ocr-service/.venv`. It is intentionally retained between runs and ignored by Git. Do not install these dependencies globally.
## Create or recreate
From the repository root:
```bash
rm -rf ocr-service/.venv
python3 -m venv ocr-service/.venv
ocr-service/.venv/bin/python -m pip install -r ocr-service/requirements.txt
```
Activate it with `source ocr-service/.venv/bin/activate`.
## Test
```bash
ocr-service/.venv/bin/python -m pytest ocr-service/tests -k auth
```
PaddleOCR, rendering, container images, and production model readiness belong to Unit 6 and are not installed by this manifest.