# Xberg Capabilities

Xberg extracts text, tables, metadata, and chunks/embeddings from documents and source code. The same Rust core powers the open-source library, Xberg Pro (self-hosted, single container), and the managed cloud API (Xberg Enterprise).

Fully custom embedding providers are available in the self-hosted library but not exposed on the cloud — see the per-feature notes below.

## Supported file formats (101 formats, 115 file extensions)

**Documents**: PDF (native and scanned), EPUB, FB2, HWP/HWPX, RTF, plain text, Markdown, CommonMark, MDX, Djot, RST, Org-mode, Quarto (QMD), R Markdown (RMD), LaTeX, Typst, JATS, DocBook, OPML.

**WordPerfect**: WPD, WP, WP5, WP6.

**Microsoft Office**: DOCX, DOCM, DOTX, DOTM, DOC, DOT, XLSX, XLSM, XLSB, XLS, XLA, XLAM, XLTX, XLT, PPTX, PPTM, PPT, PPSX, POTX, POTM, POT.

**Apple iWork**: Pages, Numbers, Keynote.

**OpenDocument**: ODT, ODS, ODP.

**Images**: PNG, JPG/JPEG, GIF, WEBP, BMP, TIFF/TIF, JP2/J2K/J2C/JPX/JPM/MJ2, JBIG2/JB2, PNM/PBM/PGM/PPM, SVG.

**HEIF / AVIF**: HEIC, HEICS, HEIF, AVIF, AVCS.

**Audio / video** (speech transcription): MP3, MPGA, M4A, WAV, WEBM, MP4, MPEG.

**Web / structured**: HTML/HTM, XML, JSON, JSONL/NDJSON, YAML/YML, TOML.

**Tabular**: CSV, TSV.

**Email**: EML, MSG, PST.

**Archives**: ZIP, TAR, TGZ, GZ, 7Z (extracted recursively).

**Bibliographic**: BIB, RIS, NBIB, ENW.

**Notebooks**: IPYNB.

**Database**: DBF.

The full canonical list is generated from the xberg core (`xberg formats`) — see `src/constants/supported-formats.json` in the marketing site source.

## Code intelligence (371 programming languages)

Extract functions, classes, imports, and symbols from source code across 371 languages. Output is structured for semantic chunking and RAG ingestion.

## Extraction features

- **OCR for scanned PDFs and images**. Tesseract, PaddleOCR, Candle, and VLM (vision-language-model) backends are all accepted, both on the cloud and self-hosted. The `vlm` backend requires an `ocr.vlm_config` block.
- **Layout detection**: page structure, reading order, headings, paragraphs.
- **Table extraction**: structured rows and columns from PDFs, Office docs, and HTML.
- **Metadata extraction**: title, author, subject, page count, language, document properties.
- **Chunking**: configurable text chunking for downstream RAG pipelines (`extraction_config.chunking`).
- **Embeddings**: inline embedding generation via `extraction_config.embedding`. Cloud uses managed model presets; the self-hosted library can target arbitrary providers/local models.
- **Token reduction, language detection, image extraction, force/disable OCR** — all expressible via `ExtractionConfig`.
- **NER (named entity recognition)** — in the OSS toolbox.

## Performance characteristics

- Rust core; CPU-optimised binary, no GPU required for default OCR.
- Most documents process in milliseconds.
- Designed for batch — thousands of pages per hour per API key on the cloud platform.
- Cloud autoscales on queue depth so bursty traffic doesn't stall.

## Polyglot SDKs (15)

Native bindings shipped for: Rust, Python, Node.js, WebAssembly, Java, Go, C#, PHP, Ruby, Elixir, Dart, Kotlin, Swift, Zig, C (FFI).

## Output

- JSON response with full document structure (text, tables, images, metadata, chunks, embeddings when configured).
- Webhook delivery for async cloud workflows. Body is HMAC-SHA256-signed when a `webhook.secret` is supplied; signature header is `X-Webhook-Signature: t=<unix seconds>,v1=<hex>` over `"<t>.<body>"`.
- Direct integration with embeddings pipelines and RAG frameworks.

## See also

- [Pricing](https://xberg.io/llms/pricing.md)
- [Extraction API](https://xberg.io/llms/api.md)
- [Getting started](https://xberg.io/llms/getting-started.md)
