This paper introduces a microservices-based architecture de- signed for executing complex linguistic tasks using Large Language Mod- els (LLMs) and Knowledge Graphs (KGs). It has been conceived by fo- cusing on the legal domain, and it integrates Domain-specific KGs and Constraint KGs to address tasks such as law extraction and reasoning. We outline how the pipeline works through a running example involving the extraction of legislative references from legal documents. Further- more, we discuss a methodology for building KGs from unstructured documents and employing zero-shot prompt engineering techniques to facilitate information extraction. Finally, we present a validation process leveraging the Constraint KG to ensure the coherence and correctness of generated outputs.

A Service-Based Pipeline for Complex Linguistic Tasks Adopting LLMs and Knowledge Graphs / Bianchini, Filippo; Calamo, Marco; De Luzi, Francesca; Macri, Mattia; Mecella, Massimo. - 2221 CCIS:(2024), pp. 145-161. (Intervento presentato al convegno 18th Symposium and Summer School tenutosi a Crete, Greece) [10.1007/978-3-031-72578-4_8].

A Service-Based Pipeline for Complex Linguistic Tasks Adopting LLMs and Knowledge Graphs

Bianchini, Filippo;Calamo, Marco;De Luzi, Francesca;Macri, Mattia;Mecella, Massimo
2024

Abstract

This paper introduces a microservices-based architecture de- signed for executing complex linguistic tasks using Large Language Mod- els (LLMs) and Knowledge Graphs (KGs). It has been conceived by fo- cusing on the legal domain, and it integrates Domain-specific KGs and Constraint KGs to address tasks such as law extraction and reasoning. We outline how the pipeline works through a running example involving the extraction of legislative references from legal documents. Further- more, we discuss a methodology for building KGs from unstructured documents and employing zero-shot prompt engineering techniques to facilitate information extraction. Finally, we present a validation process leveraging the Constraint KG to ensure the coherence and correctness of generated outputs.
2024
18th Symposium and Summer School
Large Language Models; Knowledge Graphs; microservices; complex linguistic tasks
04 Pubblicazione in atti di convegno::04b Atto di convegno in volume
A Service-Based Pipeline for Complex Linguistic Tasks Adopting LLMs and Knowledge Graphs / Bianchini, Filippo; Calamo, Marco; De Luzi, Francesca; Macri, Mattia; Mecella, Massimo. - 2221 CCIS:(2024), pp. 145-161. (Intervento presentato al convegno 18th Symposium and Summer School tenutosi a Crete, Greece) [10.1007/978-3-031-72578-4_8].
File allegati a questo prodotto
Non ci sono file associati a questo prodotto.

I documenti in IRIS 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/11573/1724990
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact