ekzhu/datasketch
MinHash, LSH, LSH Forest, Weighted MinHash, HyperLogLog, HyperLogLog++, LSH Ensemble and HNSW observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 96
- Release rhythm 80
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 64.5
- age_days: 4185
- days_rel: 59
- days_push: 24
- n_releases_24m: 5
Adoption not part of the score
2959 stars · 318 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
datasketch is a Python library of probabilistic data structures (MinHash, Weighted MinHash, HyperLogLog, HyperLogLog++) and indexes (MinHash LSH, LSHBloom, LSH Forest, LSH Ensemble, HNSW) for processing and searching very large datasets with little loss of accuracy. It supports scalable storage layers via Redis and Cassandra and optional GPU acceleration.
Use cases
- find near-duplicate documents at scale
- estimate Jaccard similarity between large sets
- estimate cardinality of huge streams with HyperLogLog
- build a top-k similarity search index with LSH Forest
- deduplicate records or emails in a large dataset
- query sets by containment with LSH Ensemble
- nearest neighbor search with HNSW
When to choose
- you need fast approximate set similarity or cardinality estimation on big data
- you want sub-linear query time for Jaccard threshold or top-k queries
- you need scalable sketch indexes backed by Redis or Cassandra
When to avoid
- you need exact similarity or exact distinct counts
- your datasets are small enough for brute-force computation
- you need general-purpose vector embeddings search beyond what HNSW here provides
Facets
library · maturity stable
search-engine data-science benchmarking data-science big-data machine-learning python minhash locality-sensitive-hashing hyperloglog lsh-forest lsh-ensemble hnsw probabilistic-data-structures jaccard-similarity cardinality-estimation deduplication algorithms search
4 sources
- readme: https://github.com/ekzhu/datasketch · fetched 2026-08-28 · a34ca531d33a
- homepage: https://ekzhu.github.io/datasketch · fetched 2026-08-29 · b3d8791fa28e
- site_page: https://ekzhu.com/datasketch/documentation.html · fetched 2026-08-29 · 52b67c163b9c
- registry_pypi: https://pypi.org/pypi/datasketch/json · fetched 2026-08-29 · 39104584c2e4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ekzhu/datasketch | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="ekzhu/datasketch")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem