shuttie
commited on
Commit
•
0eed336
0
Parent(s):
initial commit
Browse files- .gitattributes +2 -0
- .gitignore +2 -0
- README.md +77 -0
- data/train/train-00.jsonl.zst +3 -0
- data/train/train-01.jsonl.zst +3 -0
- data/train/train-02.jsonl.zst +3 -0
- data/train/train-03.jsonl.zst +3 -0
- data/train/train-04.jsonl.zst +3 -0
- data/train/train-05.jsonl.zst +3 -0
- data/train/train-06.jsonl.zst +3 -0
- data/train/train-07.jsonl.zst +3 -0
- data/train/train-08.jsonl.zst +3 -0
- data/train/train-09.jsonl.zst +3 -0
.gitattributes
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
.venv
|
2 |
+
.mypy_cache
|
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- text
|
7 |
+
pretty_name: "BFHND: Big Hard Negatives Dataset (1M sample)"
|
8 |
+
size_categories:
|
9 |
+
- "100K<n<1M"
|
10 |
+
source_datasets:
|
11 |
+
- "BeIR"
|
12 |
+
task_categories:
|
13 |
+
- sentence-similarity
|
14 |
+
dataset_info:
|
15 |
+
config_name: default
|
16 |
+
features:
|
17 |
+
- name: query
|
18 |
+
dtype: string
|
19 |
+
- name: positive
|
20 |
+
sequence: string
|
21 |
+
- name: negative
|
22 |
+
sequence: string
|
23 |
+
splits:
|
24 |
+
- name: train
|
25 |
+
num_bytes: 226515502
|
26 |
+
num_examples: 1000000
|
27 |
+
train-eval-index:
|
28 |
+
- config: default
|
29 |
+
task: sentence-similarity
|
30 |
+
splits:
|
31 |
+
train_split: train
|
32 |
+
configs:
|
33 |
+
- config_name: default
|
34 |
+
data_files:
|
35 |
+
- split: train
|
36 |
+
path: "data/train/*"
|
37 |
+
---
|
38 |
+
|
39 |
+
# Big Hard Negatives Dataset
|
40 |
+
|
41 |
+
A dataset for training embedding models for semantic search.
|
42 |
+
|
43 |
+
TODO: add desc
|
44 |
+
|
45 |
+
A dataset in a [nixietune](https://github.com/nixiesearch/nixietune) compatible format:
|
46 |
+
|
47 |
+
```json
|
48 |
+
{
|
49 |
+
"query": ")what was the immediate impact of the success of the manhattan project?",
|
50 |
+
"pos": [
|
51 |
+
"The presence of communication amid scientific minds was equally important to the success of the Manhattan Project as scientific intellect was. The only cloud hanging over the impressive achievement of the atomic researchers and engineers is what their success truly meant; hundreds of thousands of innocent lives obliterated."
|
52 |
+
],
|
53 |
+
"neg": [
|
54 |
+
"Abstract. The pivotal engineering and scientific success of the Twentieth century was the Manhattan Project. The Manhattan Project assimilated concepts and leaders from all scientific fields and engineering disciplines to construct the first two atomic bombs.",
|
55 |
+
"The pivotal engineering and scientific success of the Twentieth century was the Manhattan Project. The Manhattan Project assimilated concepts and leaders from all scientific fields and engineering disciplines to construct the first two atomic bombs."
|
56 |
+
]
|
57 |
+
}
|
58 |
+
```
|
59 |
+
|
60 |
+
## Usage
|
61 |
+
|
62 |
+
To use with HF datasets:
|
63 |
+
|
64 |
+
```bash
|
65 |
+
pip install datasets zstandard
|
66 |
+
```
|
67 |
+
|
68 |
+
```python
|
69 |
+
from datasets import load_dataset
|
70 |
+
|
71 |
+
data = load_dataset('nixiesearch/bfhardneg-small')
|
72 |
+
print(data["train"].features)
|
73 |
+
```
|
74 |
+
|
75 |
+
## License
|
76 |
+
|
77 |
+
Apache 2.0
|
data/train/train-00.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d7006461963fcd61c48d18171b7840f46bb93f4616636427ed2aed9daea8c329
|
3 |
+
size 1090306230
|
data/train/train-01.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b270b57fc9b25838de545a4e93e6ab7bdfd1ce9b5c82178c5589ee5add5db57b
|
3 |
+
size 1091378822
|
data/train/train-02.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63a5347d308f9bbed82981668020c743a0ca19ec20334cbd7bd3a36545a17512
|
3 |
+
size 1088354408
|
data/train/train-03.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe9a48b3975bcd327826a68bf802f79d235b5d7c9398daa13f88dd1c337be106
|
3 |
+
size 1092512290
|
data/train/train-04.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f6607f9491f0133c98a1727b9b3e6982f95be851da031cf076d9352ab8d2812
|
3 |
+
size 1089318147
|
data/train/train-05.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:687dfd02884287244ed9ddecc40ca93b9ee7112ad017bc7c194af6e7814062b6
|
3 |
+
size 1093943242
|
data/train/train-06.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb108d2048cc1d5f0b3aec91415c6f1b192d3c138735d3748fb3df95b15fc244
|
3 |
+
size 1094984237
|
data/train/train-07.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:efae0f139f1058184911cc14b8fd5f028576346c38ffac9900ce92a45a15d411
|
3 |
+
size 1086582891
|
data/train/train-08.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fbc06eb519a15a1c0926ae01c157644bcf6bf1b609fe39ec6f53cd191a940a64
|
3 |
+
size 1085791191
|
data/train/train-09.jsonl.zst
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86440aa117609ced076d215c53865620f39ba4cbee24a067bf48a2dbef0384dd
|
3 |
+
size 1086895945
|