Datasets:
Tasks:
Text Retrieval
Modalities:
Text
Formats:
parquet
Sub-tasks:
document-retrieval
Languages:
German
Size:
< 1K
License:
build LegalQuAD from mteb/LegalQuAD@37aa6cfb · rteb_open v0.1.0
Browse files- README.md +78 -0
- corpus/test-00000-of-00001.parquet +3 -0
- provenance.json +139 -0
- qrels/test-00000-of-00001.parquet +3 -0
- queries/test-00000-of-00001.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: RTEB · LegalQuAD
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
language:
|
| 5 |
+
- de
|
| 6 |
+
multilinguality:
|
| 7 |
+
- monolingual
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-retrieval
|
| 10 |
+
task_ids:
|
| 11 |
+
- document-retrieval
|
| 12 |
+
tags:
|
| 13 |
+
- rteb
|
| 14 |
+
- mteb
|
| 15 |
+
- retrieval
|
| 16 |
+
- legal
|
| 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 |
+
- config_name: queries
|
| 27 |
+
data_files:
|
| 28 |
+
- split: test
|
| 29 |
+
path: queries/test-*.parquet
|
| 30 |
+
---
|
| 31 |
+
# LegalQuAD — RTEB open subset, unified schema
|
| 32 |
+
|
| 33 |
+
A normalised copy of the dataset behind the `mteb` task **`LegalQuAD`**, one of the 17 open tasks in the
|
| 34 |
+
[RTEB(beta)](https://huggingface.co/blog/rteb) retrieval benchmark. Same queries, documents and relevance
|
| 35 |
+
judgements as the benchmark evaluates — reshaped into one strict schema shared by all 17.
|
| 36 |
+
|
| 37 |
+
| | |
|
| 38 |
+
|---|---|
|
| 39 |
+
| Source | [`mteb/LegalQuAD`](https://huggingface.co/datasets/mteb/LegalQuAD/tree/37aa6cfb01d48960b0f8e3f17d6e3d99bf1ebc3e) @ `37aa6cfb01d4` (the revision pinned in `mteb`) |
|
| 40 |
+
| Domain · languages | legal · deu |
|
| 41 |
+
| Queries / documents / qrels | 200 / 200 / 200 |
|
| 42 |
+
| Qrels per query | min 1 · mean 1.0 · max 1 |
|
| 43 |
+
| Score values | 1 ×200 |
|
| 44 |
+
| Layout | `queries` · `corpus` · `qrels`, split `test` |
|
| 45 |
+
| License | `cc-by-4.0` |
|
| 46 |
+
|
| 47 |
+
## Schema
|
| 48 |
+
|
| 49 |
+
| config | columns | rules |
|
| 50 |
+
|---|---|---|
|
| 51 |
+
| `queries` | `id: string`, `text: string` | ids unique and non-empty; every query has ≥ 1 qrel |
|
| 52 |
+
| `corpus` | `id: string`, `title: string`, `text: string` | `title` is always present (`""` when the source has none) |
|
| 53 |
+
| `qrels` | `query-id: string`, `corpus-id: string`, `score: int32` | referential integrity to both tables; no duplicate pairs; no floats |
|
| 54 |
+
|
| 55 |
+
Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule above is enforced by a validator
|
| 56 |
+
before publishing; `provenance.json` records the source file hashes, what changed, and the output file hashes.
|
| 57 |
+
|
| 58 |
+
## What changed from the source
|
| 59 |
+
|
| 60 |
+
- cast `qrels.score` double -> int32
|
| 61 |
+
- removed NUL bytes from text (prose dataset)
|
| 62 |
+
- renamed `_id` → `id`
|
| 63 |
+
- renamed source splits (`queries`←`queries/queries`, `corpus`←`corpus/corpus`, `qrels`←`default/test`) to `test`
|
| 64 |
+
|
| 65 |
+
## Load it
|
| 66 |
+
|
| 67 |
+
```python
|
| 68 |
+
from datasets import load_dataset
|
| 69 |
+
queries = load_dataset("Hyukkyu/rteb-LegalQuAD", "queries", split="test")
|
| 70 |
+
corpus = load_dataset("Hyukkyu/rteb-LegalQuAD", "corpus", split="test")
|
| 71 |
+
qrels = load_dataset("Hyukkyu/rteb-LegalQuAD", "qrels", split="test")
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
## License and attribution
|
| 75 |
+
|
| 76 |
+
The data is redistributed under the source's terms — `cc-by-4.0`. All credit belongs to the
|
| 77 |
+
original authors; see the source repository and the references in `mteb`'s task metadata (https://github.com/Christoph911/AIKE2021_Appendix).
|
| 78 |
+
This repository is an independent repackaging and is not affiliated with the RTEB or MTEB maintainers.
|
corpus/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4de69d66e9398c8172ed7cc377f8d73dc49048453fa6816e34873e112d636884
|
| 3 |
+
size 1282809
|
provenance.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": "LegalQuAD",
|
| 3 |
+
"repo": "rteb-LegalQuAD",
|
| 4 |
+
"rteb_open_version": "0.1.0",
|
| 5 |
+
"source": {
|
| 6 |
+
"path": "mteb/LegalQuAD",
|
| 7 |
+
"revision": "37aa6cfb01d48960b0f8e3f17d6e3d99bf1ebc3e",
|
| 8 |
+
"url": "https://huggingface.co/datasets/mteb/LegalQuAD/tree/37aa6cfb01d48960b0f8e3f17d6e3d99bf1ebc3e"
|
| 9 |
+
},
|
| 10 |
+
"license": {
|
| 11 |
+
"card": "cc-by-4.0",
|
| 12 |
+
"mteb_task_metadata": "cc-by-4.0",
|
| 13 |
+
"upstream_checked": false
|
| 14 |
+
},
|
| 15 |
+
"languages": [
|
| 16 |
+
"deu"
|
| 17 |
+
],
|
| 18 |
+
"domain": "legal",
|
| 19 |
+
"byte_preserving_text": false,
|
| 20 |
+
"layout": {
|
| 21 |
+
"subsets": null,
|
| 22 |
+
"splits": [
|
| 23 |
+
"test"
|
| 24 |
+
]
|
| 25 |
+
},
|
| 26 |
+
"parts": [
|
| 27 |
+
{
|
| 28 |
+
"subset": null,
|
| 29 |
+
"split": "test",
|
| 30 |
+
"source_configs": {
|
| 31 |
+
"queries": "queries/queries",
|
| 32 |
+
"corpus": "corpus/corpus",
|
| 33 |
+
"qrels": "default/test"
|
| 34 |
+
},
|
| 35 |
+
"normalize": {
|
| 36 |
+
"dropped_columns": {},
|
| 37 |
+
"orphan_queries_dropped": 0,
|
| 38 |
+
"duplicate_qrels_collapsed": 0,
|
| 39 |
+
"null_titles_filled": 0,
|
| 40 |
+
"score_cast": "double -> int32",
|
| 41 |
+
"id_renamed": true
|
| 42 |
+
},
|
| 43 |
+
"stats": {
|
| 44 |
+
"n_queries": 200,
|
| 45 |
+
"n_corpus": 200,
|
| 46 |
+
"n_qrels": 200,
|
| 47 |
+
"qrels_per_query": {
|
| 48 |
+
"min": 1,
|
| 49 |
+
"mean": 1.0,
|
| 50 |
+
"max": 1
|
| 51 |
+
},
|
| 52 |
+
"score_values": {
|
| 53 |
+
"1": 200
|
| 54 |
+
},
|
| 55 |
+
"dangling_qrels": 0,
|
| 56 |
+
"corpus_with_title": 0,
|
| 57 |
+
"avg_query_chars": 72.0,
|
| 58 |
+
"avg_doc_chars": 19482.0
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
],
|
| 62 |
+
"files": {
|
| 63 |
+
"queries": {
|
| 64 |
+
"test": [
|
| 65 |
+
{
|
| 66 |
+
"path": "queries/test-00000-of-00001.parquet",
|
| 67 |
+
"rows": 200,
|
| 68 |
+
"bytes": 8085,
|
| 69 |
+
"sha256": "36fab25b1325aa39f492ff5e6f553d1948173648887b105ba64441aadf9afc07"
|
| 70 |
+
}
|
| 71 |
+
]
|
| 72 |
+
},
|
| 73 |
+
"corpus": {
|
| 74 |
+
"test": [
|
| 75 |
+
{
|
| 76 |
+
"path": "corpus/test-00000-of-00001.parquet",
|
| 77 |
+
"rows": 200,
|
| 78 |
+
"bytes": 1282809,
|
| 79 |
+
"sha256": "4de69d66e9398c8172ed7cc377f8d73dc49048453fa6816e34873e112d636884"
|
| 80 |
+
}
|
| 81 |
+
]
|
| 82 |
+
},
|
| 83 |
+
"qrels": {
|
| 84 |
+
"test": [
|
| 85 |
+
{
|
| 86 |
+
"path": "qrels/test-00000-of-00001.parquet",
|
| 87 |
+
"rows": 200,
|
| 88 |
+
"bytes": 3170,
|
| 89 |
+
"sha256": "b81df9e8b28ed35e29d82e98bced796d398e32a6d67aca7075344b7d3a977299"
|
| 90 |
+
}
|
| 91 |
+
]
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
"stats_total": {
|
| 95 |
+
"n_queries": 200,
|
| 96 |
+
"n_corpus": 200,
|
| 97 |
+
"n_qrels": 200
|
| 98 |
+
},
|
| 99 |
+
"source_files": [
|
| 100 |
+
{
|
| 101 |
+
"path": ".gitattributes",
|
| 102 |
+
"size": 2406,
|
| 103 |
+
"sha256": null,
|
| 104 |
+
"blob_id": "80f8495df3315d75669d8adee26b2c0f409ed338"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"path": "README.md",
|
| 108 |
+
"size": 1672,
|
| 109 |
+
"sha256": null,
|
| 110 |
+
"blob_id": "1ee7882419caab821a29ac5b62801e474aec3e44"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"path": "corpus.jsonl",
|
| 114 |
+
"size": 4232443,
|
| 115 |
+
"sha256": "8386d84536438970005fa167ac2c455b21abbc038c94dc1acb1d805149fa092f",
|
| 116 |
+
"blob_id": "69e7fd50db2edd82cffdbd7c82ee89b367195921"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"path": "qrels/test.jsonl",
|
| 120 |
+
"size": 12200,
|
| 121 |
+
"sha256": null,
|
| 122 |
+
"blob_id": "091d9431e4499ca330bf996ceed5a2f99a48da5a"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"path": "queries.jsonl",
|
| 126 |
+
"size": 21320,
|
| 127 |
+
"sha256": "374918cd3199ae3d59c55df5aa8b7e128a64b38abbe56aa2c7bdf4510cd1fc7e",
|
| 128 |
+
"blob_id": "b1874cae8f97b9f8449e5fe3f1129bbe0c48be50"
|
| 129 |
+
}
|
| 130 |
+
],
|
| 131 |
+
"build": {
|
| 132 |
+
"timestamp_utc": "2026-09-08T02:31:25Z",
|
| 133 |
+
"seconds": 7.2,
|
| 134 |
+
"python": "3.11.0",
|
| 135 |
+
"pyarrow": "25.0.1",
|
| 136 |
+
"datasets": "5.0.1",
|
| 137 |
+
"polars": "1.44.1"
|
| 138 |
+
}
|
| 139 |
+
}
|
qrels/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b81df9e8b28ed35e29d82e98bced796d398e32a6d67aca7075344b7d3a977299
|
| 3 |
+
size 3170
|
queries/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36fab25b1325aa39f492ff5e6f553d1948173648887b105ba64441aadf9afc07
|
| 3 |
+
size 8085
|