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 · Vol 381, pp. 00023 · 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

Public servants and auditors must often identify precise legal evidence across large collections of laws, decisions, audit reports, and technical documents. However, institutional search systems typically rely on rigid metadata or exact keyword matching, making it difficult to answer natural-language questions whose ev...

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

To Indian Criminal-Law Information Remains Difficult Due To Complex Legal Terminology, Lengthy Statutory Documents, And The Coexistence Of References To The Indian Penal Code (Ipc) And The Bharatiya Nyaya Sanhita (Bns), 2023. This Paper Presents Insaafai, A Retrieval-Assisted Web-Based System Developed To Make Criminal...

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
Review Open access Sep 2026

Legalyze: An Open‐Source Structure‐Aware Agentic RAG Platform for High‐Precision Legal Intelligence

The integration of Large Language Models into the legal domain is constrained by a reliability gap, where models can generate incorrect or unsupported information in specialized reasoning tasks. This issue is especially important in jurisdictions such as Pakistan, where legal texts have strong structural dependencies a...

Ali Hamza, Maaz Bin Rizwan, Maemoona Kayani et al. · 0 citations
Book Open access Sep 2026

ReSB²: Retrieving Similar Brazilian State Bills

Legislative knowledge evolves as an intricate hypertext in which documents are interconnected through complex, often implicit relationships. In this paper, we introduce ReSB2, a framework for retrieving and linking similar legislative bills that supports human–machine collaboration and helps reduce redundancy in the la...

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