Generative Artificial Intelligence systems have significantly improved question answering capabilities; however, applying these systems to legal documents remains challenging due to the complexity of legal semantics and the need for relevant regulatory provisions retrieval accuracy. Retrieval-Augmented Generation (RAG) has emerged as a promising approach to address the challenge by combining language models with external knowledge sources. In this paper, we investigate the use of LightRAG, a graph-based Retrieval-Augmented Generation framework, for question answering over the European Union AI Act. Additionally, we examine the impact of incorporating a domain-specific ontology to guide entity extraction and retrieval, comparing the performance of the framework with and without ontology-based guidance. The evaluation follows two steps: 1) First, it uses ten expert-reviewed legal questions, including their answers and supporting legal references. The retrieved legal references from both configurations are compared against the expert validated legal references. 2) Second, it uses ten other legal queries without answers and regulatory references. The regulatory provisions identified by two LightRAG configurations are compared qualitatively with the outputs of GraphReader to assess the retrieval characteristics of the three approaches.

Retrieval-Augmented Question Answering using the EU AI Act

Purbasha Chowdhury
;
Teresa Scantamburlo;Paolo Falcarin
2026

Abstract

Generative Artificial Intelligence systems have significantly improved question answering capabilities; however, applying these systems to legal documents remains challenging due to the complexity of legal semantics and the need for relevant regulatory provisions retrieval accuracy. Retrieval-Augmented Generation (RAG) has emerged as a promising approach to address the challenge by combining language models with external knowledge sources. In this paper, we investigate the use of LightRAG, a graph-based Retrieval-Augmented Generation framework, for question answering over the European Union AI Act. Additionally, we examine the impact of incorporating a domain-specific ontology to guide entity extraction and retrieval, comparing the performance of the framework with and without ontology-based guidance. The evaluation follows two steps: 1) First, it uses ten expert-reviewed legal questions, including their answers and supporting legal references. The retrieved legal references from both configurations are compared against the expert validated legal references. 2) Second, it uses ten other legal queries without answers and regulatory references. The regulatory provisions identified by two LightRAG configurations are compared qualitatively with the outputs of GraphReader to assess the retrieval characteristics of the three approaches.
2026
EKAW 2026 The 25th International Conference on Knowledge Engineering and Knowledge Management
File in questo prodotto:
File Dimensione Formato  
EKAW_workshop_paper_cameraready.pdf

non disponibili

Tipologia: Documento in Pre-print
Licenza: Copyright dell'editore
Dimensione 314.45 kB
Formato Adobe PDF
314.45 kB Adobe PDF   Visualizza/Apri

I documenti in ARCA sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10278/5126049
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact