Skip to content
Documentation

Document Preprocessing Configuration

Configure external OCR services like MinerU or Doc2x to enhance knowledge base parsing of scanned documents and complex tables.

Why configure this?

This module enhances Knowledge Base parsing. Default text parsers may fail on complex PDF tables, formulas, or scanned images. Integrating OCR services significantly improves recognition.

  • Without configuration: Only the PDF text layer is extracted. Scanned/image PDFs cannot be read.
  • With configuration: The system calls external OCR and layout analysis APIs, preserving tables and formulas.

Configuration Steps

  1. Go to System Settings > Document Preprocessing.
  2. Choose a provider (MinerU or Doc2x).
  3. Enter API information.

Parameter Details

ParameterDescriptionExample
Preprocessing providerBackend engine for parsingMinerU / Doc2x
API HostProvider endpointMinerU default: https://minerU.net (example)
API KeyAuthentication keysk-...

Use case: After configuration, no extra steps are required. When you upload PDFs to the knowledge base, the system will apply these settings automatically.