Large Language Models generate answers to any questions provided by users. Even though this is a positive characteristic, when they are integrated into a real-world domain-specific solution, the generation of an answer to a question that is not related to the domain is a weakness. This work addresses the challenge of classifying users’ questions as in-topic or out-of-topic to limit the capabilities of a Large Language Model. We propose a multi-agent approach, called “Pool of Experts”, which leverages a structured hierarchy of specialized agents to synthesize expert contributions into a final decision. To evaluate the effectiveness of the proposed approach, we tested our methodology by integrating two description-based frameworks for agent profile creation: User Design Persona and Cognitive Load Theory. We compared our approach against traditional Transformer-based Natural Language Inference models as a baseline. Experimental results, observed in a real-world scenario concerning a question-answering system supporting pregnant women, demonstrate the superiority of the proposed methodology.

Leveraging Multi-agent Systems for Domain-Pertinence Query Classification in Informative Chatbots

Bellan, Patrizio;Haez, Saba Ghanbari;Sanna, Leonardo;Magnolini, Simone;Dragoni, Mauro
2025-01-01

Abstract

Large Language Models generate answers to any questions provided by users. Even though this is a positive characteristic, when they are integrated into a real-world domain-specific solution, the generation of an answer to a question that is not related to the domain is a weakness. This work addresses the challenge of classifying users’ questions as in-topic or out-of-topic to limit the capabilities of a Large Language Model. We propose a multi-agent approach, called “Pool of Experts”, which leverages a structured hierarchy of specialized agents to synthesize expert contributions into a final decision. To evaluate the effectiveness of the proposed approach, we tested our methodology by integrating two description-based frameworks for agent profile creation: User Design Persona and Cognitive Load Theory. We compared our approach against traditional Transformer-based Natural Language Inference models as a baseline. Experimental results, observed in a real-world scenario concerning a question-answering system supporting pregnant women, demonstrate the superiority of the proposed methodology.
2025
9783031958373
9783031958380
File in questo prodotto:
File Dimensione Formato  
bap.pdf

solo utenti autorizzati

Tipologia: Documento in Pre-print
Licenza: Non specificato
Dimensione 770.1 kB
Formato Adobe PDF
770.1 kB Adobe PDF   Visualizza/Apri   Richiedi una copia

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/11582/367847
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
social impact