umarbutler commited on
Commit
6f9d6b6
ยท
verified ยท
1 Parent(s): 2e85cd5

docs: add README

Browse files
Files changed (1) hide show
  1. README.md +105 -3
README.md CHANGED
@@ -1,3 +1,105 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ task_categories:
4
+ - text-retrieval
5
+ - question-answering
6
+ - text-ranking
7
+ language:
8
+ - en
9
+ tags:
10
+ - legal
11
+ - law
12
+ - legislative
13
+ size_categories:
14
+ - n<1K
15
+ source_datasets:
16
+ - reglab/housing_qa
17
+ dataset_info:
18
+ - config_name: default
19
+ features:
20
+ - name: query-id
21
+ dtype: string
22
+ - name: corpus-id
23
+ dtype: string
24
+ - name: score
25
+ dtype: float64
26
+ splits:
27
+ - name: test
28
+ num_examples: 500
29
+ - config_name: corpus
30
+ features:
31
+ - name: _id
32
+ dtype: string
33
+ - name: title
34
+ dtype: string
35
+ - name: text
36
+ dtype: string
37
+ splits:
38
+ - name: corpus
39
+ num_examples: 373
40
+ - config_name: queries
41
+ features:
42
+ - name: _id
43
+ dtype: string
44
+ - name: text
45
+ dtype: string
46
+ splits:
47
+ - name: queries
48
+ num_examples: 92
49
+ configs:
50
+ - config_name: default
51
+ data_files:
52
+ - split: test
53
+ path: data/default.jsonl
54
+ - config_name: corpus
55
+ data_files:
56
+ - split: corpus
57
+ path: data/corpus.jsonl
58
+ - config_name: queries
59
+ data_files:
60
+ - split: queries
61
+ path: data/queries.jsonl
62
+ pretty_name: HousingQA (MTEB format)
63
+ ---
64
+ # HousingQA (MTEB format)
65
+ This is the [HousingQA](https://huggingface.co/datasets/reglab/housing_qa) evaluation dataset formatted in the [Massive Text Embedding Benchmark (MTEB)](https://github.com/embeddings-benchmark/mteb) information retrieval dataset format.
66
+
67
+ This dataset is intended to facilitate the consistent and reproducible evaluation of information retrieval models on HousingQA with the [`mteb`](https://github.com/embeddings-benchmark/mteb) embedding model evaluation framework.
68
+
69
+ More specifically, this dataset tests the ability of information retrieval models to retrieve relevant legislation to complex, reasoning-intensive legal questions.
70
+
71
+ This dataset has been processed into the MTEB format by [Isaacus](https://isaacus.com/), a legal AI research company.
72
+
73
+ ## Structure ๐Ÿ—‚๏ธ
74
+ As per the MTEB information retrieval dataset format, this dataset comprises three splits, `default`, `corpus`, and `queries`.
75
+
76
+ The `default` split pairs questions (`query-id`) with relevant legislation (`corpus-id`), each pair having a `score` of 1.
77
+
78
+ The `corpus` split contains legislation, with the text of a law being stored in the `text` key and its id being stored in the `_id` key. There is also a `title` column, which is deliberately set to an empty string in all cases for compatibility with the [`mteb`](https://github.com/embeddings-benchmark/mteb) library.
79
+
80
+ The `queries` split contains questions, with the text of a question being stored in the `text` key and its id being stored in the `_id` key.
81
+
82
+ ## Methodology ๐Ÿงช
83
+ To understand how HousingQA itself was created, refer to its [documentation](https://huggingface.co/datasets/reglab/housing_qa).
84
+
85
+ This dataset was formatted by taking the test split of HousingQA and treating questions as anchors and relevant legislation as positive passages. 500 examples were randomly sampled in order to keep the size of this dataset manageable.
86
+
87
+ ## License ๐Ÿ“œ
88
+ To the extent that any intellectual property rights reside in the contributions made by Isaacus in formatting and processing this dataset, Isaacus licenses those contributions under the same license terms as the source dataset. You are free to use this dataset without citing Isaacus.
89
+
90
+ The source dataset is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
91
+
92
+ ## Citation ๐Ÿ”–
93
+ ```bibtex
94
+ @inproceedings{Zheng_2025, series={CSLAW โ€™25},
95
+ title={A Reasoning-Focused Legal Retrieval Benchmark},
96
+ url={http://dx.doi.org/10.1145/3709025.3712219},
97
+ DOI={10.1145/3709025.3712219},
98
+ eprint={10.1145/3709025.3712219},
99
+ booktitle={Proceedings of the Symposium on Computer Science and Law},
100
+ publisher={ACM},
101
+ author={Zheng, Lucia and Guha, Neel and Arifov, Javokhir and Zhang, Sarah and Skreta, Michal and Manning, Christopher D. and Henderson, Peter and Ho, Daniel E.},
102
+ year={2025},
103
+ month=mar, pages={169โ€“193},
104
+ collection={CSLAW โ€™25} }
105
+ ```