OpenVortexAI Docs
RAG and documents

OCR and visual documents

Configure OCR for scanned files and decide when to add inline visual context.

OCR path

For PDFs with insufficient embedded text, the API can render pages with Poppler and run Tesseract. PNG and JPEG files can also use Tesseract OCR.

The Docker API image includes Poppler utilities, Tesseract English data, catdoc, and the default SentenceTransformers model cache.

Important settings

  • OCR_ENABLED
  • OCR_TESSERACT_LANG, OCR_TESSERACT_CMD, OCR_TESSDATA_PREFIX
  • OCR_POPPLER_PATH
  • OCR_PDF_MAX_PAGES, OCR_PDF_DPI
  • OCR_MIN_TEXT_CHARS, OCR_MAX_IMAGE_PIXELS
  • OCR_WORKER_THREADS

Higher DPI and page counts increase CPU, memory, and processing time.

OCR or vision?

Use OCR when the information is primarily text. Add Deep Vision when layout, charts, handwriting, diagrams, or other visual relationships matter. The two can be combined in ocr_plus_vision mode.

Visuals are sent inline to the model provider and increase provider input usage. Use text_ocr_only when visual content must not leave the deployment.

On this page