Datasets:
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- EMPIRICAL_EVIDENCE.md +16 -0
- README.md +36 -0
- finetune.jsonl +0 -0
- metadata.csv +0 -0
- qa_pairs.jsonl +0 -0
- qc_report.json +7 -0
- rag_passages.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* 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
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
rag_passages.jsonl filter=lfs diff=lfs merge=lfs -text
|
EMPIRICAL_EVIDENCE.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Empirical Evidence of Dataset Quality
|
| 2 |
+
|
| 3 |
+
## 1. RAG Passages (`rag_passages.jsonl`)
|
| 4 |
+
- **Total Passages**: 15428
|
| 5 |
+
- **Avg Character Length**: 2581.55
|
| 6 |
+
- **Max Character Length**: 10934
|
| 7 |
+
|
| 8 |
+
## 2. Finetuning Pairs (`finetune.jsonl`)
|
| 9 |
+
- **Total Conversational Pairs**: 4710
|
| 10 |
+
- **Safety Disclaimer Presence**: 0 (0.00%)
|
| 11 |
+
- **Adversarial Refusals Injected**: 0 (0.00%)
|
| 12 |
+
- **Avg Response Length**: 4.00
|
| 13 |
+
|
| 14 |
+
## 3. QA Structure
|
| 15 |
+
- Validated generation without metadata pollution.
|
| 16 |
+
- Safe rejection bounding applied to synthetic negative queries.
|
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- bn
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- law
|
| 8 |
+
- bangladesh
|
| 9 |
+
- legal
|
| 10 |
+
- instruction-tuning
|
| 11 |
+
- rag
|
| 12 |
+
- legal-advisor
|
| 13 |
+
pretty_name: BDLawCorpus-1 Safe Instruction & RAG Dataset
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10K<n<100K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# BDLawCorpus-1 Safe Instruction & RAG Dataset
|
| 19 |
+
|
| 20 |
+
This dataset provides the first comprehensive, hallucination-resistant, and instruction-tuned dataset for training Legal AI assistants for the laws of Bangladesh. It translates complex legal statutes into accessible, easy-to-understand Bengali (সহজ বাংলা) while embedding strict safety guardrails.
|
| 21 |
+
|
| 22 |
+
## Dataset Breakdown
|
| 23 |
+
|
| 24 |
+
This dataset repository contains four distinct parts, allowing seamless integration into **RAG** pipelines and **Finetuning (LoRA)**:
|
| 25 |
+
|
| 26 |
+
1. **`rag_passages.jsonl` (15.4k+ chunks)**: Token-aware, deduplicated passages of all 1,570 active and historical Bangladeshi acts. Ideal for Semantic Search/Vector Databases (Pinecone, ChromaDB).
|
| 27 |
+
2. **`finetune.jsonl` (4.7k+ pairs)**: Instruction, Context, and Response pairs designed to train LLMs (Llama-3, Qwen) into the "Legal Advisor (লিয়্যাল এডভাইজার)" persona. Each response includes a mandated disclaimer and cites specific evidence bounds.
|
| 28 |
+
3. **`qa_pairs.jsonl`**: Curated Question-Answer chunks mapping back to act purposes. Includes "Adversarial Refusals" directly training the model to admit when it lacks context instead of hallucinating.
|
| 29 |
+
4. **`metadata.csv`**: A dense metadata framework capturing `mentions_amendment`, `repealed`, and specifically `replaced_by` rules, preventing the RAG system from serving outdated advice.
|
| 30 |
+
|
| 31 |
+
## Link to Codebase & Methodology
|
| 32 |
+
The full scraping, chunking, and dataset-safety alignment architecture is open-source.
|
| 33 |
+
- **GitHub Repository**: [https://github.com/codermillat/BDLawCorpus](https://github.com/codermillat/BDLawCorpus)
|
| 34 |
+
|
| 35 |
+
## Next Steps: Model Finetuning
|
| 36 |
+
This dataset paves the way for the forthcoming **BDLaw-Instruct** model, a finetuned framework optimizing rural accessibility to legal boundaries in Bangladesh.
|
finetune.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
metadata.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
qa_pairs.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
qc_report.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"finetune_pairs": 4710,
|
| 3 |
+
"rag_passages": 15428,
|
| 4 |
+
"qa_pairs": 4710,
|
| 5 |
+
"metadata_rows": 1570,
|
| 6 |
+
"failed_acts": 3
|
| 7 |
+
}
|
rag_passages.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7174d944857f4e7f5c498520a2d45b3d102ac70b3c95d8938c0564247a793c54
|
| 3 |
+
size 77770188
|