Document intelligence & RAG

Crawl, extract,enrich, retrieve.for AI agents

A self-hostable document intelligence and RAG platform — an integral component in AI meshes. Open-source primitives, one managed backend. 101 file formats, 371 programming languages, RAG built in.

101file formatsEXTRACT
371programming languagesCODE INTELLIGENCE
165LLM providersENRICH
15language bindingsOPEN SOURCE
101file formatsEXTRACT
371programming languagesCODE INTELLIGENCE
165LLM providersENRICH
15language bindingsOPEN SOURCE
101file formatsEXTRACT
371programming languagesCODE INTELLIGENCE
165LLM providersENRICH
15language bindingsOPEN SOURCE
101file formatsEXTRACT
371programming languagesCODE INTELLIGENCE
165LLM providersENRICH
15language bindingsOPEN SOURCE
The pipeline

Four stages. One backend. Open underneath.

01

Acquire

Crawl the web. HTTP + headless Chrome.

02

Extract

101 formats. 371 code languages. Lossless HTML.

03

Enrich

LLM structured extraction. VLM OCR. Summarize. Redact.

04

Embed & Retrieve

Collections. Hybrid retrieval. Reranking.

services/rag
Live playground

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.

Integrations

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
For developers

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.

371 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
Two doors

Adopt the
way that fits.

Free · Self-host

Open source

All primitives, in 15 languages. Embed in your app or self-host the extraction server. Use any subset of the pipeline.

Get the libraries
Invitation · Curated

Design Partner program

Direct roadmap input, early access to new pipeline stages, 24-month locked pricing. We work closely with a small cohort across commercial, non-profit, and research teams. Free-tier access available at our discretion in exchange for attribution.

Apply for partnership
Capabilities

Why Xberg?
Built for AI pipelines.

01

Speed That Unblocks Your Team

Process documents in milliseconds instead of seconds. Your RAG pipeline moves at the speed of API calls, not extraction bottlenecks. Index millions of documents without waiting weeks for processing to complete.

142 ms

invoice_vendor_a.pdf · 142 ms end to end

02

Batch-Processing at Scale

Effectively process large numbers of documents in bulk. Xberg is built for batch processing, and our cloud infrastructure is designed to scale.

2,847 / 10,000

batch_2026_q1 · 10,000 documents

03

Embeddings

Ultra-fast 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

04

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

05

Code Intelligence

Extract functions, classes, imports, and symbols from code files across 371 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']
371 languages

invoice_parser.py · symbols extracted

06

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 165 LLM providers, including local models with zero API key configuration.

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

invoice_vendor_a.pdf · schema-driven JSON

Comparison

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.

CapabilityXbergGoogle Document AIAmazon TextractAzure Doc Intelligence
DeploymentSelf-host or managedCloud only (GCP)Cloud only (AWS)Cloud only (Azure)
Source modelOpen sourceProprietaryProprietaryProprietary
Pipeline scopeAcquire → retrieveExtract / OCRExtract / OCRExtract / OCR
Data residencyStays in your infraSent to vendorSent to vendorSent to vendor
Formats101 · 371 code langsDocs / formsPDF / imagesDocs / forms
Code intelligenceBuilt in
PricingUsage or self-hostPer pagePer pagePer page

Want the numbers — latency, throughput, accuracy? Every figure is reproducible from our open-source harness.

See the head-to-head benchmarks
Use Cases

Built for how teams
actually work.

01

RAG Systems

Feed your vector database with semantically accurate document chunks. Preserve table structure so your AI understands relationships. Bulk-process your knowledge base in hours instead of weeks.

02

Document Classification & Routing

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

03

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

Trusted by

Be one of our first design partners. Want your logo here? Apply for partnership

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

Cookies

We value your privacy

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