Finding near-duplicate documents with MinHash and LSH before you index them for RAG
AI-generated summary Document collections can fill top-k results with copies of one passage and crowd out diverse results when indexed for RAG. MinHash can find near-duplicates efficiently by splitting each document into overlapping word shingles and comparing them by Jaccard similarity.