# Document parser: chandra served bare by vLLM behind an OpenAI-style /v1/chat/completions, # one page image per request. Same request and post-processing as vopec-chatbot app/docs/ocr.py # (DOCS_OCR_API=vllm, commit 25076e6, 2026-10-15). The prompt is a byte copy of # vopec-chatbot app/docs/ocr-prompt.txt; its hash is checked before every run and is part of # every cached page's key, so a changed prompt can never be mixed with pages read under the old one. # The service URL is machine-local: set VOLVE_DIA_OCR_URL in .env (see .env.example). model: chandra prompt_file: configs/ocr-prompt.txt prompt_sha256: de6580eeade3936f1cf1fc6435a9e59c7bc4f17246983fe1ac1a40efd38d30ff # Near a fax scan's native ~204 dpi (vopec measurement); the Volve DDR PDFs are A4 renders. dpi: 200 max_tokens: 12000 temperature: 0 # Pages in flight at once; vLLM batches them on the GPU. The service is shared with vopec-chatbot. workers: 4 timeout_s: 600 # Transport errors and 5xx only; a page that still fails is recorded as failed and retried on the next run. retries: 2 # Trailing-loop cut (vopec LOOP_CHARS / LOOP_MAX_UNIT / LOOP_CHECK_EVERY). loop_chars: 3000 loop_max_unit: 200 loop_check_every: 500 # A page whose embedded images exceed this is a log plot: recorded skipped, never sent (vopec DOCS_OCR_MAX_PAGE_MB). max_page_image_mb: 4 # Stop sending pages after this many failed in a row (the service is down); the next run resumes. stop_after_failed: 8