Papyrus

•

Converts diverse document types into structured, agent-ready Markdown, preserving format and adding provenance for AI agent consumption.

Papyrus is engineered as a universal document ingestion engine, tackling the fundamental challenge of unlocking knowledge embedded in various file formats for AI agents and RAG systems. It transforms virtually any document type—including PDFs, Word, PowerPoint, Excel, HTML, and EPUB—into clean, structured Markdown that models can effectively utilize. Unlike naive text extraction, Papyrus meticulously preserves document structure, recovering headings, tables, and correct reading order, while also providing crucial provenance like page anchors and SHA256 hashes. This ensures high-fidelity, deterministic, and reproducible conversions without involving an LLM in the core conversion path, providing a reliable foundation for AI applications.

Características Principales

01Preserves original document structure, extracting headings, intelligently formatting tables, and ensuring geometric reading order.
02Includes an MCP server and HTTP API for seamless integration, allowing agents to inspect, convert, and chunk documents.
03Produces heading-aware chunks (`chunks.jsonl`) optimized for Retrieval Augmented Generation (RAG) systems.
040 GitHub stars
05Supports a wide array of file formats including PDF, DOCX, PPTX, XLSX, HTML, EPUB, and many more.
06Generates agent-ready Markdown output with page anchors and comprehensive provenance metadata.

Casos de Uso

01Converting various file types into a unified, model-readable Markdown format for knowledge bases and content management systems.
02Preparing high-quality, structured content for building robust Retrieval Augmented Generation (RAG) indices.
03Ingesting diverse unstructured documents into AI agents for enhanced reasoning and analytical tasks.