This page is a live teaching script. Move one step at a time: read two documents, turn them into shingles, compute exact Jaccard, approximate it with MinHash, then use banding to avoid checking every pair.
Before revealing the answer, ask students to compute the ratio from the two counts above.
Enter the two counts, then check.
| Row | Signature A | Signature B | Same? |
|---|
Find settings with recall at least 90%, precision at least 50%, and no more than 40% of all pairs checked.
Tune shingle size, threshold, rows, and bands.
| Pair | Exact Jaccard | Candidate? | Status |
|---|
LSH over shingles asks: "Do these documents share many exact word windows?" Embedding search asks: "Do these documents point in a similar semantic direction?"
Use shingle LSH for copied or lightly edited text. Use embeddings for paraphrases, topical similarity, and retrieval where the wording can change.
| Pair | Lexical Jaccard | LSH candidate? | Embedding cosine | What it shows |
|---|