计算机工程与应用2025,Vol.61Issue(4):158-166,9.DOI:10.3778/j.issn.1002-8331.2408-0101
融合思维链与知识图谱的中医问答模型
Traditional Chinese Medicine Question Answering Model Based on Chain-of-Thought and Knowledge Graph
摘要
Abstract
In response to the large scale of data in the field of Chinese medicine diagnosis,as well as the high subjectivity of doctors in diagnosis and the difficulty of data alignment,ChatTCM,a large language model for the Q&A domain of traditional Chinese medicine(TCM),is proposed.Taking advantage of the power of large language model(LLM)in dealing with natural language understanding and text generation,and fine-tuning the large language model,the LLM has expertise and competence in the field of TCM Q&A,thus preventing the model from generating hallucinations.Firstly,extract triplet information from TCM books to construct a TCM knowledge graph database,achieving data alignment and systematic integration of TCM knowledge,while providing background knowledge for large language models to generate answers.Secondly,integrate chain-of-thought(COT)reasoning with dynamic interactions from the knowledge graph database to generate an objective reasoning process,ensuring that the diagnostic recommendations are based on scientific evidence.Additionally,store the reasoning results from the chain-of-thought and knowledge graph as new knowledge,continuously expanding the local knowledge base.The ChatTCM model improves the BLEU-4 and ROUGE-L metrics on the MedChatZH dataset by 10.6 and 10.5 percentage points,respectively,and achieves 70%accuracy on the open-source dataset,which is a 10 percentage points improvement over the same type of MedChatZH model.关键词
大语言模型/微调/知识图谱/思维链/中医知识Key words
large language model/fine-tuning/knowledge graph/chain-of-thought/knowledge of traditional Chinese medicine分类
计算机与自动化引用本文复制引用
苑中旭,李理,何凡,杨秀,韩东轩..融合思维链与知识图谱的中医问答模型[J].计算机工程与应用,2025,61(4):158-166,9.基金项目
国家自然科学基金重点项目(U21A20157) (U21A20157)
国家重点研发计划(2019YFB1310501) (2019YFB1310501)
四川省自然科学基金青年科学基金(2023NSFSC1402). (2023NSFSC1402)