tomaarsen HF staff commited on
Commit
87594a1
1 Parent(s): 6061102

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -0
README.md CHANGED
@@ -1,4 +1,16 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  - config_name: triplet-5
4
  features:
@@ -46,3 +58,51 @@ configs:
46
  - split: train
47
  path: triplet-all/train-*
48
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ multilinguality:
5
+ - monolingual
6
+ size_categories:
7
+ - 1M<n<10M
8
+ task_categories:
9
+ - feature-extraction
10
+ - sentence-similarity
11
+ pretty_name: GooAQ with mined hard negatives
12
+ tags:
13
+ - sentence-transformers
14
  dataset_info:
15
  - config_name: triplet-5
16
  features:
 
58
  - split: train
59
  path: triplet-all/train-*
60
  ---
61
+
62
+ # Dataset Card for GooAQ with mined hard negatives
63
+
64
+ This dataset is a collection of question-answer-negative triplets and question-answer-negative_1...-negative_5 tuples from the GooAQ dataset. See [GooAQ](https://huggingface.co/datasets/sentence-transformers/gooaq) for additional information.
65
+ This dataset can be used directly with Sentence Transformers to train embedding models.
66
+
67
+ The negative samples have been automatically mined with [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) and:
68
+ * `range_min`: 10, i.e. we skip the 10 most similar samples
69
+ * `range_max`: 100, i.e. we only look at the top 100 most similar samples
70
+ * `margin`: 0, i.e. we require negative similarity + margin < positive similarity, so negative samples can't be more similar than the known true answer
71
+ * `sampling_strategy`: "random", i.e. we randomly sample from the candidate negatives rather than taking the "top" negatives
72
+ * `num_negatives`: 5, i.e. we mine 5 negatives per question-answer pair
73
+
74
+ ## Dataset Subsets
75
+
76
+ ### `triplet-all` subset
77
+
78
+ * Columns: "question", "answer", "negative"
79
+ * Column types: `str`, `str`, `str`
80
+ * Examples:
81
+ ```python
82
+ {
83
+ 'question': 'is toprol xl the same as metoprolol?',
84
+ '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.',
85
+ '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.'
86
+ }
87
+ ```
88
+ * Collection strategy: Reading the natural questions dataset from [sentence-transformers/natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) and performing hard negative mining with `as_triplets=True`.
89
+ * Deduplified: No
90
+
91
+ ### `triplet-5` subset
92
+
93
+ * Columns: "question", "answer", "negative_1", "negative_2", "negative_3", "negative_4", "negative_5"
94
+ * Column types: `str`, `str`, `str`, `str`, `str`, `str`, `str`
95
+ * Examples:
96
+ ```python
97
+ {
98
+ 'question': 'is toprol xl the same as metoprolol?',
99
+ '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.',
100
+ 'negative_1': 'Secondly, metoprolol and metoprolol ER have different brand-name equivalents: Brand version of metoprolol: Lopressor. Brand version of metoprolol ER: Toprol XL.',
101
+ 'negative_2': 'Pill with imprint 1 is White, Round and has been identified as Metoprolol Tartrate 25 mg.',
102
+ '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.',
103
+ '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.',
104
+ '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."
105
+ }
106
+ ```
107
+ * Collection strategy: Reading the natural questions dataset from [sentence-transformers/natural-questions](https://huggingface.co/datasets/sentence-transformers/natural-questions) and performing hard negative mining with `as_triplets=False`.
108
+ * Deduplified: No