license: cc
task_categories:
- sentence-similarity
- text-generation
tags:
- legal
- RAG
- LCLM
size_categories:
- 10K<n<100K
configs:
- config_name: default
data_files:
- split: ccl
path: data/nitibench-ccl.parquet
- split: tax
path: data/nitibench-tax.parquet
π©π»ββοΈ NitiBench: A Thai Legal Benchmark for RAG
This dataset provides the test data for evaluating LLM frameworks, such as RAG or LCLM. The benchmark consists of two datasets:
ποΈ NitiBench-CCL
Derived from the WangchanX-Legal-ThaiCCL-RAG Dataset, 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 Corporate and Commercial Law (CCL). Information about the 35 pieces of legislation is provided in the table below:
Legislation | Legal Terminology | Training | Test |
---|---|---|---|
Organic Act on Counter Corruption, B.E. 2561 | organic law | β | |
Civil and Commercial Code | code | β | β |
Revenue Code | code | β | β |
Accounting Act, B.E. 2543 | act | β | β |
Accounting Profession Act, B.E. 2547 | act | β | β |
Act on Disciplinary Offenses of Government Officials Performing Duties in Agencies Other than Government Agencies, B.E. 2534 | act | β | |
Act on Offences of Officials Working in State Agencies or Organizations, B.E. 2502 | act | β | |
Act on Offences Relating to Registered Partnerships, Limited Partnerships, Companies Limited, Associations and Foundations, B.E. 2499 | act | β | β |
Act on the Establishment of Government Organizations, B.E. 2496 | act | β | |
Act on the Management of Shares and Stocks of Ministers, B.E. 2543 | act | β | |
Act Repealing the Agricultural Futures Trading Act, B.E. 2542 B.E. 2558 | act | β | |
Budget Procedure Act, B.E. 2561 | act | β | |
Business Registration Act, B.E. 2499 | act | β | β |
Chamber of Commerce Act, B.E. 2509 | act | β | β |
Derivatives Act, B.E. 2546 | act | β | β |
Energy Conservation Promotion Act, B.E. 2535 | act | β | β |
Energy Industry Act, B.E. 2550 | act | β | β |
Financial Institutions Business Act, B.E. 2551 | act | β | β |
Fiscal Discipline Act, B.E. 2561 | act | β | |
Foreign Business Act, B.E. 2542 | act | β | β |
Government Procurement and Supplies Management Act, B.E. 2560 | act | β | |
National Economic and Social Development Act, B.E. 2561 | act | β | |
Petroleum Income Tax Act, B.E. 2514 | act | β | β |
Provident Fund Act, B.E. 2530 | act | β | β |
Public Limited Companies Act, B.E. 2535 | act | β | β |
Secured Transactions Act, B.E. 2558 | act | β | β |
Securities and Exchange Act, B.E. 2535 | act | β | β |
State Enterprise Capital Act, B.E. 2542 | act | β | |
State Enterprise Committee and Personnel Qualifications Standards Act, B.E. 2518 | act | β | |
State Enterprise Development and Governance Act, B.E. 2562 | act | β | |
State Enterprise Labor Relations Act, B.E. 2543 | act | β | |
Trade Association Act, B.E. 2509 | act | β | β |
Trust for Transactions in Capital Market Act, B.E. 2550 | act | β | β |
Emergency Decree on Digital Asset Businesses, B.E. 2561 | emergency decree | β | |
Emergency Decree on Special Purpose Juristic Person for Securitization, B.E. 2540 | emergency decree | β | β |
The training split of nitibench-ccl
can be found in the WangchanX-Legal-ThaiCCL-RAG dataset.
Data Format
Each data point contains four columns:
question: str
β A question relevant to therelevant_laws
.answer: str
β The answer to the question based on therelevant_laws
, provided without the reasoning steps.relevant_laws: List[Dict[str, str]]
β A list of relevant laws that should be used as context when answering the question.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.
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
.
Data Curation
Using the notation described above, the data was curated as follows:
- 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.
- For each data triple ((q, T, y)), the manually crafted question was carefully quality-assured by a second legal expert.
Thus, for the test data, there is only one positive per query ((|T|=1)). The diagram below shows how the test data was collected.
πΈ NitiBench-Tax
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. 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:
Data Format
This split uses the same format as described in the NitiBench-CCL split.
Contact
For any inquiries or concerns, please reach out to us via email: Chompakorn Chaksangchaichot.
Citation


License