A Reusable Prompting Framework for Applying Large Language Models to Legal Tasks
Suthir Sriram, V Nivethitha, G. Rajiv Krishna, S Vijay Bhanu, Gaurav Choudhary, Thangavel Murugan
Amrita Vishwa Vidyapeetham · Annamalai University
Key points
From the paper's conclusion- Experiments across multiple state-of-the-art models show that the structured prompting framework consistently improves accuracy and stability over less structured prompts and over the Retrieval-Augmented Generation baseline in this setting, with the largest gains for reasoning-intensive tasks such as statutory interpretation and legal question-answering.
Abstract
Large language models are increasingly used for legal research, drafting, and analysis, but their answers can be inconsistent, hard to verify, and sensitive to small changes in prompt wording. This paper introduces a structured prompting framework for applying large language models to five core legal tasks: statutory interpretation, contract review, case summarization, legal question-answering, and clause extraction. The framework helps draft prompts using task-specific templates, role-based instructions, example-based guidance, chain-of-thought reasoning and context-layered reasoning, and is paired with an evaluation that measures exact match, F1, ROUGE-L, macro F1, and a legal hallucination rate defined through a rubric for unsupported or incorrect legal claims. To contextualize these results, a Retrieval-Augmented Generation baseline is implemented and evaluated on the same tasks. Experiments across multiple state-of-the-art models show that the structured prompting framework consistently improves accuracy and stability over less structured prompts and over the Retrieval-Augmented Generation baseline in this setting, with the largest gains for reasoning-intensive tasks such as statutory interpretation and legal question-answering. Context-layered and chain-of-thought prompts yield the highest scores and the lowest hallucination rates overall. Statistical analysis over multiple runs, using mean, variance, standard deviation, and 95% confidence intervals, indicates that the best model–prompt combinations are both strong and stable. The findings offer practical guidance on which structured prompting strategies are most effective for different categories of legal tasks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Off‐The‐Shelf Large Language Models Are Unreliable JudgesJournal of Empirical Legal Studies · 2026
- Legal citation prediction with LLMs: a comparative evaluation of instruction tuning, retrieval, and jurisdiction-specific pre-training on the AusLaw citation benchmarkArtificial Intelligence and Law · 2026
- Cited but Not Consulted: A Counterfactual Audit of Legal Chain-of-Thought FaithfulnessarXiv · 2026
- Sequence-Structure Fusion Framework for Legal SummarizationData Science and Engineering · 2026
- Executable explanation traces for legal LLM predictions via retrieval-augmented codification.Frontiers in artificial intelligence · 2026
- AI-Powered Lawyering: AI Reasoning Models, Retrieval Augmented Generation, and the Future of Legal PracticeJournal of law & empirical analysis. · 2026