Computer and Modernization ›› 2024, Vol. 0 ›› Issue (11): 54-63.doi: 10.3969/j.issn.1006-2475.2024.11.009

Previous Articles     Next Articles

A Financial Knowledge Q&A Model for Power Enterprise Based on ChatGLM2-6B

  

  1. (East China Branch of State Grid Corporation of China, Shanghai 200120, China)
  • Online:2024-11-29 Published:2024-12-09

Abstract: With the continuous expansion of the scale of the power system, a significant amount of repetitive and complex tasks emerge in daily financial operations. Traditional methods of organizing and managing financial knowledge are no longer sufficient to satisfy the requirements of the current power system. With the consideration of this, the paper constructs a financial knowledge graph using the large-scale language model called ChatGLM2-6B. This method aims to standardize financial and project management processes and assist in financial decision-making. Firstly, the ChatGLM2-6B model should be optimized through instruction fine-tuning and prompt learning in order to extract event and event relationship pairs from financial contracts and invoice data, respectively. Then, the event relationship pairs are then stored as a local knowledge base using the FAISS vector database, additionally, a FAISS-ERNIE similarity evaluation model is trained to enhance the capability of knowledge retrieval, which could improve the question-answering ability of ChatGLM2-6B. Finally, hierarchical clustering algorithm is employed to generalize event relationship pairs, aiming to obtain contract knowledge graph and invoice knowledge evolutionary graph. These two graphs could be utilized to provide standardized guidance and supervision for real-time financial operations, achieving transparency in financial execution. The experimental results demonstrate that the method proposed in this paper exhibits excellent performance in event extraction, event relationship pair extraction, and similarity retrieval. The constructed contract and invoice knowledge evolutionary graphs hold significant implications for financial management in power enterprises, contributing to enhance the level of corporate management. 

Key words:  , ChatGLM2-6B, ERNIE, FAISS vector database, instruction fine-tuning, prompt learning

CLC Number: