File size: 1,652 Bytes
86d925a
2780cbd
 
86d925a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
language:
- en
dataset_info:
  features:
  - name: query
    dtype: string
  - name: answer
    dtype: string
  splits:
  - name: train
    num_bytes: 30286
    num_examples: 100
  download_size: 24527
  dataset_size: 30286
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
tags:
- sentence-transformers
---

# Dataset Card for gooaq with mined hard negatives

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.

## Mining Parameters
The negative samples have been mined using the following parameters:
- `range_min`: 10, i.e. we skip the 10 most similar samples
- `range_max`: 20, i.e. we only look at the top 20 most similar samples
- `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
- `sampling_strategy`: random, i.e. whether to randomly sample from the candidate negatives or take the "top" negatives
- `num_negatives`: 3, i.e. we mine 3 negatives per question-answer pair

## Dataset Format
- Columns: query, answer, negative
- Column types: str, str, str
- Example:
```python
{
    "query": "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."
}
```