Paperless-ngx and Paperless-AI setup with Docker

Learn to set up a document archive on Unraid with Docker, add automatic AI tagging, and query documents. The demo uses ports 8000 and 8001.

Player not loading? Watch on YouTube

This tutorial builds a self-hosted document archive with Paperless-ngx and Paperless-AI on Unraid. The speaker says the setup can also run on other systems that support Docker, with adjustments to the storage paths and shared folders. The stack includes PostgreSQL, Redis, Apache Tika and Gotenberg. The Docker Compose file used in the demonstration is available through the speaker's Patreon guide.

The walkthrough covers a network consume folder for incoming files, separate document storage, database credentials, container health checks and an administrator account. Paperless-ngx uses port 8000 in this configuration; Paperless-AI uses 8001. An API token connects the two applications.

Paperless-ngx extracts document text for search. The speaker configures Paperless-AI to assign tags, classify document types, generate titles and detect correspondents. OpenAI handles the demonstrated AI processing. Ollama is presented as an option for local AI, but the tutorial does not demonstrate that configuration.

Two uploads show ingestion through the browser and the shared folder. The tutorial then demonstrates automatic metadata, document chat and archive-wide RAG queries with source citations. It closes with workflow triggers and a brief discussion of IMAP ingestion and permissions. The speaker notes that Paperless-AI lacks the user access management available in Paperless-ngx.