Crawl, extract, enrich, retrieve. for AI agents

A self-hostable document intelligence and RAG platform. Open-source primitives, one platform you run, RAG built in.

  • 107file formatsPDFs, Office docs, images and email, returned as clean text and tables.
  • 372programming languagesParsed for code-aware retrieval, search and analysis.
  • 174LLM providersSummarize, classify and embed with the model you already use.
  • 15language bindingsNative SDKs, so you can call Xberg from the stack you build on.

Four stages. One backend. Open underneath.

  1. Crawl the web over resolver-protected HTTP.

    crawlberg

    resolve

    public address, allowed

    request

    GET vendor.example/invoice.pdf

    status

    200 OK

    type

    application/pdf

    fetched

    invoice_vendor_a.pdf · fetched

  2. Documents, scans and source code. Lossless HTML.

    xberghtml-to-markdowntree-sitter-language-pack

  3. LLM structured extraction. VLM OCR. Summarize. Redact.

    xbergliter-llm

  4. Collections. Hybrid retrieval. Reranking.

    services/rag

Try every use case on
a real document.

Everything teams build on the pipeline — run any of them and see structured output. No account, no setup.

RAG Pipeline Ingestion

Turn a pile of PDFs, Office docs, and HTML into clean, chunked, embedded data for your vector database — in one call.

RAGChunkingEmbeddings

Pipeline stages

AcquireExtractEnrichEmbed & Retrieve

Input · Documents → chunked, embedded data

10-K excerpt.pdfpdf
output.json

Your output will appear here

Choose a sample or upload a document, then run the extraction to inspect the result.

Run to extract a real document through the live API — no account, no setup.

Fits into
your workflow.

Drop-in integrations for the AI frameworks and tools you already build with.

langchain.py
from langchain_xberg import XbergLoader
 
# Load any document as LangChain Documents
loader = XbergLoader("report.pdf")
docs = loader.load()
 
# Drop straight into your vector store
db.add_documents(docs)
pip install langchain-xberg

One API.
Every language.

Install Xberg in your stack and call the same extraction API — from Python to Rust to the browser.

15 languages

Rust, Python, Node.js, WASM, Java, Go, Ruby, and more.

372 code languages

Functions, classes, imports, symbols — all parsed.

Docker & CLI

Run our images or the single-binary CLI.

MIT licensed

Free for personal, internal, and commercial use.

terminal — Python
pip install xberg

Adopt the
way that fits.

Open source

Core

The open-source extraction engine: 107 file formats and bindings for 15 languages. Embed it in your app or self-host the extraction server.

Get the libraries
Self-hosted · One container

Pro

The full platform as one container in your own cloud, with single sign-on, an audit log and the AI models you host.

Get in touch
Self-hosted · Distributed

Enterprise

For organizations with many teams: SAML and SCIM, workers that scale with the load, data rooms, and on-prem installs.

Get in touch

Why Xberg?
Built for AI pipelines.

Document Extraction

Extract text and tables from native and scanned documents for search, retrieval, and downstream processing.

extracted

invoice_vendor_a.pdf · extracted

Batch-Processing at Scale

Effectively process large numbers of documents in bulk. Xberg Enterprise scales workers with queue depth in infrastructure you operate.

2,847 / 10,000

batch_2026_q1 · 10,000 documents

Embeddings

Embeddings via a Rust-native ONNX engine. 4 presets out of the box, extensible to any model. No separate embedding pipeline needed.

supplier

[ 0.021 -0.118 0.334 … ]

invoice_no

[ -0.204 0.077 -0.512 … ]

bill_to

[ 0.396 -0.041 0.188 … ]

line_items

[ 0.112 0.463 -0.229 … ]

total_due

[ -0.058 0.291 0.407 … ]

1024-dim

invoice_vendor_a.pdf · 5 region vectors

Chunking and Metadata

Semantic chunking across code, markdown, and plain text. Token reduction, keyword extraction, and rich metadata — structured output ready for any AI pipeline.

chunk 1/5128 tok
chunk 2/5204 tok
chunk 3/5512 tok
chunk 4/5186 tok
chunk 5/594 tok
5 chunks

invoice_vendor_a.pdf · semantic chunks, excerpt

Code Intelligence

Extract functions, classes, imports, and symbols from code files across 372 programming languages. Structured output, ready for semantic chunking and RAG pipelines.

importfrom xberg import Client
· 
classclass InvoiceParser:
fn def parse(self, path):
· doc = Client().read(path)
· return doc.fields
· 
fn def total(self, doc):
· return doc['total_due']
372 languages

invoice_parser.py · symbols extracted

LLM-Powered Intelligence

Go beyond extraction. Use vision language models as an OCR backend, extract structured JSON from documents using a schema, and generate embeddings — all via 174 LLM providers, including local models with zero API key configuration.

supplierstringHelvetica Press GmbH
invoice_nostringINV-A-2026-0442
bill_tostringNorthwind Analytics Ltd
line_itemsarray4 rows
total_duenumber3276.07
schema matched

invoice_vendor_a.pdf · schema-driven JSON

Beyond the
extraction box.

Textract, Document AI and Azure DI stop at OCR — and send your files to their cloud. Xberg runs the whole pipeline, open source, on your own infrastructure.

Scroll sideways to compare with Google, Amazon and Azure.

CapabilityXbergGoogle Document AIAmazon TextractAzure Doc Intelligence
DeploymentSelf-hostedCloud only (GCP)Cloud only (AWS)Cloud only (Azure)
Source modelOpen sourceProprietaryProprietaryProprietary
Pipeline scopeAcquire → retrieveExtract / OCRExtract / OCRExtract / OCR
Data handlingSelf-hosted: stays in your infraSent to vendorSent to vendorSent to vendor
Formats107 · 372 code langsDocs / formsPDF / imagesDocs / forms
Code intelligenceBuilt in———
PricingFree Core; Pro and Enterprise licensedPer pagePer pagePer page

See the published extraction benchmark for measured latency, throughput, and accuracy.

October 9, 2026 benchmark run: 82 documents, 1,080 extractions. Harness · Raw results

See the head-to-head benchmarks

Built for how teams
actually work.

RAG Systems

Feed your vector database with semantically accurate document chunks. Preserve table structure so your AI understands relationships.

Document Classification & Routing

Extract content, metadata, and structure to power smart routing. Automatically categorize incoming documents. Reduce manual sorting and classification workflows.

Compliance & Document Review

Extract and structure compliance documents, contracts, and regulatory filings. Preserve table relationships and metadata for audit trails. Support for scanned documents with OCR means nothing falls through the cracks.

See how teams put document intelligence to work. Explore all use cases

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.