chore: pin document recognition engine
Some checks failed
CI / Backend (lint + tests + compose) (push) Has been cancelled
CI / Frontend (lint + type-check + build) (push) Has been cancelled

This commit is contained in:
Vadim Malanov
2026-06-25 11:43:29 +03:00
parent 809d7244bf
commit 4fcec8039b
7 changed files with 154 additions and 459 deletions

View File

@@ -22,8 +22,8 @@ FastAPI /search ◀── BGE Reranker ◀── RRF merge ◀──────
| Component | Tech |
|------------------|------------------------------------------|
| OCR | OCRmyPDF + Tesseract (rus + eng) |
| Extraction | Docling (layout, tables, figures) |
| OCR | `teamhub-document-recognition-engine` over OCRmyPDF + Tesseract (rus + eng) |
| Extraction | `teamhub-document-recognition-engine` over Docling (layout, tables, figures) |
| Object storage | MinIO (S3-compatible) |
| Relational store | PostgreSQL 16 |
| Lexical search | OpenSearch 2.x (BM25 + ru/en analyzers) |
@@ -196,7 +196,7 @@ docker compose exec postgres psql -U legacyhub -d legacyhub \
See [`.env.example`](.env.example) for the full list. Key ones:
- `OCR_LANGUAGES` - Tesseract language packs (default `rus+eng`).
- `OCR_LANGUAGES` - Tesseract language packs passed to the shared recognition engine (default `rus+eng`).
- `OCR_ENABLED` - set `false` to skip OCR completely.
- `DOCLING_OCR_ENABLED` - prefer OCRmyPDF; only enable if you do not run OCRmyPDF.
- `EMBEDDING_DEVICE` / `RERANKER_DEVICE` - `cpu`, `cuda`, or `mps`.