{"adoption": {"forks": 105, "observed_at": "2026-08-28T04:03:15.261379+00:00", "stars": 1020}, "canonical_url": "https://ross.abutalabs.com/products/tensorflow-similarity", "card": {"archived": true, "artifact_type": "library", "description": "TensorFlow Similarity is a python package focused on making similarity learning quick and easy.", "domain": ["machine-learning", "deep-learning", "computer-vision"], "enriched": true, "function": ["machine-learning", "deep-learning", "search-engine", "data-visualization"], "health_score": 10, "homepage": null, "language": "Python", "license": "Apache-2.0", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["tensorflow/similarity"], "name": "tensorflow/similarity", "platform": ["python"], "pushed_at": "2024-05-06T14:57:49+00:00", "repo": "tensorflow/similarity", "stars": 1020, "tags": ["similarity-learning", "metric-learning", "contrastive-learning", "self-supervised-learning", "embeddings", "nearest-neighbor-search", "tensorflow", "knn", "simclr", "barlow-twins", "search"], "topics": ["similarity-learning", "metric-learning", "similarity-search", "nearest-neighbor-search", "nearest-neighbors", "deep-learning", "tensorflow", "contrastive-learning", "machine-learning", "unsupervised-learning", "clustering", "python", "simclr", "simclr2", "barlow-twins", "simsiam", "cosine-similarity", "knn"], "urls": [], "use_cases": ["train a metric learning model to output embeddings for image similarity search", "pretrain a model with self-supervised contrastive learning on unlabeled images", "find nearest neighbors of images in a large corpus using learned embeddings", "cluster unseen examples by similarity after training on few classes", "fine-tune a contrastively pretrained model on a small labeled dataset", "evaluate retrieval quality with metrics like Precision@K"], "what_it_is": "TensorFlow Similarity is a Python library built on TensorFlow for training and serving similarity and metric learning models, including self-supervised and contrastive methods. It provides losses, metrics, samplers, visualizers, and an indexing subsystem for embedding-based nearest neighbor search.", "when_to_avoid": ["you work in PyTorch or another framework rather than TensorFlow", "you need a stable, production-guaranteed API - the library is in beta and may have breaking changes", "you only need off-the-shelf embeddings without training your own similarity model"], "when_to_choose": ["you use TensorFlow and need metric or contrastive learning with losses like SimCLR, Barlow Twins, or VicReg", "you want an integrated pipeline from training embeddings to indexing and querying nearest neighbors", "you need self-supervised pretraining to boost accuracy on small labeled datasets"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/tensorflow-similarity", "repo": "tensorflow/similarity", "role": "main", "score": 10}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.261379+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:09:19.881557+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "ed5d0d9ea95a08a0319935ebdd1e9a917872feb4cef9167deba8e21f3abc1ae4", "fetched_at": "2026-08-28T04:03:15.261379+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tensorflow/similarity"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["archived"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2270, "days_push": 849, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 10, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}