An automated document analyzer for Paperless-ngx using OpenAI API, Ollama, Deepseek-r1, Azure and all OpenAI API compatible Services to automatically analyze and tag your documents.
npm install paperless-ai๐ Paperless-AI
โ ๏ธ IMPORTANT NOTICE:
This repo is currently not maintained. I appreciate all the efforts from the community pushing PRs and creating issues. I'm currently rewriting the entire codebase with a more stable, up-to-date architecture. But I'm limited to evenings, and doing support here while also working on the rewrite just isn't feasible for me. With the upcoming official AI integration in Paperless-ngx itself, I'm also not sure if I'll complete the rewrite or continue maintaining this repo at all.
Paperless-AI is an AI-powered extension for Paperless-ngx that brings automatic document classification, smart tagging, and semantic search using OpenAI-compatible APIs and Ollama.
It enables fully automated document workflows, contextual chat, and powerful customization โ all via an intuitive web interface.
๐ก Just ask:
โWhen did I sign my rental agreement?โ
โWhat was the amount of the last electricity bill?โ
โWhich documents mention my health insurance?โ
Powered by Retrieval-Augmented Generation (RAG), you can now search semantically across your full archive and get precise, natural language answers.
โจ Features
๐ Automated Document Processing
- Detects new documents in Paperless-ngx automatically
- Analyzes content using OpenAI API, Ollama, and other compatible backends
- Assigns title, tags, document type, and correspondent
- Built-in support for:
- Ollama (Mistral, Llama, Phi-3, Gemma-2)
- OpenAI
- DeepSeek.ai
- OpenRouter.ai
- Perplexity.ai
- Together.ai
- LiteLLM
- VLLM
- Fastchat
- Gemini (Google)
- ...and more!
๐ง RAG-Based AI Chat
- Natural language document search and Q&A
- Understands full document context (not just keywords)
- Semantic memory powered by your own data
- Fast, intelligent, privacy-friendly document queries

โ๏ธ Manual Processing
- Web interface for manual AI tagging
- Useful when reviewing sensitive documents
- Accessible via
/manual
๐งฉ Smart Tagging & Rules
- Define rules to limit which documents are processed
- Disable prompts and apply tags automatically
- Set custom output tags for tracked classification
๐ Installation
โ ๏ธ First-time install: Restart the container after completing setup (API keys, preferences) to build RAG index.
๐ Not required for updates.
๐ Installation Wiki
๐ณ Docker Support
- Health monitoring and auto-restart
- Persistent volumes and graceful shutdown
- Works out of the box with minimal setup
๐ง Local Development
# Install dependencies
npm install
# Start development/test mode
npm run test
๐งญ Roadmap Highlights
- โ Multi-AI model support
- โ Multilingual document analysis
- โ Tag rules and filters
- โ Integrated document chat with RAG
- โ Responsive web interface
๐ค Contributing
We welcome PRs and contributions!
# Fork, clone, then:
git checkout -b feature/YourFeature
# After changes:
git commit -m "Add YourFeature"
git push origin feature/YourFeature
Then open a Pull Request via GitHub.
๐ Support & Community
๐ License
This project is licensed under the MIT License. See LICENSE for details.