# Lemmary — a self-hosted document archive that turns scans, PDFs, and office files into an organised library you can search, review, and research in plain language. — retained record

> Retained reddit record from reddit:selfhosted.

Canonical: https://highsignal.app/data/records/5cd368cd08737db1

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:selfhosted)  published 2026-09-16 15:33 ingested 2026-09-17 02:37

[original source ↗](https://www.reddit.com/r/selfhosted/comments/1wi0kh9/lemmary_a_selfhosted_document_archive_that_turns/)

## retained text



```
Hi fellow selfhosters! My name is Alexander. I’ve been a software developer (mostly web) for the last ~18 years. I live in Germany, a country well known for its love of bureaucracy, physical letters, and paper! :D

After looking into self-hosted document archive options (including Paperless-ngx in early 2026 - I missed having AI features and wanted a more modern UI), I decided to build my own MVP. I was really happy with the result and continued to develop/improve it.

So I’d like to introduce Lemmary — a self-hosted document archive. You drop in PDFs, scans, images, and Office files, and it OCRs them, extracts metadata, and provides full-text and semantic search across your whole library. With deep AI integration and a built-in RAG system, you can even "ask" your archive questions in natural language.

**Site:** https://lemmary.app · **Docs:** https://lemmary.app/docs/ · **GitHub:** https://github.com/buldezir/lemmary

## What it does

- **Capture** — PDFs, scans, images, text, spreadsheets, Word docs.
- **Understand** — OCR for scanned pages, then a model proposes title, date, document type, correspondent, tags and a summary. Every field is editable, and the extracted text stays visible next to the original, so you can check what it actually read.
- **Find** — full-text search, filters and a timeline. Or **Deep Research**: ask a question in plain language and it reads across hundreds of documents, streams its work, counts and totals what it finds, and links every claim back to the documents it used. Chats are saved and resumable.
- **Data portability** — export originals, OCR text, metadata, thumbnails and taxonomy as one zip. It also speaks enough of the **Paperless-ngx API** to work with existing clients (swift-paperless on iOS, for example), and can import an existing Paperless-ngx instance.

Screenshots of all features: https://lemmary.app/docs/screenshots.html

## Self-hosting details

- One container. `docker compose up -d`, everything stateful lives on one volume (`/app/pb_data`): SQLite database, original files, thumbnails, search indexes.
- Original files also can be stored in S3-compatible storage.
- Go backend, PocketBase, bleve + FAISS for vector search, poppler for PDF work. Published for `linux/amd64` and `linux/arm64`.
- Passkeys and OAuth2/SSO for sign-in if you want them.

## About the AI part (I know this sub's feelings on it)

The AI is doing OCR, metadata extraction and search — not writing your documents. And you don't have to send anything anywhere:

- **OCR** can run locally via a **Docling sidecar** — no API key, no published port, nothing leaves the host.
- **Embeddings** can run on your own hardware.
- **The LLM** can be any OpenAI-compatible endpoint, so point it at your own llama.cpp / Ollama / vLLM box.

Hosted providers are supported too (Mistral covers OCR + LLM + embeddings on one key, which is the easiest start), and you can mix — local OCR, hosted LLM, whatever fits your threat model.

## Caveats

- A fully local setup costs real resources: Docling's image is multiple GB and OCR takes seconds per page rather than milliseconds. The hosted path is much easier to start with.
- Paperless-ngx API compatibility [is partial — enough for browsing and uploads from existing clients, not every endpoint](https://lemmary.app/docs/paperless_ngx.html).
- Embeddings add roughly 30–60 KB per document to the database, so size the volume for more than just the files.

## Where it's at

It works and I use it daily on my own archive.
Also my friend and author of Dawarich u/Freika is using it for his business docs.
My other friend uses it for his lawyer/court docs and research on them.

What I'd most like feedback on:

- Does Deep Search hold up on a big/messy library?
- Anything missing that would stop you moving off Paperless-ngx?
- Rough edges in the setup wizard — first-run experience is the thing I can't judge myself anymore.

**Site:** https://lemmary.app · **Docs:** https://lemmary.app/docs/ · **GitHub:** https://github.com/buldezir/lemmary
```



document fetched 2026-09-17 00:29 · canonical https://reddit.com/r/selfhosted/comments/1wi0kh9/lemmary_a_selfhosted_document_archive_that_turns
