1. Document set
Initialise ModernBERT Embed above to embed the document set on your device.
2. Near-duplicates β full context vs 512-token clip
Every pair is scored twice from real embeddings: once with the whole document (up to the cap) and once with the first 512 tokens only β what a classic BERT/MiniLM embedder would see. A pair flagged clip false-dup is the truncation blind spot; clip missed dup means the clip saw a different opening and missed a real copy.
Northwind set: three policies come from a wiki template that puts the same ~600-token governance preamble first, so their 512-token clips are identical inputs (cosine 1.0000). Only full context can tell the incident policy apart from the retention family β and only full context links the re-exported copy whose opening was reformatted.
Duplicate clusters at Ο (full context)
| Pair | Full | 512 clip | Ξ | Bars | Verdict |
|---|
3. Document finder β answers that live past token 512
Queries get the search_query: prefix, documents the search_document: prefix.
The same query is ranked against the full-context and the clipped document vectors.
Full context
Clipped at 512 tokens
| Query | Expected | Top-1 full | Rank full | Top-1 clip | Rank clip |
|---|
4. Export the review
Exports are built from the snapshot currently on screen (same documents, cap and Ο), with spreadsheet formula triggers neutralised and RFC 4180 quoting.
Honest limits β measured, not claimed
β), so the cap selector stops at
4,096. Cross-origin-isolated deployments can use more WASM threads and run faster.
- Each document is embedded on its own (no padding to the longest neighbour), one forward pass per cap.
- The 512-clip vectors come from the same model with
max_length: 512β only the visible text changes. - Documents at or under 512 tokens reuse their full vector for the clip column (the inputs are identical).
- q8 weights shift cosines slightly versus fp32: the model-card example pair scores 0.7214 in fp32 and 0.6481 here.