Darksabre777 CSI-lab commited on
Commit
a8a2cf0
·
0 Parent(s):

Duplicate from CSI-lab/RCW_2025_Positive_Query_Pairs

Browse files

Co-authored-by: Complex Social Interactions Lab <CSI-lab@users.noreply.huggingface.co>

Files changed (3) hide show
  1. .gitattributes +61 -0
  2. RCW_Query_Pairs_Dataset.jsonl +3 -0
  3. README.md +77 -0
.gitattributes ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp filter=lfs diff=lfs merge=lfs -text
58
+ # Video files - compressed
59
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ *.webm filter=lfs diff=lfs merge=lfs -text
61
+ RCW_Query_Pairs_Dataset.jsonl filter=lfs diff=lfs merge=lfs -text
RCW_Query_Pairs_Dataset.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e729bdc61544aa929d7bd907c5f6f5e0e8a0d4111d8add2965a69881499f410
3
+ size 1002985213
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - sentence-similarity
5
+ - text-classification
6
+ - question-answering
7
+ language:
8
+ - en
9
+ tags:
10
+ - law
11
+ - RCW
12
+ - legal
13
+ - Washington
14
+ - retrieval-augmented-generation
15
+ - synthetic-data
16
+ pretty_name: The Washington Law Benchmark (WPB)
17
+ size_categories:
18
+ - 100K<n<1M
19
+ ---
20
+
21
+ # The Washington law Benchmark (WLB)
22
+
23
+ ## Dataset Summary
24
+
25
+ The **Washington Law Benchmark (WLB)** is a large-scale, synthetic dataset designed specifically to advance Legal Information Retrieval (IR) and Semantic Search. It bridges the critical "semantic gap" between natural language (how citizens, local governments, and plain-English users describe legal scenarios) and formal statutory legalese (how laws are actually written).
26
+
27
+ The dataset contains hundreds of thousands of meticulously paired examples mapping plain-English queries, hypothetical scenarios, and local legislative drafts directly to their governing **Washington State Statutes (Revised Code of Washington - RCW)**.
28
+
29
+ This dataset is ideal for fine-tuning dense retrievers (like `bge`, `e5`, or `MiniLM`) using contrastive learning techniques such as Multiple Negatives Ranking (MNR) loss.
30
+
31
+ ## Supported Tasks
32
+ * **Sentence Similarity & Information Retrieval:** The primary use case. Train models to retrieve the correct RCW given a plain-English query.
33
+ * **Retrieval-Augmented Generation (RAG):** Evaluate the retrieval step of legal AI assistants and chatbots.
34
+ * **Text Classification:** Categorize legal queries into one of the 500+ distinct legal domains included in the metadata.
35
+
36
+ ## Dataset Structure
37
+
38
+ ### Data Instances
39
+ Each row in the dataset represents a 1-to-1 positive pair between a synthetic query and a real state law.
40
+
41
+ ```json
42
+
43
+ {
44
+ "query_type": "natural_language",
45
+ "query": "what are the rules for suing a washington state county",
46
+ "context": "RCW 4.08.120 - Action against public corporations. An action may be maintained against a county or other of the public corporations mentioned or described in RCW 4.08.110 ,
47
+ either upon a contract made by such county, or other public corporation in its corporate character and within the scope of its authority, or for an injury to the rights of the plaintiff arising from some act or omission of such county or other public corporation.
48
+ [ 1953 c 118 s 2 . Prior: Code 1881 s 662; 1869 p 154 s 602 ; RRS s 951.]"
49
+ "metadata": {
50
+ "rcw_number": "4.08.120",
51
+ "title": "Action against public corporations."
52
+ }
53
+ }
54
+ {
55
+ "query_type": "exact_keyword",
56
+ "query": "RCW 4.12 washington superior court new county",
57
+ "context": "RCW 4.12.070 - Change to newly created county. Any party in a civil action pending in the superior court in a county out of whose limits a new county,
58
+ in whole or in part, has been created, may file with the clerk of such superior court an affidavit setting forth that he or she is a resident of such newly created county, and that the venue of such action is transitory, or that the venue of such action is local, and that it ought properly to be tried in such newly created county; and thereupon the clerk shall make out a transcript of the proceedings already had in such action in such superior court, and certify it under the seal of the court, and transmit such transcript, together with the papers on file in his or her office connected with such action, to the clerk of the superior court of such newly created county, wherein it shall be proceeded with as in other cases.
59
+ [ 2011 c 336 s 80 ; 1891 c 33 s 2 ; Code 1881 s 53; 1877 p 12 s 54 ; 1869 p 14 s 54 ; 1854 p 377 s 2 ; RRS s 211.]"
60
+ "metadata": {
61
+ "rcw_number": "4.12.070",
62
+ "title": "Change to newly created county."
63
+ }
64
+ }
65
+ ```
66
+
67
+ # Citation
68
+ ```
69
+ @misc{wlb_dataset_2026,
70
+ title={The Washington Law Benchmark (WLB): A Synthetic Dataset for Legal Information Retrieval},
71
+ author={Tomar, Shlok},
72
+ year={2026},
73
+ publisher={Hugging Face},
74
+ howpublished={\url{https://huggingface.co/datasets/CSI-lab/RCW_2025_Positive_Query_Pairs}},
75
+ note={Hugging Face Dataset Repository}
76
+ }
77
+ ```