The invention discloses an
electric power customer service dialogue method and
system based on a retrieval enhancement generation model, and the method comprises the steps: firstly, carrying out the preprocessing of an
electric power customer dialogue text, eliminating the text
noise through data cleaning, and carrying out the text partitioning on the basis, so as to provide an optimal text extraction strategy; secondly, power customer dialogue intention recognition is carried out, and the real meaning of power customer dialogue is recognized through
natural language processing; and finally, generating dialogue contents of the power customers, retrieving in the
knowledge base according to the recognized dialogue intentions of the customers, sorting retrieval results, and obtaining typical reply contents. Secondly, retrieval optimization is carried out, retrieved reply contents are fused based on an attention mechanism, an
electric power customer dialogue text is obtained, and the accuracy probability of reply questions is calculated; and outputting the electric power customer dialogue text with the maximum accurate probability. According to the method, through cooperative promotion of
processing in the above stages, the user intention is deeply understood while
background noise is reduced, the answering accuracy is improved, and the method has good practicability.