File size: 2,006 Bytes
695bba2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
license: apache-2.0
---


# 🧾 Indonesian Legal QA Dataset

This repository contains a **question-answer (QA) dataset** generated from parsed Indonesian regulations, focusing on **legal quoting and comprehension**. Designed to facilitate legal-aware LLMs, the dataset provides direct QA mappings to individual articles for contextual understanding and reference.

---

## 📌 Dataset Highlights

* **Source**: Generated from the [ID\_REG\_Parsed](https://huggingface.co/datasets/Azzindani/ID_REG_Parsed) repository
* **Format**: QA pairs based on individual articles (no chunking)
* **Scale**: Augmented by applying 10 QA templates across suitable regulation entries
* **Filtering**: Programmatic filtering removes redundant or overly broad article explanations
* **Target Use**: Train/test LLMs for **regulation comprehension**, **legal quoting**, and **document-level QA**

---

## ⚙️ Pipeline Overview

* **Environment**: Executed in a single Jupyter Notebook on **Kaggle Cloud**

* **Data Flow**:

  1. **Pull** parsed articles from `ID_REG_Parsed`
  2. Filter and refine results for clarity and legal context
  3. Apply **template-driven QA generation** (10 variations)
  4. **Push** QA dataset directly to this repository

* **Performance**:

  * Completed in \~20 minutes using Kaggle GPU resources
  * Cloud-to-cloud transfer without local storage dependency

---

## 🧠 Use Cases

* Fine-tuning LLMs for **legal question answering**
* Benchmarks for **article referencing and quoting**
* Few-shot prompting for legal search assistants
* Legal text evaluation with grounded answers

---

## ⚠️ Disclaimer

This dataset is intended for **research and development** only. QA pairs are generated synthetically from publicly available legal text and may not reflect official interpretations.

---

## 🙏 Acknowledgments

* **[Hugging Face](https://huggingface.co/)** for hosting open datasets
* **[Kaggle](https://www.kaggle.com/)** for compute and cloud-to-cloud capabilities

---