tann9949 commited on
Commit
2e3cb57
Β·
1 Parent(s): 19d72aa

update README.md

Browse files
README.md CHANGED
@@ -9,4 +9,113 @@ tags:
9
  - LCLM
10
  size_categories:
11
  - 10K<n<100K
12
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  - LCLM
10
  size_categories:
11
  - 10K<n<100K
12
+ configs:
13
+ - config_name: default
14
+ data_files:
15
+ - split: ccl
16
+ path: data/nitibench-ccl.parquet
17
+ - split: tax
18
+ path: data/nitibench-tax.parquet
19
+ ---
20
+
21
+ # πŸ‘©πŸ»β€βš–οΈ NitiBench: A Thai Legal Benchmark for RAG
22
+
23
+ **[[πŸ“„ Technical Report]()]**
24
+
25
+ This dataset provides the **test** data for evaluating LLM frameworks, such as RAG or LCLM. The benchmark consists of two datasets:
26
+ - [NitiBench-CCL](#️-nitibench-ccl)
27
+ - [NitiBench-Tax](#-nitibench-tax)
28
+
29
+ ## πŸ›οΈ NitiBench-CCL
30
+
31
+ Derived from the [WangchanX-Legal-ThaiCCL-RAG Dataset](https://huggingface.co/datasets/airesearch/WangchanX-Legal-ThaiCCL-RAG), our version includes an additional preprocessing step in which we separate the reasoning process from the final answer. The dataset contains 35 pieces of legislation related to **C**orporate and **C**ommercial **L**aw (CCL). Information about the 35 pieces of legislation is provided in the table below:
32
+
33
+ | Legislation | Legal Terminology | Training | Test |
34
+ |-------------|-------------------|----------|------|
35
+ | Organic Act on Counter Corruption, B.E. 2561 | organic law | βœ“ | |
36
+ | Civil and Commercial Code | code | βœ“ | βœ“ |
37
+ | Revenue Code | code | βœ“ | βœ“ |
38
+ | Accounting Act, B.E. 2543 | act | βœ“ | βœ“ |
39
+ | Accounting Profession Act, B.E. 2547 | act | βœ“ | βœ“ |
40
+ | Act on Disciplinary Offenses of Government Officials Performing Duties in Agencies Other than Government Agencies, B.E. 2534 | act | βœ“ | |
41
+ | Act on Offences of Officials Working in State Agencies or Organizations, B.E. 2502 | act | βœ“ | |
42
+ | Act on Offences Relating to Registered Partnerships, Limited Partnerships, Companies Limited, Associations and Foundations, B.E. 2499 | act | βœ“ | βœ“ |
43
+ | Act on the Establishment of Government Organizations, B.E. 2496 | act | βœ“ | |
44
+ | Act on the Management of Shares and Stocks of Ministers, B.E. 2543 | act | βœ“ | |
45
+ | Act Repealing the Agricultural Futures Trading Act, B.E. 2542 B.E. 2558 | act | βœ“ | |
46
+ | Budget Procedure Act, B.E. 2561 | act | βœ“ | |
47
+ | Business Registration Act, B.E. 2499 | act | βœ“ | βœ“ |
48
+ | Chamber of Commerce Act, B.E. 2509 | act | βœ“ | βœ“ |
49
+ | Derivatives Act, B.E. 2546 | act | βœ“ | βœ“ |
50
+ | Energy Conservation Promotion Act, B.E. 2535 | act | βœ“ | βœ“ |
51
+ | Energy Industry Act, B.E. 2550 | act | βœ“ | βœ“ |
52
+ | Financial Institutions Business Act, B.E. 2551 | act | βœ“ | βœ“ |
53
+ | Fiscal Discipline Act, B.E. 2561 | act | βœ“ | |
54
+ | Foreign Business Act, B.E. 2542 | act | βœ“ | βœ“ |
55
+ | Government Procurement and Supplies Management Act, B.E. 2560 | act | βœ“ | |
56
+ | National Economic and Social Development Act, B.E. 2561 | act | βœ“ | |
57
+ | Petroleum Income Tax Act, B.E. 2514 | act | βœ“ | βœ“ |
58
+ | Provident Fund Act, B.E. 2530 | act | βœ“ | βœ“ |
59
+ | Public Limited Companies Act, B.E. 2535 | act | βœ“ | βœ“ |
60
+ | Secured Transactions Act, B.E. 2558 | act | βœ“ | βœ“ |
61
+ | Securities and Exchange Act, B.E. 2535 | act | βœ“ | βœ“ |
62
+ | State Enterprise Capital Act, B.E. 2542 | act | βœ“ | |
63
+ | State Enterprise Committee and Personnel Qualifications Standards Act, B.E. 2518 | act | βœ“ | |
64
+ | State Enterprise Development and Governance Act, B.E. 2562 | act | βœ“ | |
65
+ | State Enterprise Labor Relations Act, B.E. 2543 | act | βœ“ | |
66
+ | Trade Association Act, B.E. 2509 | act | βœ“ | βœ“ |
67
+ | Trust for Transactions in Capital Market Act, B.E. 2550 | act | βœ“ | βœ“ |
68
+ | Emergency Decree on Digital Asset Businesses, B.E. 2561 | emergency decree | βœ“ | |
69
+ | Emergency Decree on Special Purpose Juristic Person for Securitization, B.E. 2540 | emergency decree | βœ“ | βœ“ |
70
+
71
+ The training split of `nitibench-ccl` can be found in the [WangchanX-Legal-ThaiCCL-RAG dataset](https://huggingface.co/datasets/airesearch/WangchanX-Legal-ThaiCCL-RAG).
72
+
73
+ ### Data Format
74
+
75
+ Each data point contains four columns:
76
+ - `question: str` β€” A question relevant to the `relevant_laws`.
77
+ - `answer: str` β€” The answer to the question based on the `relevant_laws`, provided without the reasoning steps.
78
+ - `relevant_laws: List[Dict[str, str]]` β€” A list of relevant laws that should be used as context when answering the question.
79
+ - `reference_answer: str` β€” The original answer generated by an LLM, which has been revised and edited by legal experts to include both the reasoning steps and the final answer.
80
+
81
+ Formally, given the data triple \((q, T=\{p_1, p_2, \dots, p_K\}, y)\), \(q\) represents the `question`, \(T\) represents `relevant_laws`, and \(y\) represents the `answer`.
82
+
83
+ ### Data Curation
84
+
85
+ Using the notation described above, the data was curated as follows:
86
+ 1. Queries (\(q\)) and answers (\(y\)) were manually crafted by legal experts based on a single section sampled from the legal texts of the 35 pieces of legislation.
87
+ 2. For each data triple \((q, T, y)\), the manually crafted question was carefully quality-assured by a second legal expert.
88
+
89
+ Thus, for the test data, there is only one positive per query (\(|T|=1\)). The diagram below shows how the test data was collected.
90
+
91
+ ![ccl-test](./assets/CCL_Test_Set.png)
92
+
93
+ ## πŸ’Έ NitiBench-Tax
94
+
95
+ This subset provides a question, relevant laws, and an answer for each data point. Instead of having legal experts manually craft the questions, we scraped the data from a reliable source: the [Revenue Department Website](https://rd.go.th). This subset contains Tax Ruling Cases officially provided by the Revenue Department since 2021. As a result, this subset is considerably more challenging, as it requires extensive legal reasoning both for searching for relevant documents and for generating the answer. The data collection procedure is illustrated in the figure below:
96
+
97
+ ![tax-test](./assets/tax_case_test_set.png)
98
+
99
+ ### Data Format
100
+
101
+ This split uses the same format as described in the [NitiBench-CCL split](#data-format).
102
+
103
+ ## Contact
104
+
105
+ For any inquiries or concerns, please reach out to us via email: [Chompakorn Chaksangchaichot](mailto:[email protected]).
106
+
107
+ ## Citation
108
+
109
+ ```
110
+ ```
111
+
112
+ <br>
113
+ <div style="display: flex; align-items: center; gap: 20px;">
114
+ Sponsored by
115
+ <img src="./assets/VISAI_Logo_Horizontal.png" height="30" alt="VISAI Logo">
116
+ <img src="./assets/Logo_vistec.png" height="30" alt="VISTEC Logo">
117
+ </div>
118
+
119
+ ## License
120
+ ```
121
+ ```
assets/CCL_Test_Set.png ADDED

Git LFS Details

  • SHA256: b55cda6985b9058586d8a23127591e32785b1e224261059e69d22c1f9cf5c0c6
  • Pointer size: 131 Bytes
  • Size of remote file: 243 kB
assets/Logo_vistec.png ADDED

Git LFS Details

  • SHA256: 46c86b81be76ed8772633aea8faf8d1233ad26876a95ab750056fd88f4016420
  • Pointer size: 131 Bytes
  • Size of remote file: 178 kB
assets/VISAI_Logo_Horizontal.png ADDED

Git LFS Details

  • SHA256: af7088cd4b1fcd1b8f8989921de7b22b5353519055d23c08eb0d4e758417fd67
  • Pointer size: 130 Bytes
  • Size of remote file: 73.3 kB
assets/tax_case_test_set.png ADDED

Git LFS Details

  • SHA256: bb79715b4dbb3d87ead80a9eda414c33de217f12e5dedf891dbb7092a481feba
  • Pointer size: 131 Bytes
  • Size of remote file: 211 kB