Auto-tagging documents in Paperless-ngx with Ollama
- Models & engines
- Ollama on your own hardware (or a model service in Germany)
- Key gotcha
- Reliable for clear documents, less so for unusual correspondence, so keep a review inbox
What they built
Paperless-ngx 3.0 added optional LLM features: suggested title, sender, document type and keywords for new documents, plus a document chat.
Invoices, contracts and official notices contain personal data, so the article recommends running the model locally via Ollama so documents never leave the premises. The AI complements the rule-based classification; it doesn't replace review.
Setup
- Paperless-ngx 3.0 or newer
- Ollama on your own hardware (or a model service in Germany)
Gotchas
- Reliable for clear documents, less so for unusual correspondence, so keep a review inbox
“The AI complements the classic rule-based and learned classification, but does not replace review.”— bettersorted.de
Do it yourself
- Run Ollama and pull a model
- Enable the AI features via PAPERLESS_AI_* settings with the ollama backend
- Keep your list of senders, document types and tags manageable
- Review suggestions for the first weeks and always for tax documents
- Use rules for clear cases and AI for unclear ones; measure how often suggestions are right
PAPERLESS_AI_ENABLED=true
PAPERLESS_AI_LLM_BACKEND=ollama
PAPERLESS_AI_LLM_MODEL=<your-ollama-model>
PAPERLESS_AI_LLM_ENDPOINT=http://ollama:11434Similar setups
PaperCortex: Local AI Receipt Extraction and Bank Matching
An open-source local AI layer for Paperless-ngx. It answers plain-English questions, extracts receipt line items, matches bank transactions and exports to DATEV.
Paperless AI on an 8 GB RTX 3060 Ti shared with Frigate
Gemma 3 4B with embeddinggemma answers over 1,318 documents in about 5 seconds, on a GPU that's also running Frigate and Plex.
A CPU-only PDF question-answering API with Ollama, Qwen2.5 1.5B and ChromaDB
A developer who wanted to keep documents inside the private network built a small RAG app on a PC with no active GPU: PDFs are indexed into ChromaDB and a local FastAPI endpoint answers questions with Qwen2.5 1.5B on Ollama.
Hearth: a household assistant on Ollama, and proving nothing leaves the house
Hearth answers family questions from manuals and papers with citations, handles voice, notes and reminders, and runs on one home computer; its builders tested small models, prompt injection, and three ways of proving no data leaves.