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

  • Patrizio Bellan,
  • Saba Ghanbari Haez,
  • Leonardo Sanna,
  • Simone Magnolini,
  • Mauro Dragoni

摘要

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.