PDF Parser
Configure local PDF parsing or a self-hosted Open MinerU service for reading research papers
The PDF parser converts uploaded papers into Markdown and indexes them in the knowledge base so AI agents can search and read the full text. Two engines are available at runtime:
local(default): Uses firecrawl-anydoc locally to parse text-based PDFs with no external service or API key required.open_mineru: Calls a self-hosted MinerU service with OCR and figure extraction, suited for scanned pages and complex layouts.
After parsing, the original PDF, generated Markdown, and any extracted images are stored in S3/RustFS and indexed into the knowledge base automatically.
[pdf_parser]
engine = "local"
batch_size = 5| Key | Default | Description |
|---|---|---|
engine | local | Use local for text-based PDFs, or open_mineru when OCR or image extraction is needed |
batch_size | 5 | Batch size when writing document chunks into the knowledge base |
open_mineru.api_url | http://localhost:8000 | Open MinerU API root URL |
open_mineru.timeout | 600 | Request timeout in seconds |
The local engine runs strictly offline without OCR and never sends documents to a cloud service. PDFs with scanned pages will fail and suggest switching to open_mineru. While mineru, doc2x, and grobid are reserved in configuration, only local and open_mineru are active in the current runtime.