Skip to content
Open access

Application of large language models in legal queries: experiments with the artificial intelligence for legal assistance challenge

Jul 2026 · Logic Journal of the IGPL · Vol 34 · 0 citations · 27 references
Computer Science

TL;DR

It is demonstrated that combining LLMs with semantic retrieval techniques enhances precision and scalability in legal information systems, offering a viable roadmap for developing domain-specific, efficient, and sustainable AI legal assistants.

Abstract

This study evaluates the applicability of generative artificial intelligence (AI), specifically Large Language Models (LLMs), in legal assistance tasks using the Artificial Intelligence for Legal Assistance challenge dataset, which includes 197 statutes, 2914 judicial cases, and 50 legal queries. The research compared conversational LLM tools with semantic retrieval systems based on dense embeddings. Results show that general-purpose tools (ChatGPT, NotebookLM) achieved poor discrimination, while embedding-based methods significantly improved accuracy: the OpenAI text-embedding-ada-002 model reached 46.43% retrieval accuracy, and a fine-tuned all-mpnet-base-v2 model improved from 18.9% to 31.87% (a 68.6% relative gain). These findings demonstrate that combining LLMs with semantic retrieval techniques enhances precision and scalability in legal information systems, offering a viable roadmap for developing domain-specific, efficient, and sustainable AI legal assistants.

Read PDF

Similar papers

Open access Jul 2026

AILQA: Evaluating AI-Driven Legal Question Answering Systems for the Indian Legal System

This comprehensive study introduces an advanced A rtificial Intelligence for I ndian L egal Q uestion A nswering or system tailored for the Indian legal context. leverages a variety of embedding and generative models, including the latest Large Language Models (LLMs), to address the unique challenges pose...

S. Nigam, Shubham Kumar Mishra, Noel Shallum et al. · 1 citation
Open access Aug 2026

Building a Multilingual AI Legal Assistant Using Retrieval-Augmented Generation: A Case Study on the Legal System of Kazakhstan

This study presents the development of an Artificial Intelligence (AI)-based legal assistant using the Retrieval-Augmented Generation (RAG) architecture to provide legal assistance to citizens of the Republic of Kazakhstan. The proposed solution is designed to generate accurate, evidence-based responses to user queries...

N. Mukazhanov, Z. Alibiyeva, A. Akhmediyarova et al. · 0 citations
Jul 2026

Reasoning Before Translation: Enhancing Legal Machine Translation with Structured Reasoning

The results show that the quality of small ``base'' models can be greatly enhanced, and that reinforcement learning with verifiable rewards can be applied to NMT in the legal domain and surpasses the translation quality of supervised fine-tuning.

Aixiu An, Michael Jungo, Eloi Eynard et al. · 0 citations
Open access Jul 2026

Bridging Legal Language Barriers Using Explainable AI: Outcome Prediction and Multilingual Knowledge based answer retrieval for Indian Law

An integrated legal AI platform that combines interpretable case outcome prediction with multilingual, retrieval-grounded legal question answering to improve access to Indian law is presented, concluding that transparent machine learning, retrieval-augmented generation, and multilingual interfaces can work together to...

M. D · 0 citations
Open access Jul 2026

Augmenting Legal Reasoning with BERT: The Second Iteration of Bekenbey AI

In recent years, the rapid advancement of technology has necessitated the use of machine learning models and artificial intelligence systems not only in the field of engineering but also in the resolution of complex problems in social sciences. In this study, we build upon the Bekenbey AI model, which is the first stud...

Ali Deveci, Mehmet Ali Erkan, I. T. Medeni et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.