- Knowledge-ingestion converters turn PDFs into Markdown and structured layout data that can be chunked and indexed. Baidu PaddleOCR‑VL can also power the linked PDF analysis preview.
- Agent PDF tools let a digital expert convert a task-specific PDF into Markdown and page images on demand. They do not automatically ingest the result into a knowledge base.
Baidu OCR document converter plugin
@xpert-ai/plugin-baidu-ocr registers one Baidu OCR system integration and two document converters in XpertAI. Both reuse the platform’s credential storage, file permissions, background document tasks, chunkers, and indexing pipeline instead of creating a separate processing path.
Converter choices
The side-by-side PDF preview requires a converter that emits paged layout data and coordinates. PaddleOCR‑VL provides that contract. Unlimited‑OCR consumes its stable Markdown result and does not make assumptions about undocumented JSON structures.
Supported input
The plugin follows the current Baidu document parsing contract for PDF, JPG/JPEG, PNG, BMP, TIF/TIFF, OFD, DOC/DOCX, TXT, WPS, and PPT/PPTX. This page focuses on PDF. Other formats can use the same conversion pipeline, but source coordinate overlays are currently rendered only when the original file is a PDF.Configure a Baidu OCR connection
- Have an organization administrator install and enable
@xpert-ai/plugin-baidu-ocr. - Open Settings > Integrations and create a Baidu OCR connection.
- Enter the API Key and Secret Key of a Baidu Cloud OCR application.
- Select an upload mode, polling interval, and task timeout, then save and validate the connection.
Upload modes
The default polling interval is 7 seconds and the default task timeout is 1,800 seconds. Adjust them for document size and provider response time when necessary.
Use the converters in a knowledge pipeline
- Open the Document Transformer node in a knowledge pipeline.
- Select Baidu PaddleOCR‑VL or Baidu Unlimited‑OCR.
- Select the Baidu OCR integration connection.
- Configure conversion options and complete the chunker, embedding, and knowledge base nodes.
- Test and publish the pipeline, then upload or reprocess a PDF.
Unlimited‑OCR currently exposes Preserve raw output, which stores Markdown, available JSON, and task responses.
Large PDFs
The current Baidu API accepts at most 500 PDF pages in one parsing task. For a larger PDF whose source bytes are available to XpertAI, the plugin:- splits it into bounded, ordered tasks by page count and upload size;
- submits and waits for each task;
- rebases every result to the original PDF’s global page numbers;
- merges Markdown, layout blocks, image assets, and source maps;
- retains batch indexes, source page ranges, task IDs, and log IDs for diagnostics.
MinerU document converter plugin
@xpert-ai/plugin-mineru connects MinerU to the XpertAI knowledge pipeline and supports both the MinerU official Precise Parsing API and a self-hosted mineru-api / mineru-router deployment. It reuses XpertAI integrations, credentials, workspace files, background tasks, chunking, and indexing.
Service modes
The plugin does not use the official lightweight Agent API. Knowledge ingestion needs larger document limits and structured result archives, so official mode uses the Precise Parsing API.
Configure a MinerU connection
- Have an organization administrator install and enable
@xpert-ai/plugin-mineru. - Open Settings > Integrations and create a MinerU connection.
- Select Official API or Self-hosted.
- Enter the service URL and Access Token. Official mode uses the default v4 URL when no URL is provided.
- In official mode, select a source mode and configure polling, task, and per-request timeouts.
- Save and validate the connection, then select MinerU in a knowledge pipeline Document Transformer node.
Official source modes
Official mode defaults to a 5-second polling interval, a 1,800-second task timeout, and a 1,200-second request timeout. The Access Token uses the platform credential mechanism and is not written to task logs or document metadata.
Transformer options
Official PDF workflow
In the recommended Auto mode, the plugin reads the PDF from the XpertAI workspace, obtains signed upload URLs from the MinerU batch API, uploads the file, polls the parsing result, and downloads the complete result archive into the knowledge workspace. The current MinerU Precise Parsing API limit is 200 pages and 200 MB per file. A larger PDF is divided into:- parts of at most 200 pages;
- parts targeted below approximately 190 MiB;
- upload batches of at most 50 parts;
- result metadata that retains source page ranges, batch IDs, batch indexes, and total batch count.
/file_parse from the existing XpertAI background document task, so the plugin does not create a private queue.
Output and security
MinerU returns Markdown to the existing chunker and can archive:content_list.jsonand the stablecontent_list_v2.json;middle.json,layout.json, and model output;- images and other result assets referenced by Markdown;
- server type, model, backend, batch, and source-page metadata.
MinerU currently preserves structured outputs and source page ranges but does not yet emit the paged coordinate contract required by the XpertAI linked PDF analysis preview. Therefore, MinerU documents do not show source coordinate overlays or side-by-side block synchronization in the current release. Their Markdown and final Chunks are still ingested, searchable, and manageable. A future converter that emits the common layout contract can use the same preview framework.
Linked PDF analysis preview
After a PDF has been fully processed with PaddleOCR‑VL, click Open analysis preview from the document list or open the Analysis preview tab in document details to inspect the original PDF and parsed result together.Side-by-side workspace
- Original pane: renders the source PDF and overlays recognized rectangles or polygons.
- Analysis result pane: shows Markdown, structure, tables, images, and JSON by page.
- Resizable split: drag the divider to resize the panes or use the keyboard arrow keys.
- Mobile layout: switch between the Original and Analysis result panes.
Layout types
Analysis blocks use provider-neutral categories:Click and scroll synchronization
- Scrolling the original PDF moves the analysis result to the same page and a similar within-page position.
- Scrolling the analysis result synchronizes the original pane in the other direction.
- Clicking a source overlay selects the corresponding analysis block and scrolls the result pane to it.
- Clicking an analysis block highlights the corresponding region on the source page.
- The active page and selected block are stored in the page URL, allowing position restoration after refresh or when an authorized user opens the link.
Analysis views
Relationship to final knowledge chunks
Analysis preview shows layout blocks recognized by the converter before text splitting. The Chunks tab shows the final knowledge chunks created by the configured chunker for indexing and retrieval. They remain distinct data views. When PaddleOCR‑VL merges layout content into Markdown, it creates a source map. After splitting, a final chunk can retain:pageStartandpageEndsource-page boundaries;pagefor a single-page chunk;- source layout block IDs contributing to the chunk;
- related assets such as parsed images.
Large-document performance
The preview does not load an entire large document at once:- it first reads a lightweight page index;
- analysis pages load in a window around the active page;
- only a bounded PDF page range is rendered;
- raw JSON loads when the JSON tab and page are reached;
- the original PDF supports byte-range reads.
Security and consistency
- Original PDFs, analysis pages, and image assets use knowledge base access control.
- Clients receive opaque asset IDs rather than server file paths.
- Paged analysis snapshots are checked by size and hash.
- A source-content change or failed snapshot integrity check prevents the old preview from being presented as valid. After changing converter settings, run a full reprocess to create a matching new preview.
- If rendered PDF proportions do not match recognition coordinates, XpertAI hides overlays and shows a warning instead of presenting misleading boxes.
Pdfium agent tool plugin
@xpert-ai/plugin-pdfium is an agent tool plugin. After it is enabled, add the PDF to Markdown built-in toolset to a digital expert. Its tool name is pdf_to_markdown.
The agent can read a PDF from:
- a file URL;
- a workspace file path;
- Base64, Buffer, or Uint8Array content;
- one file object or a list of file objects.
- aggregate Markdown with page images and extractable text;
result.md;page-1.png,page-2.png, and other page images;- file paths, workspace URLs when available, MIME types, and image page numbers.
Choosing a PDF capability
Continue with Maintaining Documents, Knowledge Pipeline Orchestration, and Recall Test.