--- license: other language: - en tags: - synthetic - legal --- # Massive Legal & Law Instruction Tuning Dataset (5GB) This dataset contains a massive, synthetically generated corpus of legal instruction-tuning data designed to teach Large Language Models (LLMs) how to understand, reason through, and respond to legal queries. The dataset scales progressively from fundamental legal concepts to highly advanced jurisprudential masterclasses. ## Dataset Structure The dataset is provided as a single CSV file (`legal_training_data_5GB.csv`) and contains the following columns: - `difficulty`: The complexity tier of the legal concept (ranges from `1_Basic` to `6_Masterclass`). - `legal_domain`: The specific area of law the query pertains to (e.g., Contract Law, Constitutional Law). - `instruction`: The prompt or question posed to the LLM. - `response`: The detailed, clean legal explanation or analysis answering the instruction. ## Difficulty Tiers The dataset is weighted to provide a smooth learning curve for an LLM: 1. **1_Basic**: Fundamental definitions and primary purposes of legal domains. 2. **2_Foundational**: Elements required to establish claims, basic party identification. 3. **3_Intermediate**: Concepts of negligence, statutes of limitations, evidentiary standards. 4. **4_Advanced**: Complex jurisdictional overlaps, administrative deference doctrines, corporate officer liabilities. 5. **5_Expert**: Jurisprudential critiques, synthesis of Restatements with Supreme Court jurisprudence, economic loss rules. 6. **6_Masterclass**: Cross-border insolvency protocols, Originalist interpretations, highly technical legal deconstructions. ## Legal Domains Covered Contract Law, Criminal Law, Tort Law, Constitutional Law, Corporate Law, Intellectual Property, International Law, Administrative Law, Property Law, Tax Law, Environmental Law, and Securities Regulation. ## Intended Uses - **Instruction Tuning:** Fine-tuning base LLMs to follow legal instructions and format outputs professionally. - **Legal Reasoning:** Teaching models the structural logic of legal arguments (duty, breach, causation, damages). - **Benchmarking:** Testing an LLM's ability to handle varying levels of complexity within legal contexts. ## How to Load You can load this dataset using the Hugging Face `datasets` library: from datasets import load_dataset # Replace "your-username/legal-training-data" with your actual repo path dataset = load_dataset("your-username/legal-training-data") # Example usage print(dataset['train'][0]) ## ⚠️ Disclaimer This is a **synthetic dataset** generated programmatically using procedural templates. While it accurately reflects legal structures, logic, and terminology, it should not be used as actual legal advice. It is intended solely for machine learning research, NLP tasks, and LLM training experimentation.