tomaarsen/gooaq-hard-negatives
Dataset Card for GooAQ with mined hard negatives This dataset is a collection of question-answer-negative triplets and question-answer-negative_1...-negative_5 tuples from the GooAQ dataset. See GooAQ for additional information. This dataset can be used directly with Sentence Transformers to train embedding models. The negative samples have been automatically mined with all-MiniLM-L6-v2 and: range_min: 10, i.e. we skip the 10 most similar samples range_max: 100, i.e. we only… See the full description on the dataset page: https://huggingface.co/datasets/tomaarsen/gooaq-hard-negatives.
Dataset Card for GooAQ with mined hard negatives
This dataset is a collection of question-answer-negative triplets and question-answer-negative1...-negative5 tuples from the GooAQ dataset. See GooAQ for additional information. This dataset can be used directly with Sentence Transformers to train embedding models.
The negative samples have been automatically mined with all-MiniLM-L6-v2 and:
range_min: 10, i.e. we skip the 10 most similar samplesrange_max: 100, i.e. we only look at the top 100 most similar samplesmargin: 0, i.e. we require negative similarity + margin < positive similarity, so negative samples can't be more similar than the known true answersampling_strategy: "random", i.e. we randomly sample from the candidate negatives rather than taking the "top" negativesnum_negatives: 5, i.e. we mine 5 negatives per question-answer pair
Dataset Subsets
triplet-all subset
- Columns: "question", "answer", "negative"
- Column types:
str,str,str - Examples:
{
'question': 'is toprol xl the same as metoprolol?',
'answer': 'Metoprolol succinate is also known by the brand name Toprol XL. It is the extended-release form of metoprolol. Metoprolol succinate is approved to treat high blood pressure, chronic chest pain, and congestive heart failure.',
'negative': 'TOPROL-XL is indicated for the treatment of stable, symptomatic (NYHA Class II or III) heart failure of ischemic, hypertensive, or cardiomyopathic origin. It was studied in patients already receiving ACE inhibitors, diuretics, and, in the majority of cases, digitalis.'
}- Collection strategy: Reading the natural questions dataset from sentence-transformers/natural-questions and performing hard negative mining with
as_triplets=True. - Deduplified: No
triplet-5 subset
- Columns: "question", "answer", "negative1", "negative2", "negative3", "negative4", "negative_5"
- Column types:
str,str,str,str,str,str,str - Examples:
{
'question': 'is toprol xl the same as metoprolol?',
'answer': 'Metoprolol succinate is also known by the brand name Toprol XL. It is the extended-release form of metoprolol. Metoprolol succinate is approved to treat high blood pressure, chronic chest pain, and congestive heart failure.',
'negative_1': 'Secondly, metoprolol and metoprolol ER have different brand-name equivalents: Brand version of metoprolol: Lopressor. Brand version of metoprolol ER: Toprol XL.',
'negative_2': 'Pill with imprint 1 is White, Round and has been identified as Metoprolol Tartrate 25 mg.',
'negative_3': 'Interactions between your drugs No interactions were found between Allergy Relief and metoprolol. This does not necessarily mean no interactions exist. Always consult your healthcare provider.',
'negative_4': 'Metoprolol is a type of medication called a beta blocker. It works by relaxing blood vessels and slowing heart rate, which improves blood flow and lowers blood pressure. Metoprolol can also improve the likelihood of survival after a heart attack.',
'negative_5': "Metoprolol starts to work after about 2 hours, but it can take up to 1 week to fully take effect. You may not feel any different when you take metoprolol, but this doesn't mean it's not working. It's important to keep taking your medicine."
}- Collection strategy: Reading the natural questions dataset from sentence-transformers/natural-questions and performing hard negative mining with
as_triplets=False. - Deduplified: No
