Skip to content

File types

Pagelore has 24 loaders covering 266 file extensions. Each loader returns the text as sections that keep their location, so every chunk can be cited.

GET /api/v1/data/file-types lists every type and whether it is usable on this server, with the strategies, defaults and limits.

Out of the box

Kind Types Location kept
Documents PDF, Word (.docx), RTF, OpenDocument (.odt, .odp, .ods), PowerPoint (.pptx), EPUB, HTML Page, slide, chapter, headings
Text Plain text, Markdown / MDX, reStructuredText, LaTeX, YAML, TOML, INI, XML, logs Headings (Markdown)
Subtitles .srt, .vtt Start and end time
Source code About 60 languages Language, class and function boundaries (with the code strategy)
Structured data Excel (.xlsx, .xls), CSV / TSV, JSON / JSON Lines, SQLite databases, Jupyter notebooks Sheet, table, rows, JSON path, cell
Mail .eml, .mbox Message
Archives ZIP, TAR (also compressed) Each file inside is its own document

Files with an unknown extension are sniffed and read as text if they are text.

With an extra

Type Needs
Images, scanned PDFs (OCR) --extra ocr and the tesseract program. OCR_LANGUAGES (default eng), for example eng+ara with tesseract-ocr-ara installed
Legacy .doc, .ppt, .xls-era formats, .key, .pages, ... LibreOffice (soffice on the PATH; libreoffice-core in Docker)
Parquet, Feather / Arrow, ORC --extra parquet
Outlook .msg --extra outlook (extract-msg is GPL-3.0)
Audio and video --extra audio (local Whisper through faster-whisper, not on Python 3.15 yet), or TRANSCRIPTION_PROVIDER=OPENAI
Everything Docling reads --extra docling (Docling)

Transcription

Setting Default
TRANSCRIPTION_PROVIDER LOCAL LOCAL (faster-whisper) or OPENAI (any OpenAI-compatible /audio/transcriptions)
TRANSCRIPTION_MODEL base (local) tiny, base, small, medium, large-v3, turbo, or the API's model
TRANSCRIPTION_URL https://api.openai.com/v1 For OPENAI
TRANSCRIPTION_API_KEY For OPENAI
TRANSCRIPTION_DEVICE auto cpu, cuda, auto (local)

Each transcript chunk keeps start_time / end_time, and its citation shows the time range.

PDFs

  • Text layer: read page by page with pypdf. Each page is a section, so citations have page numbers.
  • Headers and footers: lines repeated at the top or bottom of at least 30% of the pages (running titles, page numbers) are removed before chunking. document_metadata.headers_footers_removed shows what was removed. Set PDF_REMOVE_HEADERS_FOOTERS=false to keep them.
  • Scans: with the ocr extra, pages without a text layer (fewer than 20 characters) are rendered at 300 dpi and go through Tesseract.
  • Two-column layouts and tables are read best by Docling, which puts the text in reading order and rebuilds tables.

Spreadsheets and tables

Excel, CSV, ODS, Parquet and SQLite tables become table sections: the table strategy groups rows and repeats the header in every chunk, so each chunk can be understood on its own. Each chunk records row_start / row_end and its sheet or table name.

Excel formulas

Formula cells are read from the values Excel cached on its last save. A file written by a script that was never opened in Excel can have empty formula cells.

What is not read

  • Encrypted PDFs and archives.
  • Archives nested inside archives.
  • Web pages that build their content with JavaScript: pages are read as served.