tomaarsen HF staff commited on
Commit
86d925a
1 Parent(s): 76a0fc4

Upload dataset

Browse files
Files changed (2) hide show
  1. README.md +44 -0
  2. data/train-00000-of-00001.parquet +3 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: query
5
+ dtype: string
6
+ - name: answer
7
+ dtype: string
8
+ splits:
9
+ - name: train
10
+ num_bytes: 30286
11
+ num_examples: 100
12
+ download_size: 24527
13
+ dataset_size: 30286
14
+ configs:
15
+ - config_name: default
16
+ data_files:
17
+ - split: train
18
+ path: data/train-*
19
+ tags:
20
+ - sentence-transformers
21
+ ---
22
+
23
+ # Dataset Card for gooaq with mined hard negatives
24
+
25
+ This dataset is a collection of query-answer-negative triplets from the gooaq dataset. See [gooaq](https://huggingface.co/datasets/sentence-transformers/gooaq) for additional information. This dataset can be used directly with Sentence Transformers to train embedding models.
26
+
27
+ ## Mining Parameters
28
+ The negative samples have been mined using the following parameters:
29
+ - `range_min`: 10, i.e. we skip the 10 most similar samples
30
+ - `range_max`: 20, i.e. we only look at the top 20 most similar samples
31
+ - `margin`: 0.1, i.e. we require negative similarity + margin < positive similarity, so negative samples can't be more similar than the known true answer
32
+ - `sampling_strategy`: random, i.e. whether to randomly sample from the candidate negatives or take the "top" negatives
33
+ - `num_negatives`: 3, i.e. we mine 3 negatives per question-answer pair
34
+
35
+ ## Dataset Format
36
+ - Columns: query, answer, negative
37
+ - Column types: str, str, str
38
+ - Example:
39
+ ```python
40
+ {
41
+ "query": "is toprol xl the same as metoprolol?",
42
+ "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."
43
+ }
44
+ ```
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aea2c0b00cf4df17bbeaffcafb18e90b0a72808154f435783fc51f3eecbffed0
3
+ size 24527