Skip to content
项目

rknightion/paperless-ngx-dedupe

在 GitHub 查看

关于

Find and remove duplicate documents in paperless-ngx. MinHash/LSH fuzzy matching catches near-duplicates that exact hashing misses, with optional AI metadata suggestions.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Paperless NGX Dedupe

OpenSSF Scorecard

A document deduplication and AI-powered metadata companion for Paperless-NGX. It syncs your documents, identifies duplicates using MinHash/LSH algorithms, and extracts metadata with LLMs through a web UI and REST API.

Features

Deduplication

  • Intelligent duplicate detection -- MinHash signatures + Locality-Sensitive Hashing for efficient O(n log n) candidate discovery
  • Similarity scoring -- weighted Jaccard similarity and fuzzy text matching with a discriminative penalty that down-scores pairs sharing only boilerplate text
  • Side-by-side review -- compare duplicate documents with OCR text diff and resolve them individually or in bulk

AI Metadata Extraction

  • Automatic classification -- extract correspondents, document types, and tags from document text using OpenAI models
  • Confidence scoring -- per-field confidence scores with supporting evidence snippets so you can review before applying
  • Reference-aware -- optionally feeds your existing correspondents, document types, and tags to the LLM to avoid creating duplicates
  • Batch processing -- process your entire library or new documents automatically in configurable batches

Platform

  • Document sync -- full and incremental sync from your Paperless-NGX instance
  • Background processing -- worker threads with real-time progress via Server-Sent Events
  • Web UI -- dashboard, document browser, duplicate review, and AI results review
  • Batch operations -- bulk review, apply, reject, and delete across duplicates and AI results
  • Data export -- CSV duplicate reports and JSON configuration backup/restore
  • Observability -- OpenTelemetry traces, metrics, and logs with optional Prometheus scrape endpoint and built-in Paperless-NGX system metrics collector
  • Single container deployment -- Docker with embedded SQLite, no external dependencies

Quick Start

1. Create a .env file with your Paperless-NGX connection details:

PAPERLESS_URL=http://your-paperless-instance:8000
PAPERLESS_API_TOKEN=your-api-token-here

You can authenticate with an API token (recommended) or username/password. See Configuration for all options.

2. Start the container:

docker compose up -d

3. Open http://localhost:3000 and go to Settings > Test Connection to verify connectivity.

The app has no login of its own, so keep it on a trusted network or behind an authenticating proxy; see the security access model.

4. Sync and analyze. From the dashboard, click Sync to pull your documents, then Analyze to detect duplicates. Both run as background jobs with real-time progress.

5. Review duplicates at /duplicates -- compare documents side-by-side and resolve them.

See the Getting Started Guide for a full walkthrough.

Documentation

Development

Discover tasks with just --list, or inspect one with just --show <recipe>.

just setup            # Install dependencies
just run              # Start dev server (http://localhost:5173)
just dev-jobs         # Dev server with a core compiler watcher for background jobs
just build            # Production build
just typecheck        # TypeScript type checking
just lint             # Lint
just test             # Run tests

Note: Background jobs load compiled core JavaScript outside Vite and need a current core build. just docker-dev and just dev-jobs keep core compiled while the dev server runs. Plain just run uses any existing build and does not keep it current.

License

GNU General Public License v3

探索相关项目

加载中…