Skip to content
Conference Open access

Developing and putting into practice an intelligent legal assistant for public procurement: An enhanced hybrid RAG method

2026 · EPJ Web of Conferences · 0 citations · 4 references

TL;DR

A sovereign Artificial Intelligence framework based on a Retrieval-Augmented Generation (RAG) architecture for regulatory knowledge management within public administration in Morocco, demonstrating the potential of sovereign generative AI to enhance regulatory knowledge management, improve information accessibility, and support decision-making processes within Moroccan public administration.

Abstract

The increasing complexity of public procurement regulations poses significant challenges for public administrations in accessing, interpreting, and managing regulatory information efficiently. In Morocco, this challenge is amplified by the large volume of legal documents, frequent regulatory updates, and the presence of numerous scanned archives. To address these issues, this paper proposes a sovereign Artificial Intelligence framework based on a Retrieval-Augmented Generation (RAG) architecture for regulatory knowledge management within public administration. The proposed solution operates entirely in an On-Premise environment, ensuring data confidentiality and digital sovereignty. It integrates an Optical Character Recognition (OCR) pipeline for processing scanned documents, a hybrid retrieval mechanism combining semantic and lexical search, and a locally deployed Large Language Model (Llama-3-8B-Instruct) for context-aware answer generation. The framework was evaluated using a corpus of more than 1,200 regulatory documents and a Golden Dataset composed of 50 expert-validated question-answer pairs. Experimental results achieved a Recall@5 of 92.4%, an MRR@10 of 0.94, and a semantic similarity score of 92.4%, outperforming conventional retrieval approaches while maintaining low response latency. The results demonstrate the potential of sovereign generative AI to enhance regulatory knowledge management, improve information accessibility, and support decision-making processes within Moroccan public administration.

Read PDF

Similar papers

#artificial intelligence Open access Nov 2026

A Hybrid Knowledge-Enhanced Legal AI System for Construction Contract Disputes

A domain-specific legal artificial intelligence system for construction contract disputes via hybrid knowledge integration based on the retrieval-augmented generation (RAG) paradigm, integrating five core legal texts and 500 adjudication cases within a dual-engine architecture is proposed.

Ying Lu, Xin-Yun Shen, Yujing Wang et al. · 0 citations
Sep 2026

Hybrid Multi-Hop RAG for Intelligent Legal Information Retrieval

Results show that keyword-guided hybrid retrieval improves evidence coverage and ranking quality, while structured multihop control further improves retrieval coverage and answer correctness in heterogeneous, high-stakes legal corpora.

Eniedson Fabiano Pereira da Silva, C. de Souza Baptista, A. L. F. Alves et al. · 0 citations
Open access Sep 2026

Insaafai: A Retrieval-Assisted Multilingual Legal Information and Document-Analysis Prototype for Indian Criminal Law

This study demonstrates the potential of retrieval-assisted AI to improve access to criminal-law information while Emphasizing the Importance of Authoritative Legal Sources, Expert Validation, Privacy Safeguards, and Human Oversight.

Siddhi Vishwakarma and Riddhi Vishwakarma · 0 citations
Open access Jul 2026

RAG-Based AI Compliance Monitoring and Report Generation System

CompVault, an Enhanced Retrieval-Augmented Generation (ERAG)-based Artificial Intelligence Compliance Monitoring and Report Generation System for intelligent regulatory compliance assessment, and results indicate that the ERAG-based framework can be used as an efficient, scalable, and explainable solution for regulator...

S. N., Sathyapriya P., V. M. et al. · 0 citations
Book Open access Sep 2026

ReSB²: Retrieving Similar Brazilian State Bills

ReSB2 is introduced, a framework for retrieving and linking similar legislative bills that supports human–machine collaboration and helps reduce redundancy in the lawmaking process, and fine-tunes two ModernBERT-based language models on authentic legislative data.

Lucas G. L. Costa, Átila M. Souza, Elves Rodrigues 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.