standalone OCR

This commit is contained in:
Pavel committed 2026-09-02 23:12:36 +04:00
1 parent d4e92be0ab
commit 96b878217d
27 files changed
+1995 -152

No files matched your search

+5 -2
View File
@@ -18,9 +18,11 @@ services:
build:
context: ../application
args:
# Bake the optional docling engine (OCR, structured output) into the
# image: set INSTALL_DOCLING=true in ../.env or the shell.
# Bake the optional docling engine (layout-model OCR backend, structured
# output) into the image: set INSTALL_DOCLING=true in ../.env or the shell.
INSTALL_DOCLING: ${INSTALL_DOCLING:-false}
# The tesseract binary behind OCR_ENABLED=true; on by default (~35 MB).
INSTALL_TESSERACT: ${INSTALL_TESSERACT:-true}
env_file:
- ../.env
environment:
@@ -47,6 +49,7 @@ services:
context: ../application
args:
INSTALL_DOCLING: ${INSTALL_DOCLING:-false}
INSTALL_TESSERACT: ${INSTALL_TESSERACT:-true}
# Consumes the default queue AND the dedicated `parsing` queue (read_document /
# parse_document). Without `parsing` here the read_document await never resolves.
# For heavy/OCR parsing run a separate worker with `-Q parsing`.
+1 -1
View File
@@ -200,7 +200,7 @@ Run a dedicated parsing worker that consumes the `parsing` queue:
celery -A application.app.celery worker -Q parsing -l INFO
```
It can be GPU-enabled with its own env (`DOCLING_OCR_ENABLED=true` plus GPU
It can be GPU-enabled with its own env (`OCR_ENABLED=true` plus GPU
libraries) so OCR-heavy parsing runs on a separate, optionally larger pool.
**Dev / single-worker setups:** without a dedicated parsing worker the default