Categories
Self-Hosted Document Management OCR Document Automation Paperless-ngx Metadata Extraction LLM Integration AI Document ProcessingStars
Forks
Watchers
Developer links
Paperless Starfruit
Tag a document in paperless-ngx with a single label and Paperless Starfruit hands it back with a clean title, tags, correspondent, and date, using AI models you connect with your own keys. A background poller finds the tagged documents, optionally re-reads each original with Mistral OCR or a vision model when paperless-ngx's own text falls short, then makes one model call whose answer is checked against a strict schema. Vision-capable models also see the original, so letterheads, stamps, and signatures can settle a correspondent or date that a garbled text layer hides. Auto-apply writes results straight back, while review mode queues each suggestion in a side-by-side screen where titles, tags, correspondents, and dates can be edited, approved, rejected, or bulk-approved. Each tag can carry an AI hint explaining when it applies, and workflow tags can be hidden from the model entirely. Prompts are editable and testable on a real document, and a full history shows the exact prompt sent and the reply behind every run. Anthropic, OpenAI, Google, Mistral, and local OpenAI-compatible endpoints such as Ollama, LM Studio, vLLM, and OpenRouter all work, with keys encrypted at rest. Unchanged documents are skipped on re-runs, so re-tagging costs nothing, and page caps keep large files from running up bills. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. AGPL-3.0 licensed.
Benefits
- Documents arrive filed without manual sorting
- One trigger tag starts the pipeline, and a clean title, tags, correspondent, and date are written back to paperless-ngx, so scans stop piling up under generic filenames.
- Keep full control over every suggestion
- Review mode shows suggestions beside the recognised text, lets you edit or reject each one, and supports bulk approval, so no metadata reaches paperless-ngx until you decide.
- Bring your own models and keys
- Use Anthropic, OpenAI, Google, Mistral, or a local model through an OpenAI-compatible endpoint, with provider keys encrypted at rest and requests sent straight from your container.
- Re-runs cost nothing when nothing changed
- A content hash plus the active configuration fingerprint lets Starfruit skip identical re-runs, while page and attachment-size caps stop large files from running up OCR and model bills.
Features
- Optional Vision OCR
- Re-read scanned originals with Mistral OCR or any vision-capable model and write the text back to paperless-ngx, or reuse its free Tesseract text instead.
- Structured Metadata Extraction
- One language-model call returns title, tags, correspondent, and date, validated against a Zod schema with a single repair retry, and can attach the original document as visual evidence.
- Review Queue
- Side-by-side review of the recognised text and editable suggestions, with per-tag toggles, approve and reject actions, and bulk approval of selected documents.
- Tag Hints and Prompts
- Attach short AI hints to tags, hide workflow tags from the model, and edit extraction prompts, testing them on a real document first.
- Any AI Provider
- Anthropic, OpenAI, Google, and Mistral keys, plus OpenAI-compatible endpoints such as Ollama, LM Studio, vLLM, and OpenRouter, with AES-GCM encrypted credentials.
- Dashboard and History
- A dashboard shows queue depth, throughput, and recent runs, while the full history keeps the exact prompt sent and the model's reply behind every processed document.