Hyukkyu commited on
Commit
2e315bb
·
verified ·
1 Parent(s): eeb8c92

build QuoraRetrieval from mteb/quora@e4e08e0b · rteb_open v0.1.0

Browse files
README.md CHANGED
@@ -1,116 +1,91 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
3
  task_categories:
4
- - information-retrieval
5
  - text-retrieval
 
 
6
  tags:
7
  - beir
8
- - quora
9
- - information-retrieval
10
  - retrieval
11
- - search
12
  configs:
13
  - config_name: corpus
14
  data_files:
15
- - split: train
16
- path: corpus/train-*
17
- - config_name: queries
18
  data_files:
19
- - split: train
20
- path: queries/train-*
21
- dataset_info:
22
- - config_name: corpus
23
- features:
24
- - name: metadata
25
- dtype: 'null'
26
- - name: text
27
- dtype: string
28
- - name: _id
29
- dtype: string
30
- - name: title
31
- dtype: string
32
- splits:
33
- - name: train
34
- num_bytes: 41829670
35
- num_examples: 522931
36
- download_size: 23626447
37
- dataset_size: 41829670
38
  - config_name: queries
39
- features:
40
- - name: metadata
41
- dtype: 'null'
42
- - name: _id
43
- dtype: string
44
- - name: text
45
- dtype: string
46
- splits:
47
- - name: train
48
- num_bytes: 979930
49
- num_examples: 15000
50
- download_size: 647448
51
- dataset_size: 979930
52
  ---
 
53
 
54
- # BEIR QUORA Dataset (Migrated)
55
-
56
- This is a migrated version of BeIR/quora that is compatible with datasets library 4.0.0+.
57
-
58
- ## Dataset Description
59
-
60
- This dataset contains the quora dataset from the BEIR benchmark, converted from the old script-based format to Parquet format.
61
-
62
- ## Dataset Structure
63
-
64
- ### Queries
65
 
66
- - **Split 'queries'**: 15,000 examples
67
- - Features: ['_id', 'text', 'metadata']
 
 
 
 
 
 
 
 
68
 
69
- - **Total examples**: 15,000
70
 
 
 
 
 
 
71
 
72
- ### Corpus
 
73
 
74
- - **Split 'corpus'**: 522,931 examples
75
- - Features: ['_id', 'title', 'text', 'metadata']
76
 
77
- - **Total examples**: 522,931
 
 
 
 
 
78
 
79
-
80
- ## Usage
81
 
82
  ```python
83
  from datasets import load_dataset
84
-
85
- # Load queries (split: queries)
86
- queries = load_dataset("Hyukkyu/beir-quora", "queries", split="queries")
87
-
88
- # Load corpus (split: corpus)
89
- corpus = load_dataset("Hyukkyu/beir-quora", "corpus", split="corpus")
90
  ```
91
 
 
92
 
93
- ## Available Splits
94
-
95
- ### Queries
96
- - `queries`: 15,000 examples
97
 
98
- ### Corpus
99
- - `corpus`: 522,931 examples
100
 
101
- ## Original Dataset
 
 
102
 
103
- This dataset is migrated from: BeIR/quora
104
-
105
- ## Citation
106
-
107
- If you use this dataset, please cite the original BEIR paper:
108
-
109
- ```bibtex
110
- @article{thakur2021beir,
111
- title={BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models},
112
- author={Thakur, Nandan and Reimers, Nils and Ruckle, Andreas and Srivastava, Abhishek and Gurevych, Iryna},
113
- journal={arXiv preprint arXiv:2104.08663},
114
- year={2021}
115
- }
116
- ```
 
1
  ---
2
+ pretty_name: BEIR · QuoraRetrieval
3
+ license: cc-by-sa-4.0
4
+ language:
5
+ - en
6
+ multilinguality:
7
+ - monolingual
8
  task_categories:
 
9
  - text-retrieval
10
+ task_ids:
11
+ - document-retrieval
12
  tags:
13
  - beir
14
+ - mteb
 
15
  - retrieval
16
+ - duplicate-question
17
  configs:
18
  - config_name: corpus
19
  data_files:
20
+ - split: test
21
+ path: corpus/test-*.parquet
22
+ - config_name: qrels
23
  data_files:
24
+ - split: test
25
+ path: qrels/test-*.parquet
26
+ - split: dev
27
+ path: qrels/dev-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  - config_name: queries
29
+ data_files:
30
+ - split: test
31
+ path: queries/test-*.parquet
32
+ - split: dev
33
+ path: queries/dev-*.parquet
 
 
 
 
 
 
 
 
34
  ---
35
+ # QuoraRetrieval — BEIR, unified schema
36
 
37
+ A normalised copy of the dataset behind the `mteb` task **`QuoraRetrieval`**, one of the tasks of the [BEIR](https://github.com/beir-cellar/beir) benchmark as `mteb` defines it. Same queries, documents
38
+ and relevance judgements as the benchmark evaluates — reshaped into one strict schema shared by every dataset
39
+ in this collection.
 
 
 
 
 
 
 
 
40
 
41
+ | | |
42
+ |---|---|
43
+ | Source | [`mteb/quora`](https://huggingface.co/datasets/mteb/quora/tree/e4e08e0b7dbe3c8700f0daef558ff32256715259) @ `e4e08e0b7dbe` (the revision pinned in `mteb`) |
44
+ | Domain · languages | duplicate-question · eng |
45
+ | Queries / documents / qrels (all splits) | 15,000 / 522,931 / 23,301 |
46
+ | Qrels per query | min 1 · mean 1.567 · max 75 |
47
+ | Score values | 1 ×15,675 |
48
+ | Layout | `queries` · `corpus` · `qrels`, split `test`; `queries`/`qrels` also carry `dev` — one shared corpus |
49
+ | Splits | `qrels`: dev, test · `queries`: dev, test |
50
+ | License | `cc-by-sa-4.0` |
51
 
52
+ ## Schema
53
 
54
+ | config | columns | rules |
55
+ |---|---|---|
56
+ | `queries` | `id: string`, `text: string` | ids unique and non-empty; every query has ≥ 1 qrel |
57
+ | `corpus` | `id: string`, `title: string`, `text: string` | `title` is always present (`""` when the source has none) |
58
+ | `qrels` | `query-id: string`, `corpus-id: string`, `score: int32` | referential integrity to both tables; no duplicate pairs; no floats |
59
 
60
+ Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule above is enforced by a validator
61
+ before publishing; `provenance.json` records the source file hashes, what changed, and the output file hashes.
62
 
63
+ ## What changed from the source
 
64
 
65
+ - `dev`: dropped 10,000 queries that have no qrels in this split (mteb does the same at load time)
66
+ - `test`: dropped 5,000 queries that have no qrels in this split (mteb does the same at load time)
67
+ - cast `qrels.score` double -> int32
68
+ - kept 568 documents whose text is identical to another document's — a property of the source; note that models embed such documents identically and retrieval ties among them are broken by corpus order
69
+ - renamed `_id` → `id`
70
+ - renamed source splits (`queries`←`queries/queries`, `corpus`←`corpus/corpus`) to `test`
71
 
72
+ ## Load it
 
73
 
74
  ```python
75
  from datasets import load_dataset
76
+ queries = load_dataset("Hyukkyu/beir-quora", "queries", split="test")
77
+ corpus = load_dataset("Hyukkyu/beir-quora", "corpus", split="test")
78
+ qrels = load_dataset("Hyukkyu/beir-quora", "qrels", split="test")
 
 
 
79
  ```
80
 
81
+ ## Cross-check against the previous layout
82
 
83
+ This repo previously held the same dataset in BEIR's raw two-repo form (`Hyukkyu/beir-quora` + `Hyukkyu/beir-quora-qrels`; that layout is kept under the git tag `legacy-layout`). Before replacing it, the build was compared against it: corpus id set **identical** (522,931 documents); qrels rows per split `test` 15,675 = 15,675, `dev` 7,626 = 7,626.
 
 
 
84
 
85
+ ## License and attribution
 
86
 
87
+ The data is redistributed under the source's terms — `cc-by-sa-4.0`. All credit belongs to the
88
+ original authors; see the source repository and the references in `mteb`'s task metadata.
89
+ This repository is an independent repackaging and is not affiliated with the RTEB or MTEB maintainers.
90
 
91
+ > **License discrepancy.** The upstream dataset card declares `cc-by-sa-4.0` while `mteb`'s `TaskMetadata` declares `None`. This card carries the upstream value as the more conservative choice.
 
 
 
 
 
 
 
 
 
 
 
 
 
corpus/{train-00000-of-00001.parquet → test-00000-of-00001.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:46d236a530b1e7eb2df24aa7bad1c83b7cb299f2991b988c18f59c80204ad0e6
3
- size 23626447
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1275bae53e6707f7dc6a0d7d3d293513c8bad9ea7e8ebba85ff1ef25285bbc1
3
+ size 16192424
provenance.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "task": "QuoraRetrieval",
3
+ "benchmark": "beir",
4
+ "repo": "beir-quora",
5
+ "rteb_open_version": "0.1.0",
6
+ "source": {
7
+ "path": "mteb/quora",
8
+ "revision": "e4e08e0b7dbe3c8700f0daef558ff32256715259",
9
+ "url": "https://huggingface.co/datasets/mteb/quora/tree/e4e08e0b7dbe3c8700f0daef558ff32256715259"
10
+ },
11
+ "license": {
12
+ "card": "cc-by-sa-4.0",
13
+ "mteb_task_metadata": null,
14
+ "upstream_checked": true
15
+ },
16
+ "languages": [
17
+ "eng"
18
+ ],
19
+ "domain": "duplicate-question",
20
+ "byte_preserving_text": false,
21
+ "layout": {
22
+ "subsets": null,
23
+ "splits": [
24
+ "test",
25
+ "dev"
26
+ ],
27
+ "split_map": {
28
+ "test": "test",
29
+ "dev": "dev"
30
+ }
31
+ },
32
+ "parts": [
33
+ {
34
+ "subset": null,
35
+ "split": "test",
36
+ "source_configs": {
37
+ "queries": "queries/queries",
38
+ "corpus": "corpus/corpus",
39
+ "qrels": "default/test"
40
+ },
41
+ "normalize": {
42
+ "dropped_columns": {},
43
+ "orphan_queries_dropped": 5000,
44
+ "duplicate_qrels_collapsed": 0,
45
+ "nul_bytes_removed": 0,
46
+ "score_cast": "double -> int32",
47
+ "id_renamed": true,
48
+ "title_added": false,
49
+ "null_titles_filled": 0
50
+ },
51
+ "stats": {
52
+ "n_corpus": 522931,
53
+ "empty_docs": 0,
54
+ "corpus_with_title": 0,
55
+ "avg_doc_chars": 62.2,
56
+ "n_queries": 10000,
57
+ "n_qrels": 15675,
58
+ "qrels_per_query": {
59
+ "min": 1,
60
+ "mean": 1.567,
61
+ "max": 75
62
+ },
63
+ "score_values": {
64
+ "1": 15675
65
+ },
66
+ "dangling_qrels": 0,
67
+ "avg_query_chars": 51.5,
68
+ "duplicate_text_docs": 568
69
+ }
70
+ },
71
+ {
72
+ "subset": null,
73
+ "split": "dev",
74
+ "source_configs": {
75
+ "queries": "queries/queries",
76
+ "corpus": "corpus/corpus",
77
+ "qrels": "default/dev"
78
+ },
79
+ "normalize": {
80
+ "dropped_columns": {},
81
+ "orphan_queries_dropped": 10000,
82
+ "duplicate_qrels_collapsed": 0,
83
+ "nul_bytes_removed": 0,
84
+ "score_cast": "double -> int32",
85
+ "id_renamed": true,
86
+ "title_added": false,
87
+ "null_titles_filled": 0
88
+ },
89
+ "stats": {
90
+ "n_corpus": 522931,
91
+ "empty_docs": 0,
92
+ "corpus_with_title": 0,
93
+ "avg_doc_chars": 62.2,
94
+ "n_queries": 5000,
95
+ "n_qrels": 7626,
96
+ "qrels_per_query": {
97
+ "min": 1,
98
+ "mean": 1.525,
99
+ "max": 84
100
+ },
101
+ "score_values": {
102
+ "1": 7626
103
+ },
104
+ "dangling_qrels": 0,
105
+ "avg_query_chars": 51.5,
106
+ "duplicate_text_docs": 568
107
+ }
108
+ }
109
+ ],
110
+ "files": {
111
+ "corpus": {
112
+ "test": [
113
+ {
114
+ "path": "corpus/test-00000-of-00001.parquet",
115
+ "rows": 522931,
116
+ "bytes": 16192424,
117
+ "sha256": "b1275bae53e6707f7dc6a0d7d3d293513c8bad9ea7e8ebba85ff1ef25285bbc1"
118
+ }
119
+ ]
120
+ },
121
+ "queries": {
122
+ "test": [
123
+ {
124
+ "path": "queries/test-00000-of-00001.parquet",
125
+ "rows": 10000,
126
+ "bytes": 302054,
127
+ "sha256": "8ed7ff4aae765443603c3cffbb75789f7537c9ab3f2eaa2a3c26135290a3f699"
128
+ }
129
+ ],
130
+ "dev": [
131
+ {
132
+ "path": "queries/dev-00000-of-00001.parquet",
133
+ "rows": 5000,
134
+ "bytes": 151545,
135
+ "sha256": "cf54bd7cfc790f2a31dee80dc7b11f5cd6f380f71e0552f96e5c85316bfddd34"
136
+ }
137
+ ]
138
+ },
139
+ "qrels": {
140
+ "test": [
141
+ {
142
+ "path": "qrels/test-00000-of-00001.parquet",
143
+ "rows": 15675,
144
+ "bytes": 138763,
145
+ "sha256": "ad221f7dfb2e540dcdc36f4a19674a7310ea6f2722658bf1dcfbe42eee0fb488"
146
+ }
147
+ ],
148
+ "dev": [
149
+ {
150
+ "path": "qrels/dev-00000-of-00001.parquet",
151
+ "rows": 7626,
152
+ "bytes": 67491,
153
+ "sha256": "e4ecbc05ea5e8216332792688d7fef991cfacb1402e859011a30be105c912996"
154
+ }
155
+ ]
156
+ }
157
+ },
158
+ "stats_total": {
159
+ "n_queries": 15000,
160
+ "n_corpus": 522931,
161
+ "n_qrels": 23301
162
+ },
163
+ "source_files": [
164
+ {
165
+ "path": ".gitattributes",
166
+ "size": 2406,
167
+ "sha256": null,
168
+ "blob_id": "80f8495df3315d75669d8adee26b2c0f409ed338"
169
+ },
170
+ {
171
+ "path": "README.md",
172
+ "size": 1322,
173
+ "sha256": null,
174
+ "blob_id": "9f21086d14584929fe32f9554198550c836fe03f"
175
+ },
176
+ {
177
+ "path": "corpus.jsonl",
178
+ "size": 54969064,
179
+ "sha256": "897ad69163fa1963a359b0a61a0122360171964a342bb64a5377e4cd230f8669",
180
+ "blob_id": "3b54e7185296239c6981a52a73ac24ba37aed0e1"
181
+ },
182
+ {
183
+ "path": "qrels/dev.jsonl",
184
+ "size": 452541,
185
+ "sha256": null,
186
+ "blob_id": "229cb6f0ef36af5f56a1a71ed5de2628455f2519"
187
+ },
188
+ {
189
+ "path": "qrels/dev.tsv",
190
+ "size": 124649,
191
+ "sha256": null,
192
+ "blob_id": "f418aba4c8eb078abbd0b425ba09f829b3571f79"
193
+ },
194
+ {
195
+ "path": "qrels/test.jsonl",
196
+ "size": 929697,
197
+ "sha256": null,
198
+ "blob_id": "fa547c987a4eaef48d76a2bf12a3efcaac023fee"
199
+ },
200
+ {
201
+ "path": "qrels/test.tsv",
202
+ "size": 255698,
203
+ "sha256": null,
204
+ "blob_id": "735eb098b4b05a0b1a80c7bccbe07b3cfa2ba207"
205
+ },
206
+ {
207
+ "path": "queries.jsonl",
208
+ "size": 1220859,
209
+ "sha256": "6118440a0d51713c984d1fce8c0f0dabd7b1c99cffee0751bca6c0e81b031e28",
210
+ "blob_id": "7cc035d4fe9c27435e6157ffb836578c12b74a15"
211
+ }
212
+ ],
213
+ "build": {
214
+ "timestamp_utc": "2026-09-08T05:15:13Z",
215
+ "seconds": 11.7,
216
+ "peak_rss_gb": 2.55,
217
+ "python": "3.11.0",
218
+ "pyarrow": "25.0.1",
219
+ "datasets": "5.0.1",
220
+ "polars": "1.44.1"
221
+ },
222
+ "crosscheck": {
223
+ "legacy_repo": "Hyukkyu/beir-quora",
224
+ "legacy_qrels_repo": "Hyukkyu/beir-quora-qrels",
225
+ "corpus": {
226
+ "legacy_rows": 522931,
227
+ "build_rows": 522931,
228
+ "same_id_set": true
229
+ },
230
+ "qrels": {
231
+ "test": {
232
+ "legacy_split": "test",
233
+ "legacy_rows": 15675,
234
+ "build_rows": 15675,
235
+ "same_rows": true
236
+ },
237
+ "dev": {
238
+ "legacy_split": "dev",
239
+ "legacy_rows": 7626,
240
+ "build_rows": 7626,
241
+ "same_rows": true
242
+ }
243
+ },
244
+ "status": "match"
245
+ }
246
+ }
queries/train-00000-of-00001.parquet → qrels/dev-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:32e218528180614e9972ddff156a915758691d3130dc13913e465a4e7e34da03
3
- size 647448
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4ecbc05ea5e8216332792688d7fef991cfacb1402e859011a30be105c912996
3
+ size 67491
qrels/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad221f7dfb2e540dcdc36f4a19674a7310ea6f2722658bf1dcfbe42eee0fb488
3
+ size 138763
queries/dev-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf54bd7cfc790f2a31dee80dc7b11f5cd6f380f71e0552f96e5c85316bfddd34
3
+ size 151545
queries/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ed7ff4aae765443603c3cffbb75789f7537c9ab3f2eaa2a3c26135290a3f699
3
+ size 302054