← back to the slides

D6 — Duplicates, versions and copies

A synthetic corpus of internal policies: exact copies, a re-published copy, a reordered copy, three versions of the same policy, a paraphrase. Word 3-gram Jaccard, its MinHash estimate (128 hashes, 16 bands × 8 rows) and SimHash — computed live in your browser, bit-identical to the Python script.

Recorded result

pairsame bytesJaccard (3-grams)MinHash est.SimHash HammingLSH candidate
travel-v1.2 / travel-v1.2-exact-copyTrue1.01.00True
travel-v1.2 / travel-v1.2-copy-intranetFalse0.9250.92974True
travel-v1.2-copy-intranet / travel-v1.2-exact-copyFalse0.9250.92974True
travel-v1.2 / travel-v1.2-reorderedFalse0.92210.91410True
travel-v1.2-exact-copy / travel-v1.2-reorderedFalse0.92210.91410True
travel-v1.0 / travel-v1.1False0.87340.88281True
travel-v1.2-copy-intranet / travel-v1.2-reorderedFalse0.85540.84384True
travel-v1.1 / travel-v1.2False0.83850.84386True
travel-v1.1 / travel-v1.2-exact-copyFalse0.83850.84386True
travel-v1.0 / travel-v1.2False0.80490.82815True
travel-v1.0 / travel-v1.2-exact-copyFalse0.80490.82815True
travel-v1.1 / travel-v1.2-copy-intranetFalse0.78030.79696True
travel-v1.1 / travel-v1.2-reorderedFalse0.77250.78126True
travel-v1.0 / travel-v1.2-copy-intranetFalse0.750.78125True
travel-v1.0 / travel-v1.2-reorderedFalse0.74120.755True

Query: hotel night reimbursement limit euros

Clusters (MinHash ≥ 0.8 or identical): travel-v1.0, travel-v1.1, travel-v1.2, travel-v1.2-copy-intranet, travel-v1.2-exact-copy, travel-v1.2-reordered; travel-paraphrase; remote-work; data-retention

Top-5 before deduplication: travel-v1.0 (1.5678), travel-v1.1 (1.5678), travel-v1.2 (1.5678), travel-v1.2-exact-copy (1.5678), travel-v1.2-reordered (1.5678)

Top-5 after collapsing each cluster to its latest official version: travel-v1.2 (1.5678; 6 version(s) kept), travel-paraphrase (0.6111; 1 version(s) kept), data-retention (0.3617; 1 version(s) kept), remote-work (0.2052; 1 version(s) kept)

Note: versions 1.0 and 1.1 say 120 euros per hotel night, version 1.2 and its copies say 150; the cluster keeps all versions.

Play

Pre-computed by the demo script (pinned versions, SHA-256 data manifest, recorded log); this page only reads the record. Olivier Vitrac, PhD, HDR — Head of Adservio Innovation Lab · RAG lecture, November 2026.