• Stefy Lanza (nextime / spora )'s avatar
    Add dedicated OCR subsystem + finalize multi-engine backends · 2485403f
    Stefy Lanza (nextime / spora ) authored
    OCR (v0.1.85): new codai/ocr/ subsystem — dedicated OCR engines (NOT a VLM):
    - docTR (in-process, GPU) + PaddleOCR & Surya (isolated-venv subprocess workers
      via codai/ocr/workers/ocr_worker.py to avoid opencv-contrib/pillow<11 clashes;
      paddle-gpu bundles its own CUDA so a cu12x wheel runs on newer-CUDA hosts).
    - /v1/ocr, /v1/ocr/batch, /v1/ocr/schemas CRUD; `ocr` pipeline step.
    - Data-driven, user-extensible extraction schemas (named files + inline + auto),
      built-in seeds (italian_sentenza/generic_document/invoice); optional JSON Schema
      validation. Structured extraction via an existing coderai text model.
    - Configurable stamp/signature detection (off|layout|detector|both); bundled
      signature YOLO default; layout markers EN+IT (timbro/sigillo/firma).
    - Admin OCR card: engines/instances/detect/extraction + schema picker/raw-JSON/
      field-builder + isolated-venv build trigger (background build + status).
    - Isolated venvs resolve baked(/opt) > /cache mount (persistent) > ~/.coderai.
    - Deps: pypdfium2 in base requirements; requirements-ocr(.txt/-paddle.txt);
      requirements-surya.txt; build.sh --ocr.
    
    Also lands the multi-engine backend work: colibri multi-family (GLM/DeepSeek/Kimi),
    kimi-k3-in-c (k3), ktransformers (kt) — per-model selectable via resolve_engine_backend;
    plus a deferred vLLM backend design note (docs/vllm.md).
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01Mw2KQiswmD69T45fTfjKwW
    2485403f
Name
Last commit
Last update
..
__init__.py Loading commit data...
_film_net.py Loading commit data...
_rife_ifnet.py Loading commit data...
app.py Loading commit data...
archive.py Loading commit data...
audio_backends.py Loading commit data...
audio_clean.py Loading commit data...
audio_gen.py Loading commit data...
audio_stems.py Loading commit data...
characters.py Loading commit data...
colibri_worker.py Loading commit data...
custom_pipelines.py Loading commit data...
ds4_kv_janitor.py Loading commit data...
ds4_worker.py Loading commit data...
embeddings.py Loading commit data...
environments.py Loading commit data...
faceswap.py Loading commit data...
fastlog.py Loading commit data...
images.py Loading commit data...
k3_worker.py Loading commit data...
kt_worker.py Loading commit data...
log.py Loading commit data...
loras.py Loading commit data...
ocr.py Loading commit data...
parler_worker.py Loading commit data...
pipelines.py Loading commit data...
prompt_cache.py Loading commit data...
ratelimit.py Loading commit data...
spatial.py Loading commit data...
state.py Loading commit data...
text.py Loading commit data...
transcriptions.py Loading commit data...
tts.py Loading commit data...
tts_backends.py Loading commit data...
urlutils.py Loading commit data...
video.py Loading commit data...
voice_clone.py Loading commit data...
voice_convert.py Loading commit data...
vpr_salad_server.py Loading commit data...