水利学报2026,Vol.57Issue(2):280-292,305,14.DOI:10.3724/j.slxb.20250256
基于意图识别的知识图谱增强大语言模型问答方法
Knowledge graph-augmented large language model question answering based on intent recognition:A case study of flood defense and rescue
摘要
Abstract
When enhancing the application of large language model(LLM)in flood defense and rescue with water conservancy knowledge graphs,intent recognition of user queries faces challenges such as limited corpora,an abun-dance of specialized terminology,and difficulties in semantic understanding.Existing methods perform poorly in low-resource intent recognition scenarios.This study proposes a multi-model ensemble method based on a voting strategy to accurately identify question intent and extract knowledge from knowledge graphs under low-resource conditions,leading to the development of a question-answering system for flood defense and rescue.Firstly,based on domain entity recognition and text semantic representation,three individual intent recognition models were constructed using rule-based methods,machine learning,and LLMs.Secondly,the Grey Wolf Optimization algorithm was used to assign weights to the individual models based on their performance,and a voting strategy was used to construct an intent recognition ensemble model.Finally,the ensemble model was subsequently employed to query the flood defense and rescue knowledge graph,and in combination with an LLM,a question-answering system was developed to facilitate efficient interaction between natural language queries and the knowledge graph.Experimental results show that the ensemble model achieves an average F1 score of 0.912 in five-fold cross-validation in low-resource intent recognition scenarios,markedly outperforming deep learning models such as BERT.The developed system enables accurate and efficient retrieval and reuse of domain knowledge,providing a new pathway for the transforma-tion and utilization of water conservancy knowledge and the advancement of smart water management.关键词
防汛抢险/意图识别/知识问答/投票策略/大语言模型/知识图谱Key words
flood defense and rescue/intent recognition/knowledge-based question answering/voting strategy/large language model/knowledge graph分类
建筑与水利引用本文复制引用
张栋梁,马刚,周伟,王旭东,张义,王小毛..基于意图识别的知识图谱增强大语言模型问答方法[J].水利学报,2026,57(2):280-292,305,14.基金项目
国家重点研发计划项目(2022YFC3005505) (2022YFC3005505)
国家自然科学基金项目(52322907,52179141,U23B20149) (52322907,52179141,U23B20149)