Abstract
Compliance with regulatory rules becomes an increasingly complex task because of the constantly changing legal regulations and policy regulations. Currently, the existing approach to compliance verification is mostly based on the manual analysis of documents and is characterized by high time consumption, inconsistency, and high levels of operational risks. To solve the problem, this paper introduces CompVault, an Enhanced Retrieval-Augmented Generation (ERAG)-based Artificial Intelligence Compliance Monitoring and Report Generation System for intelligent regulatory compliance assessment. The introduced approach combines the semantic document retrieval, vector-based knowledge representation with ChromaDB, and contextual reasoning by means of the large language model to check compliance of organizational policies with regulatory requirements. It also determines the compliance gaps and compliance risk level and generates structured reports with recommendations to decision-makers. Web-based implementation was implemented using FastAPI, all-MiniLM-L6-v2 embeddings, and LexGLUE legal benchmark as a knowledge source about regulations. As a result, the following metrics were achieved: 97.42% accuracy, 96.88% precision, 97.15% recall, 97.01% F1-score, and 98.80% AUC-ROC. Therefore, the achieved results indicate that the ERAG-based framework can be used as an efficient, scalable, and explainable solution for regulatory compliance monitoring and automated report generation.References
- Hassani, Shabnam, Mehrdad Sabetzadeh, Daniel Amyot, and Jain Liao. "Rethinking Legal Compliance Automation: Opportunities with Large Language Models." In 2024 IEEE 32nd International Requirements Engineering Conference (RE) 2024: 432-440.
- Mubeen, Faiz, Aasar Mehdi, Md Asraful Haque, M. Z. M. Nomani, and Nawab Shahzeb Uddin. "Redefining Legal Access: A RAG-based AI System for Indian law." Human-Intelligent Systems Integration 2025, vol 7, no. 1: 87-98.
- Umar, Kübranur, Hakan Doğan, Onur Özcan, Ismail Karakaya, Alper Karamanlıoğlu, and Berkan Demirel. "Enhancing Regulatory Compliance Through Automated Retrieval, Reranking, and Answer Generation." In Proceedings of the 1st Regulatory NLP Workshop 2025: 91-96.
- Quinn, Devin, Sumit P. Pai, Iman Yousfi, Nirmala Pudota, and Sanmitra Bhattacharya. "Regulatory Question-Answering Using Generative AI." In Proceedings of the 1st Regulatory NLP Workshop 2025: 102-106.
- Lewis, Patrick, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler et al. "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks." Advances in neural information processing systems 2020, vol 3: 9459-9474.
- Kim, Jaewoong, Minseok Hur, and Moohong Min. "From Rag to Qa-Rag: Integrating Generative AI for Pharmaceutical Regulatory Compliance Process." In Proceedings of the 40th ACM/SIGAPP Symposium on Applied Computing 2025: 1293-1295.
- Hindi, Mahd, Linda Mohammed, Ommama Maaz, and Abdulmalik Alwarafy. "Enhancing the Precision and Interpretability of Retrieval-Augmented Generation (Rag) In Legal Technology: A Survey." IEEE Access 2025, vol 13: 46171-46189
- Choi, Yein, Sungwoo Kim, Yipene Cedric Francois Bassole, and Yunsick Sung. "Enhanced Retrieval-Augmented Generation Using Low-Rank Adaptation." Applied Sciences 2025, vol 15, no. 8: 4425.
- Reuter, Markus, Tobias Lingenberg, Ruta Liepina, Francesca Lagioia, Marco Lippi, Giovanni Sartor, Andrea Passerini, and Burcu Sayin. "Towards Reliable Retrieval in RAG Systems for Large Legal Datasets." In Proceedings of the Natural Legal Language Processing Workshop 2025: 17-30.
- Sriram, Suthir, Nivethitha Vijayaraj, G. Rajiv Krishna, S. Vijay Bhanu, Gaurav Choudhary, and Thangavel Murugan. "A Reusable Prompting Framework for Applying Large Language Models to Legal Tasks." IEEE Access 2026, vol 14: 3108-3129.
- Chalkidis, I., Jana, A., Hartung, D., Bommarito, M., Androutsopoulos, I., Katz, D., & Aletras, N. "LexGLUE: A Benchmark Dataset for Legal Language Understanding in English." NeurIPS Datasets and Benchmarks, 2022. Available: https://huggingface.co/datasets/coastalcph/lex_glue

Journal of Information Technology and Digital World