CoolFace
Datasetpublic

sentence-transformers/embedding-training-data

Training Data for Text Embedding Models [!NOTE] This repository contains raw datasets, all of which have also been formatted for easy training in the Embedding Model Datasets collection. We recommend looking there first. This repository contains training files to train text embedding models, e.g. using sentence-transformers. Data Format All files are in a jsonl.gz format: Each line contains a JSON-object that represent one training example. The JSON objects can… See the full description on the dataset page: https://huggingface.co/datasets/sentence-transformers/embedding-training-data.

sourceHugging Faceupdated 26d agoView on Hugging Face
144likes2.1kdownloads
Dataset Card

Training Data for Text Embedding Models

[!NOTE] This repository contains raw datasets, all of which have also been formatted for easy training in the Embedding Model Datasets collection. We recommend looking there first.

This repository contains training files to train text embedding models, e.g. using sentence-transformers.

Data Format

All files are in a jsonl.gz format: Each line contains a JSON-object that represent one training example.

The JSON objects can come in different formats:

  • Pairs: ["text1", "text2"] - This is a positive pair that should be close in vector space.
  • Triplets: ["anchor", "positive", "negative"] - This is a triplet: The positive text should be close to the anchor, while the negative text should be distant to the anchor.
  • Sets: {"set": ["text1", "text2", ...]} A set of texts describing the same thing, e.g. different paraphrases of the same question, different captions for the same image. Any combination of the elements is considered as a positive pair.
  • Query-Pairs: {"query": "text", "pos": ["text1", "text2", ...]} A query together with a set of positive texts. Can be formed to a pair ["query", "positive"] by randomly selecting a text from pos.
  • Query-Triplets: {"query": "text", "pos": ["text1", "text2", ...], "neg": ["text1", "text2", ...]} A query together with a set of positive texts and negative texts. Can be formed to a triplet ["query", "positive", "negative"] by randomly selecting a text from pos and neg.

Available Datasets

Note: I'm currently in the process to upload the files. Please check again next week to get the full list of datasets

We measure the performance for each training dataset by training the nreimers/MiniLM-L6-H384-uncased model on it with MultipleNegativesRankingLoss, a batch size of 256, for 2000 training steps. The performance is then averaged across 14 sentence embedding benchmark datasets from diverse domains (Reddit, Twitter, News, Publications, E-Mails, ...).

DatasetDescriptionSize (#Lines)PerformanceReference
gooaq_pairs.jsonl.gz(Question, Answer)-Pairs from Google auto suggest3,012,49659.06GooAQ
yahoo_answers_title_answer.jsonl.gz(Title, Answer) pairs from Yahoo Answers1,198,26058.65Yahoo Answers
msmarco-triplets.jsonl.gz(Question, Answer, Negative)-Triplets from MS MARCO Passages dataset499,18458.76MS MARCO Passages
stackexchange_duplicate_questions_title_title.jsonl.gz(Title, Title) pairs of duplicate questions from StackExchange304,52558.47Stack Exchange Data API
eli5_question_answer.jsonl.gz(Question, Answer)-Pairs from ELI5 dataset325,47558.24ELI5
yahoo_answers_title_question.jsonl.gz(Title, Question_Body) pairs from Yahoo Answers659,89658.05Yahoo Answers
squad_pairs.jsonl.gz(Question, Answer_Passage) Pairs from SQuAD dataset87,59958.02SQuAD
yahoo_answers_question_answer.jsonl.gz(Question_Body, Answer) pairs from Yahoo Answers681,16457.74Yahoo Answers
wikihow.jsonl.gz(Summary, Text) from WikiHow128,54257.67WikiHow
amazon_review_2018.jsonl.gz(Title, review) pairs from Amazon87,877,72557.65Amazon review data (2018)
NQ-train_pairs.jsonl.gzTraining pairs (query, answer_passage) from the NQ dataset100,23157.48Natural Questions
amazon-qa.jsonl.gz(Question, Answer) pairs from Amazon1,095,29057.48AmazonQA
S2ORC_title_abstract.jsonl.gz(Title, Abstract) pairs of scientific papers41,769,18557.39S2ORC
quora_duplicates.jsonl.gzDuplicate question pairs from Quora103,66357.36QQP
WikiAnswers.jsonl.gzSets of duplicates questions27,383,15157.34WikiAnswers Corpus
searchQA_top5_snippets.jsonl.gzQuestion + Top5 text snippets from SearchQA dataset. Top5117,22057.34search_qa
stackexchange_duplicate_questions_title-body_title-body.jsonl.gz(Title+Body, Title+Body) pairs of duplicate questions from StackExchange250,46057.30Stack Exchange Data API
S2ORC_citations_titles.jsonl.gzCitation network (paper titles)51,030,08657.28S2ORC
stackexchange_duplicate_questions_body_body.jsonl.gz(Body, Body) pairs of duplicate questions from StackExchange250,51957.26Stack Exchange Data API
agnews.jsonl.gz(Title, Description) pairs of news articles from the AG News dataset1,157,74557.25AG news corpus
quora_duplicates_triplets.jsonl.gzDuplicate question pairs from Quora with additional hard negatives (mined & denoised by cross-encoder)101,76256.97QQP
AllNLI.jsonl.gzCombination of SNLI + MultiNLI Triplets: (Anchor, EntailmentText, ContradictionText)277,23056.57SNLI and MNLI
npr.jsonl.gz(Title, Body) pairs from the npr.org website594,38456.44Pushshift
specter_train_triples.jsonl.gzTriplets (Title, relatedtitle, hardnegative) for Scientific Publications from Specter684,10056.32SPECTER
SimpleWiki.jsonl.gzMatched pairs (EnglishWikipedia, SimpleEnglish_Wikipedia)102,22556.15SimpleWiki
PAQ_pairs.jsonl.gzTraining pairs (query, answer_passage) from the PAQ dataset64,371,44156.11PAQ
altlex.jsonl.gzMatched pairs (EnglishWikipedia, SimpleEnglish_Wikipedia)112,69655.95altlex
ccnews_title_text.jsonl.gz(Title, article) pairs from the CC News dataset614,66455.84CC-News
codesearchnet.jsonl.gzCodeSearchNet corpus is a dataset of (comment, code) pairs from opensource libraries hosted on GitHub. It contains code and documentation for several programming languages.1,151,41455.80CodeSearchNet
S2ORC_citations_abstracts.jsonl.gzCitation network (paper abstracts)39,567,48555.74S2ORC
sentence-compression.jsonl.gzPairs (longtext, shorttext) about sentence-compression180,00055.63Sentence-Compression
TriviaQA_pairs.jsonl.gzPairs (query, answer) from TriviaQA dataset73,34655.56TriviaQA
cnn_dailymail_splitted.jsonl.gz(article, highlight sentence) with individual highlight sentences for each news article311,97155.36CNN Dailymail Dataset
cnn_dailymail.jsonl.gz(highlight sentences, article) with all highlight sentences as one text for each news article311,97155.27CNN Dailymail Dataset
flickr30k_captions.jsonl.gzDifferent captions for the same image from the Flickr30k dataset31,78354.68Flickr30k
xsum.jsonl.gz(Summary, News Article) pairs from XSUM dataset226,71153.86xsum
coco_captions.jsonl.gzDifferent captions for the same image82,78353.77COCO

Disclaimer: We only distribute these datasets in a specific format, but we do not vouch for their quality or fairness, or claim that you have license to use the dataset. It remains the user's responsibility to determine whether you as a user have permission to use the dataset under the dataset's license and to cite the right owner of the dataset. Please check the individual dataset webpages for the license agreements.

If you're a dataset owner and wish to update any part of it, or do not want your dataset to be included in this dataset collection, feel free to contact me.