Enhancing Legal Document Understanding and Analysis Using Retriever-Augmented Generation (RAG)
This paper presents a Retriever-Augmented Generation (RAG) framework for analyzing Arabic legal texts, focusing on Egypt's 2024 Unified Insurance Law. We apply article-level semantic chunking and evaluate three embedding models—AraBERT, multilingual-E5, and Cohere's embed-multilingual-v3.0—using Pinecone for retrieval and a local LLaMA 3.2 model for generation. Experiments show Cohere's model achieved the best performance (MRR@K 0.843, Precision@K 0.356). Our modular pipeline addresses challenges in Arabic legal NLP for low-resource languages.
Authors
- Wael H. Gomaa (ORCID: https://orcid.org/0000-0002-6847-2632)
- Mahmoud Ahmed Abdelsabour
Institutions
- Beni-Suef University (EG)
- October University of Modern Sciences and Arts (EG)
Publication Details
- Published
- 2025-07-12
- DOI
- https://doi.org/10.1109/imsa65733.2025.11167628
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00