高级检索+

协同知识路由与智能体反思机制的猪病智能问答方法

Swine disease intelligent question answering method integrating knowledge routing and agent reflection mechanism

  • 摘要: 通用大语言模型应用于猪病问答任务时普遍存在领域知识储备不足、专业推理能力薄弱等问题,同时现有方案缺少答案优化机制,引发事实偏差与知识幻觉,限制问答准确性。针对上述问题,该研究提出一种协同知识路由与智能体反思机制的猪病智能问答方法。首先,构建包含163类猪病、文本总量近1000万字的领域语料库,并依据致病机理划分为5个子语料库,实现领域知识结构化组织;其次,提出基于大模型加权投票的协同知识路由策略,实现子语料库精准调度,有效压缩知识检索空间;最后,构建“初步回答者-兽医-猪病专家”多角色协同智能体体系生成候选应答文本,并进一步引入分层反思机制,从知识覆盖性、用户意图匹配度与多智能体协作效率开展答案质量诊断及优化。试验结果表明,在自建猪病问答评测数据集上,该方法的双语评估替补指标、面向摘要评估的召回型替补指标及基于BERT的语义匹配评分召回率相较于基线模型均有提升,分别为51.93%、30.50%、0.7409。此外,在选择题回答任务中的结果显示,该方法在简单题、中等难度题、高等难度题上的回答准确率均取得显著提升,分别达到90%、80%、70%。消融试验结果显示,知识路由策略、多智能体协同策略、智能体反思机制均能够提升问答准确率。该方法能够有效抑制事实幻觉,增强答案专业性与完备性,为农业垂直领域专业问答系统搭建提供技术参考。

     

    Abstract: General large language models (LLMs) suffer from insufficient domain knowledge accumulation and professional expertise in specialized swine disease question answering (QA) tasks. The lack of effective answer evaluation and optimization mechanisms further induces factual hallucinations, severely undermining the logical consistency and diagnostic accuracy of LLMs in agricultural practical applications. To address these limitations, we propose a swine disease intelligent QA framework integrated with knowledge routing and agent reflection mechanisms, termed Reflective-QA. First, a high-quality swine disease corpus with approximately 10 million characters covering 163 swine diseases is constructed based on professional veterinary books, authoritative monographs, and clinical case records. The corpus is standardized and divided into five sub-corpora corresponding to infectious diseases, parasitic diseases, toxic diseases, nutritional-metabolic diseases, and common diseases according to pathogenic characteristics. The corpus can be utilized to broaden the background knowledge of the QA model and enhance the professionalism of answers. Second, a knowledge routing strategy based on multi-agent voting is designed to map user queries to targeted disease sub-corpora. This strategy effectively mitigates noise interference and retrieval explosion in the process of QA, compressing the retrieval space and ensuring the purity of vectorized retrieval information. Third, a multi-agent collaborative QA mechanism based on different roles collaborative interaction, including preliminary diagnostician, veterinary expert, and swine specialist, is designed to generate structured and professionally rigorous candidate answers. Furthermore, an agent reflection mechanism is established to achieve closed-loop self-correction of answer quality. Specifically, three quantitative evaluation indicators, including knowledge coverage, intent understanding deviation, and role collaboration efficiency, are adopted to comprehensively assess answer quality, while two optimization strategies, namely semantic rewriting and task decomposition, are deployed to refine the generated answers. Experimental results on the self-constructed swine disease question answering dataset demonstrate that the proposed method outperforms baseline models in terms of bilingual evaluation understudy (4-gram) (BLEU-4), recall-oriented understudy for evaluation-longest common subsequence (ROUGE-L), and BERT-based score recall (R), achieving scores of 51.93, 30.50, and 0.7409, respectively. Compared to the baseline model, i.e., DeepSeek-R1, the BLEU-4 score increases significantly by 8.43%, the ROUGE-L score increases by 1.19%, and the R increases by 3.59%. This demonstrates that the proposed model outperforms the currently popular general large language model in terms of question answering performance in the field of swine diseases. In addition, the results on the multiple-choice QA task reveal that the method yields substantial accuracy improvements for easy, medium, and hard questions, with accuracy values reaching 90%, 80%, and 70%, respectively. This further demonstrates that our method is capable of efficiently addressing issues related to swine disease. Ablation experiment results verify that the knowledge routing strategy, multi-agent collaborative strategy, and agent reflection mechanism all contribute to higher question answering accuracy. Specifically, the average accuracy of our model in multiple-choice question answering decreased from 80% to 67% after the knowledge routing module was removed. In summary, the proposed framework resolves the ambiguity and hallucination problems in swine disease knowledge retrieval. This study provides a modular and reliable technical scheme for agricultural QA and professional LLM agent deployment, and exhibits promising cross-domain generalization potential for crop protection, aquaculture, and other modern agricultural fields.

     

/

返回文章
返回