Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Accurate AI Assistance in Contract Law Using Retrieval-Augmented Generation to Advance Legal Technology

Author 1: Youssra Amazou Author 2: Faouzi Tayalati Author 3: Houssam Mensouri Author 4: Abdellah Azmani Author 5: Monir Azmani
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 2 · Published 2025 · Cited by 5

DOI: https://doi.org/10.14569/IJACSA.2025.01602113

Abstract

Understanding legal documentation is a complex task due to its inherent subtleties and constant changes. This article explores the use of artificial intelligence-driven chatbots, enhanced by retrieval-augmented generation (RAG) techniques, to address these challenges. RAG integrates external knowledge into generative models, enabling the delivery of accurate and contextually relevant legal responses. Our study focuses on the development of a semantic legal chatbot designed to interact with contract law data through an intuitive interface. This AI Lawyer functions like a professional lawyer, providing expert answers in property law. Users can pose questions in multiple languages, such as English and French, and the chatbot delivers relevant responses based on integrated official documents. The system distinguishes itself by effectively avoiding LLM hallucinations, relying solely on reliable and up-to-date legal data. Additionally, we emphasize the potential of chatbots based on LLMs and RAG to enhance legal understanding, reduce the risk of misinformation, and assist in drafting legally compliant contracts. The system is also adaptable to various countries through the modification of its legal databases, allowing for international application.

Keywords

How to Cite this Article

Amazou, Y., Tayalati, F., Mensouri, H., Azmani, A., & Azmani, M. (2025). Accurate AI Assistance in Contract Law Using Retrieval-Augmented Generation to Advance Legal Technology. International Journal of Advanced Computer Science and Applications, 16(2). https://doi.org/10.14569/IJACSA.2025.01602113

Amazou, Youssra, et al.. "Accurate AI Assistance in Contract Law Using Retrieval-Augmented Generation to Advance Legal Technology." International Journal of Advanced Computer Science and Applications, vol. 16, no. 2, 2025, https://doi.org/10.14569/IJACSA.2025.01602113.

@article{Amazou2025,
  title     = {Accurate AI Assistance in Contract Law Using Retrieval-Augmented Generation to Advance Legal Technology},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {2},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {Youssra Amazou and Faouzi Tayalati and Houssam Mensouri and Abdellah Azmani and Monir Azmani},
  doi       = {10.14569/IJACSA.2025.01602113},
  url       = {https://doi.org/10.14569/IJACSA.2025.01602113}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.