Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
product-similarity
product-embeddings
weak-supervision
text-embeddings-inference
Instructions to use beno-rohman/product-embedding-e5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use beno-rohman/product-embedding-e5-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("beno-rohman/product-embedding-e5-base") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download reports/functional/original_validation.json from beno-rohman/product-embedding-e5-base: direct link, hf CLI and curl.
- Browser
- Download file 9.65 kB
-
https://huggingface.co/beno-rohman/product-embedding-e5-base/resolve/main/reports/functional/original_validation.json
- Command line
-
hf download hf://beno-rohman/product-embedding-e5-base/reports/functional/original_validation.json
-
curl -L -o original_validation.json https://huggingface.co/beno-rohman/product-embedding-e5-base/resolve/main/reports/functional/original_validation.json
9.65 kB
| { | |
| "model": "intfloat/multilingual-e5-base", | |
| "split": "validation", | |
| "queries": 3207, | |
| "candidate_products": 3211, | |
| "types": 84, | |
| "metrics": { | |
| "macro_type_top1": 0.8655795651593969, | |
| "macro_type_purity5": 0.7884665469723241, | |
| "same_type_over_lexical_hard_negative": 0.538821328344247, | |
| "main_product_vs_main_product_ordering": 0.5413018652455273, | |
| "mean_same_type_cosine": 0.8364725778658219, | |
| "mean_hard_negative_cosine": 0.8338265355442929, | |
| "graded_pair_spearman": 0.4533057944156805, | |
| "graded_pair_mse": 0.29466428506563697 | |
| }, | |
| "per_type": { | |
| "baby_car_seats": { | |
| "top1": 1.0, | |
| "purity5": 0.9333333333333335, | |
| "family1": 1.0 | |
| }, | |
| "baby_strollers": { | |
| "top1": 0.75, | |
| "purity5": 0.71875, | |
| "family1": 0.90625 | |
| }, | |
| "backpacks": { | |
| "top1": 0.825, | |
| "purity5": 0.675, | |
| "family1": 0.875 | |
| }, | |
| "bed_sheets": { | |
| "top1": 0.875, | |
| "purity5": 0.8, | |
| "family1": 0.9 | |
| }, | |
| "bicycles": { | |
| "top1": 0.975, | |
| "purity5": 0.945, | |
| "family1": 0.975 | |
| }, | |
| "blenders": { | |
| "top1": 0.825, | |
| "purity5": 0.7550000000000001, | |
| "family1": 0.875 | |
| }, | |
| "boots": { | |
| "top1": 0.775, | |
| "purity5": 0.7150000000000001, | |
| "family1": 0.8 | |
| }, | |
| "cables": { | |
| "top1": 0.8, | |
| "purity5": 0.74, | |
| "family1": 0.825 | |
| }, | |
| "camera_lenses": { | |
| "top1": 0.875, | |
| "purity5": 0.89, | |
| "family1": 0.975 | |
| }, | |
| "cat_food": { | |
| "top1": 0.9, | |
| "purity5": 0.82, | |
| "family1": 1.0 | |
| }, | |
| "chairs": { | |
| "top1": 0.8, | |
| "purity5": 0.7400000000000001, | |
| "family1": 0.925 | |
| }, | |
| "chargers": { | |
| "top1": 0.8, | |
| "purity5": 0.73, | |
| "family1": 0.825 | |
| }, | |
| "coffee_makers": { | |
| "top1": 0.95, | |
| "purity5": 0.9, | |
| "family1": 0.975 | |
| }, | |
| "computer_keyboards": { | |
| "top1": 0.65, | |
| "purity5": 0.6050000000000001, | |
| "family1": 0.8 | |
| }, | |
| "computer_memory": { | |
| "top1": 0.975, | |
| "purity5": 0.9550000000000001, | |
| "family1": 1.0 | |
| }, | |
| "computer_mice": { | |
| "top1": 0.95, | |
| "purity5": 0.82, | |
| "family1": 0.95 | |
| }, | |
| "computer_monitors": { | |
| "top1": 0.9, | |
| "purity5": 0.9099999999999999, | |
| "family1": 0.925 | |
| }, | |
| "computer_processors": { | |
| "top1": 0.875, | |
| "purity5": 0.85, | |
| "family1": 1.0 | |
| }, | |
| "conditioners": { | |
| "top1": 0.9285714285714286, | |
| "purity5": 0.6428571428571429, | |
| "family1": 0.9285714285714286 | |
| }, | |
| "desks": { | |
| "top1": 0.9, | |
| "purity5": 0.86, | |
| "family1": 0.95 | |
| }, | |
| "desktop_computers": { | |
| "top1": 0.675, | |
| "purity5": 0.5650000000000001, | |
| "family1": 0.95 | |
| }, | |
| "digital_cameras": { | |
| "top1": 0.925, | |
| "purity5": 0.745, | |
| "family1": 0.95 | |
| }, | |
| "dining_tables": { | |
| "top1": 0.825, | |
| "purity5": 0.79, | |
| "family1": 0.975 | |
| }, | |
| "dog_food": { | |
| "top1": 0.8, | |
| "purity5": 0.8100000000000002, | |
| "family1": 1.0 | |
| }, | |
| "dress_shoes": { | |
| "top1": 0.85, | |
| "purity5": 0.7150000000000001, | |
| "family1": 0.95 | |
| }, | |
| "dresses": { | |
| "top1": 0.975, | |
| "purity5": 0.95, | |
| "family1": 0.975 | |
| }, | |
| "drills": { | |
| "top1": 0.975, | |
| "purity5": 0.905, | |
| "family1": 1.0 | |
| }, | |
| "drums": { | |
| "top1": 0.975, | |
| "purity5": 0.9099999999999999, | |
| "family1": 1.0 | |
| }, | |
| "dumbbells": { | |
| "top1": 0.925, | |
| "purity5": 0.875, | |
| "family1": 0.95 | |
| }, | |
| "earrings": { | |
| "top1": 0.95, | |
| "purity5": 0.875, | |
| "family1": 0.975 | |
| }, | |
| "electronic_cases": { | |
| "top1": 0.8, | |
| "purity5": 0.68, | |
| "family1": 0.825 | |
| }, | |
| "football_shoes": { | |
| "top1": 0.75, | |
| "purity5": 0.72, | |
| "family1": 1.0 | |
| }, | |
| "frying_pans": { | |
| "top1": 0.95, | |
| "purity5": 0.885, | |
| "family1": 1.0 | |
| }, | |
| "game_consoles": { | |
| "top1": 0.975, | |
| "purity5": 0.885, | |
| "family1": 0.975 | |
| }, | |
| "game_controllers": { | |
| "top1": 0.75, | |
| "purity5": 0.655, | |
| "family1": 0.75 | |
| }, | |
| "graphics_cards": { | |
| "top1": 0.9, | |
| "purity5": 0.8099999999999999, | |
| "family1": 0.975 | |
| }, | |
| "guitars": { | |
| "top1": 0.9, | |
| "purity5": 0.8649999999999999, | |
| "family1": 0.925 | |
| }, | |
| "handbags": { | |
| "top1": 0.825, | |
| "purity5": 0.695, | |
| "family1": 0.975 | |
| }, | |
| "headphones": { | |
| "top1": 0.675, | |
| "purity5": 0.615, | |
| "family1": 0.825 | |
| }, | |
| "jackets": { | |
| "top1": 0.75, | |
| "purity5": 0.655, | |
| "family1": 0.875 | |
| }, | |
| "jeans": { | |
| "top1": 0.775, | |
| "purity5": 0.65, | |
| "family1": 0.9 | |
| }, | |
| "kettles": { | |
| "top1": 0.9705882352941176, | |
| "purity5": 0.9235294117647058, | |
| "family1": 1.0 | |
| }, | |
| "keyboards_music": { | |
| "top1": 0.925, | |
| "purity5": 0.89, | |
| "family1": 0.925 | |
| }, | |
| "laptops": { | |
| "top1": 0.6, | |
| "purity5": 0.4450000000000001, | |
| "family1": 0.8 | |
| }, | |
| "lipsticks": { | |
| "top1": 0.925, | |
| "purity5": 0.86, | |
| "family1": 0.95 | |
| }, | |
| "loudspeakers": { | |
| "top1": 0.85, | |
| "purity5": 0.7849999999999999, | |
| "family1": 0.925 | |
| }, | |
| "mascara": { | |
| "top1": 1.0, | |
| "purity5": 0.945, | |
| "family1": 1.0 | |
| }, | |
| "mattresses": { | |
| "top1": 0.925, | |
| "purity5": 0.835, | |
| "family1": 0.95 | |
| }, | |
| "microphones": { | |
| "top1": 0.85, | |
| "purity5": 0.765, | |
| "family1": 0.925 | |
| }, | |
| "moisturizers": { | |
| "top1": 0.9, | |
| "purity5": 0.845, | |
| "family1": 0.925 | |
| }, | |
| "nail_polish": { | |
| "top1": 1.0, | |
| "purity5": 0.8800000000000001, | |
| "family1": 1.0 | |
| }, | |
| "necklaces": { | |
| "top1": 0.85, | |
| "purity5": 0.825, | |
| "family1": 0.95 | |
| }, | |
| "network_routers": { | |
| "top1": 0.975, | |
| "purity5": 0.945, | |
| "family1": 0.975 | |
| }, | |
| "perfumes": { | |
| "top1": 0.975, | |
| "purity5": 0.945, | |
| "family1": 0.975 | |
| }, | |
| "pillows": { | |
| "top1": 0.725, | |
| "purity5": 0.7050000000000001, | |
| "family1": 0.75 | |
| }, | |
| "power_saws": { | |
| "top1": 0.95, | |
| "purity5": 0.9100000000000001, | |
| "family1": 1.0 | |
| }, | |
| "printer_consumables": { | |
| "top1": 0.9, | |
| "purity5": 0.85, | |
| "family1": 0.95 | |
| }, | |
| "printers": { | |
| "top1": 0.975, | |
| "purity5": 0.9450000000000001, | |
| "family1": 0.975 | |
| }, | |
| "rings": { | |
| "top1": 0.8, | |
| "purity5": 0.695, | |
| "family1": 0.925 | |
| }, | |
| "running_shoes": { | |
| "top1": 0.95, | |
| "purity5": 0.905, | |
| "family1": 1.0 | |
| }, | |
| "sandals": { | |
| "top1": 0.775, | |
| "purity5": 0.7150000000000001, | |
| "family1": 1.0 | |
| }, | |
| "sanders": { | |
| "top1": 1.0, | |
| "purity5": 0.9142857142857144, | |
| "family1": 1.0 | |
| }, | |
| "saucepans": { | |
| "top1": 0.875, | |
| "purity5": 0.82, | |
| "family1": 1.0 | |
| }, | |
| "shampoos": { | |
| "top1": 0.9, | |
| "purity5": 0.85, | |
| "family1": 0.925 | |
| }, | |
| "shirts": { | |
| "top1": 0.875, | |
| "purity5": 0.7150000000000001, | |
| "family1": 0.95 | |
| }, | |
| "sleeping_bags": { | |
| "top1": 0.95, | |
| "purity5": 0.96, | |
| "family1": 0.95 | |
| }, | |
| "smartphones": { | |
| "top1": 0.475, | |
| "purity5": 0.34500000000000003, | |
| "family1": 0.65 | |
| }, | |
| "sneakers": { | |
| "top1": 0.625, | |
| "purity5": 0.425, | |
| "family1": 0.825 | |
| }, | |
| "sofas": { | |
| "top1": 0.85, | |
| "purity5": 0.735, | |
| "family1": 0.95 | |
| }, | |
| "stickers": { | |
| "top1": 0.875, | |
| "purity5": 0.5800000000000001, | |
| "family1": 0.875 | |
| }, | |
| "storage_drives": { | |
| "top1": 0.7, | |
| "purity5": 0.7, | |
| "family1": 0.95 | |
| }, | |
| "suitcases": { | |
| "top1": 0.95, | |
| "purity5": 0.8099999999999999, | |
| "family1": 0.95 | |
| }, | |
| "sweaters": { | |
| "top1": 0.65, | |
| "purity5": 0.43499999999999994, | |
| "family1": 0.9 | |
| }, | |
| "tablets": { | |
| "top1": 0.825, | |
| "purity5": 0.685, | |
| "family1": 0.85 | |
| }, | |
| "televisions": { | |
| "top1": 0.825, | |
| "purity5": 0.7050000000000001, | |
| "family1": 0.825 | |
| }, | |
| "tents": { | |
| "top1": 1.0, | |
| "purity5": 0.8545454545454546, | |
| "family1": 1.0 | |
| }, | |
| "treadmills": { | |
| "top1": 0.9428571428571428, | |
| "purity5": 0.92, | |
| "family1": 0.9428571428571428 | |
| }, | |
| "tripods": { | |
| "top1": 0.95, | |
| "purity5": 0.8300000000000001, | |
| "family1": 0.975 | |
| }, | |
| "tshirts": { | |
| "top1": 0.65, | |
| "purity5": 0.555, | |
| "family1": 0.9 | |
| }, | |
| "vacuum_cleaners": { | |
| "top1": 0.975, | |
| "purity5": 0.97, | |
| "family1": 1.0 | |
| }, | |
| "video_games": { | |
| "top1": 0.8333333333333334, | |
| "purity5": 0.7388888888888889, | |
| "family1": 0.8888888888888888 | |
| }, | |
| "washing_machines": { | |
| "top1": 1.0, | |
| "purity5": 0.915, | |
| "family1": 1.0 | |
| }, | |
| "wristwatches": { | |
| "top1": 0.95, | |
| "purity5": 0.97, | |
| "family1": 0.975 | |
| }, | |
| "yoga_mats": { | |
| "top1": 0.9583333333333334, | |
| "purity5": 0.9249999999999999, | |
| "family1": 1.0 | |
| } | |
| }, | |
| "benchmark_sha256": "65ac56e0c1f7b80b01c44ff3cc66c152f6c5a6a8851a04bbdf3d14358f4d349d", | |
| "label_caveat": "Automatically inferred title-head functional types; this is a silver-label benchmark, not independently human-reviewed category ground truth." | |
| } | |