Psychological Counseling with Integration of Knowledge Graph and Multi-Agent Collaboration
摘要
Applying large language models (LLMs) to psychological counseling can reduce costs and lower barriers to access. However, issues inherent to LLMs, such as output hallucinations, knowledge lags, and response biases, limit the quality of counseling services. To address these challenges, we propose a psychological counseling method that integrates a knowledge graph (KG) and multi-agent collaboration (MAC). First, we design an ontology model and use an improved convolution residual network (CRN) to extract relational triples for constructing a psychological medicine KG. Second, we perform low-rank adaptation (LoRA) on Qwen1.5-7B-chat using the Text2Cypher training set. Finally, we design MAC prompts based on the characteristics of the retrieval-based question-answering (QA) process to facilitate the collaborative implementation of psychological medicine knowledge QA and updates. The experiments showed that the improved CRN achieved an extraction accuracy of 80%. The mean squared error of the general-domain capability of the LLM before and after LoRA was only 0.738, with a Text2Cypher score of 99.8 after LoRA. The results generated after prompting received a 70.44% approval rate compared to other methods. Thus, the proposed method can effectively enhance the intelligence, accuracy, and controllability of psychological counseling.