ClouisleClouisle

Image and Scanned Document Parsing

Turn scanned PDFs, screenshots, and embedded images into searchable text and descriptions

A lot of knowledge is not in selectable text: contracts are scans, product details hide in slide images, and receipts or reports exist only as screenshots. Image parsing sends images to a vision or OCR model during document processing, extracts visible text, and generates factual descriptions, then indexes both alongside the surrounding text.

The feature is off by default and configured once by a site administrator. Images are sent to an external model provider, which costs money and may move data outside your deployment; confirm compliance before enabling it.

Document image parsing in site settings
Site settings → Parsing: switch, vision model, OCR model, and resource limits

When to use it

  • Scanned contracts, invoices, and forms: no text layer, so ordinary parsing returns nothing.
  • Slides and DOCX images with labels: charts, flow diagrams, and product screenshots hold the answer.
  • Images in Excel workbooks: product photos, QR codes, or diagrams next to cells.
  • Direct image uploads: screenshots, photos, and posters.

If a document already has a complete text layer, you do not need this; enabling it still analyzes images and adds processing time and cost.

Admin configuration

  1. Sign in as an administrator and open Site Settings.
  2. Choose Parsing (/site-settings/parsing).
  3. Turn on Enable Document Image Parsing.
  4. Choose a Vision model: an enabled chat model that accepts image input and is authorized for the team processing the document.
  5. Optionally choose an OCR model: it only extracts text. Leave it empty to let the vision model do both OCR and description.
  6. Optionally enable Fetch external images: this only affects image URLs referenced by documents and is off by default.
  7. Adjust resource limits and save.
SettingDefaultRangeDescription
Enable document image parsingOffOn/offWhen off, images are never sent to a model
Vision modelEmptyEnabled image-input modelProduces text and visual descriptions
OCR modelEmptyEnabled image-input modelText-only extraction; empty reuses the vision model
Fetch external imagesOffOn/offWhether to fetch image URLs referenced by documents
Max images per document81-20Images beyond this are not analyzed
Max bytes per image104857601-52428800Larger images are rejected
Max pixels per image200000001-40000000Images above this are rejected
Concurrent image requests21-8Maximum simultaneous analysis requests per document

At least one model is required

Enabling the switch requires a vision model, an OCR model, or both; clearing the last model fails to save. The model must also be authorized for the document's team, otherwise processing reports an error instead of silently skipping.

How users use it

Image parsing happens during processing; there is no extra checkbox at upload time:

  1. Upload a document (PDF, DOCX, PPTX, XLSX, or an image), or collect one from WeChat.
  2. Process it normally: quick process, or preview chunks and then submit.
  3. When processing completes, OCR text and image descriptions appear in the relevant chunks and are returned by retrieval.
Upload document dialog
Upload document: PDF, Office files, Markdown, plain text, and images

Supported sources

SourceHow it is handled
Scanned or mixed PDFText is extracted per page; pages that need it are rendered as images and analyzed
DOCX / PPTXEmbedded images are extracted with their paragraph or slide position
XLSXImages are extracted with their sheet and anchor
Standalone imagePNG, JPEG, GIF, and WebP are processed as a document
External imageURLs referenced by a document; fetched only when the administrator allows it, after SSRF validation

What gets indexed

  • Text: readable content from the image, indexed as part of the chunk.
  • Description: factual description of charts, interfaces, and photos, without inventing details.
  • Source position: chunks keep page, slide, or sheet references so answers can cite them.
  • The image itself: still served through the protected file endpoint; the index stores no original image and creates no public link.

Model output is treated as untrusted document content: instructions inside an image are not executed as system prompts, and descriptions are sanitized before indexing.

Cost, privacy, and limits

  • Cost: every image calls a vision or OCR model and is billed by the provider; large documents can add significant time and tokens.
  • Data leaving the deployment: images go to the configured provider. Confirm policy before processing ID cards, medical images, or other sensitive material.
  • Not a replacement for OCR review: handwriting, low resolution, rotation, and occlusion reduce accuracy; verify critical numbers manually.
  • Duplicate text: a mixed PDF can have both a text layer and image OCR, so chunks may contain repeated content. This is a known limitation.
  • External images: off by default. Even when enabled, private networks, loopback, and cloud metadata addresses are rejected.
  • Historical documents: only documents processed after enabling are affected. Existing documents are not reprocessed automatically; run Reprocess manually.

Failures and retries

SymptomCauseFix
Images are skippedCount, byte, or pixel limit exceededCompress the image, or ask an administrator to raise the limit
A standalone image fails with no extracted textThere was no recognizable text and only an OCR model is configuredConfigure a vision model for descriptions, or use a readable image
Model unavailable / unauthorizedThe team lacks authorization, or the model is disabledGrant access in model management or choose another model
External image fetch failsUnreachable URL, SSRF rejection, or timeoutDisable external fetching, or upload the image inside the document
Whole document failsModel error or quota exhaustionRead the document error, fix it, then retry failed chunks

Retry only reruns failed chunks. If you changed the site-level model configuration, reprocess the whole document so one document does not mix output from two models.

How is this guide?

On this page