xerj vs xberg

Two of the top projects in RAG and search, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.

11st of 33 in RAG and search

xerj

Single-binary Rust search engine with Elasticsearch API, MCP server and agent memory

#44th of 33 in RAG and search

xberg

Rust document extraction engine with OCR, tables and 15 language bindings

Verdict

xerj ranks higher, 89 to 83. Of the 4 score parts we measure for both, xerj leads on 2, xberg on 1 and 1 is even.

  • Adoptionxerj leads by 13 points, 90 to 77.
  • FreshnessEven at 100.
  • Maintenancexberg leads by 3 points, 100 to 97: close to even.
  • Agent-readyxerj leads by 30 points, 30 to 0: a wide gap.

Pick xerj if you are

Engineers adding code search and memory to agents, or replacing Elasticsearch

  • Single Rust binary, no JVM; reports 1448 of 1458 Elasticsearch YAML conformance tests passing
  • `xerj autoindex` infers datasets and indexes code with tree-sitter symbols, no schema needed

Pick xberg if you are

Developers feeding documents into RAG or extraction pipelines in any language

  • 107 formats, including nested archives guarded by zip-bomb and depth limits
  • OCR via Tesseract, PaddleOCR, Candle or VLM backends with fallback chains
xerj vs xberg: score parts and facts
What we comparexerjxberg
Score parts, out of 100
Adoption90, widely used77, popular
Freshness100, active100, active
Maintenance97, healthy100, healthy
Agent-ready30, minimal0, none
Facts from GitHub and the README
Stars21.5k9.6k
LicenseApache-2.0 (permissive)MIT (permissive)
Last commitNov 2026Nov 2026
Last releaseNov 2026Nov 2026
LanguageRustRust
DockerNoYes
GPUNot neededOptional
arm64 or Apple SiliconMentionedMentioned

xerj

XERJ is a Rust search engine that autoindexes folders of code, docs, logs, CSV, SQLite and PDFs for BM25, vector and hybrid search behind an Elasticsearch-compatible API. It also exposes an MCP server and a /_memory namespace API so coding agents can retrieve passages with file:line instead of grepping. Release binaries from rc.101 add XERJ Query-1, a proprietary model that answers questions over stored facts.

Who it is for: Engineers adding code search and memory to agents, or replacing Elasticsearch

Strengths

  • Single Rust binary, no JVM; reports 1448 of 1458 Elasticsearch YAML conformance tests passing
  • `xerj autoindex` infers datasets and indexes code with tree-sitter symbols, no schema needed
  • Default lexical embedder runs offline; neural embedder is opt-in at about 90 MB download
  • Ships MCP tools and /_memory API for agent long-term memory

Weaknesses

  • XERJ Query-1 and /_facts are absent from the public source; release binaries only
  • Query-1 model crates are proprietary; training and evaluation data are not public
  • Query-1 mishandles sums and declines all 20 questions on a 95,000-fact namespace
  • rc.101 upgrades the data directory to format 4; rc.100 cannot reopen it
  • Rust, XERJ Query-1 (release binaries only), lexical embedder (default), neural embedder (opt-in)

xberg

Xberg is a Rust engine that detects and reads 107 document formats (PDF, Office, images, email, archives, audio, URLs, source code) and returns text, tables, metadata or schema-driven JSON. It adds OCR backends, layout and table models, chunking and embeddings, and runs as a library, a 14-command CLI, a REST server or an MCP server. It is the v1 rebrand of Kreuzberg.

Who it is for: Developers feeding documents into RAG or extraction pipelines in any language

Strengths

  • 107 formats, including nested archives guarded by zip-bomb and depth limits
  • OCR via Tesseract, PaddleOCR, Candle or VLM backends with fallback chains
  • Bindings for 15 languages plus CLI, REST (`xberg serve`) and MCP stdio server
  • MIT license; CPU by default, no GPU required, with content-hash caching

Weaknesses

  • URL ingestion, transcription and reranker need Cargo features in from-source builds
  • Structured extraction needs an external LLM such as Ollama, vLLM or a hosted API
  • v1 rebrand of Kreuzberg; migration path from the old package is not described
  • Bindings are generated by alef, so each language package depends on that toolchain
  • Rust, Whisper ONNX (tiny to large-v3), PaddleOCR, PP-DocLayout-V3, RT-DETR
  • Needs Tesseract (optional OCR backend), Ollama, LM Studio, vLLM or hosted LLM (structured extraction)
  • Docker

More in RAG and search

Building with these?

We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.