Customer service data quality inspection method, device, equipment and medium based on dynamic reasoning
Through dynamic inference methods based on large models, the customer service dialogue data is analyzed and quality inspected, structured data is generated and dynamic knowledge graphs are constructed, which solves the problem of insufficient knowledge update and transparency in the existing technology, and achieves high-quality customer service quality inspection.
Patent Information
- Application Number
- CN202510713020.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2045-05-30
AI Technical Summary
When facing complex semantics, multiple rounds of dialogue and dynamic changes in the existing customer service quality inspection system, there are problems of insufficient knowledge update, inference transparency and result interpretability.
Based on the big model, the customer service dialogue data is analyzed, structured dialogue data is generated, and dynamic context knowledge graph is constructed through retrieval and enhanced generation framework, and step-by-step logical reasoning is used to use the thinking chain prompt template to output traceable quality inspection conclusions, and visual reports are generated in combination with multimodal verification.
It realizes accurate analysis and quality inspection of customer service dialogues, improves the transparency and accuracy of quality inspections, provides a clear direction of improvement, supports the self-optimization of the system, and improves the quality and management efficiency of customer service.
Smart Images

Figure CN120216707B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical fields of artificial intelligence and natural language processing, and particularly relates to a customer service data quality inspection method, device, equipment and medium based on dynamic reasoning. Background Art
[0002] In recent years, in the field of customer service quality inspection, existing technologies mainly rely on rule engines, keyword matching, or methods based on traditional machine learning models. These methods show certain effects when dealing with structured data and simple problems, but they have obvious limitations when facing complex semantics, multi-round conversations, and dynamically changing business requirements. For example, rule engines are difficult to handle diverse conversation contents, keyword matching methods are prone to ignoring context semantics, and traditional machine learning models require a large amount of labeled data and are difficult to adapt to new scenarios. In addition, existing technologies also have deficiencies in knowledge update, reasoning transparency, and result interpretability, and are difficult to meet the requirements of high-quality customer service quality inspection. Summary of the Invention
[0003] The purpose of this application is to provide a customer service data quality inspection method, device, equipment and medium based on dynamic reasoning, so as to at least solve the problems that the current customer service quality inspection system cannot meet the requirements in terms of knowledge update, reasoning transparency, and result interpretability.
[0004] To solve the above technical problems, this application provides a customer service data quality inspection method based on dynamic reasoning, including:
[0005] Parsing customer service conversation data based on a pre-configured large model to generate structured conversation data containing intent labels and key problem nodes;
[0006] According to the intent labels in the structured conversation data, retrieve and enhance the generated framework to recall matching domain knowledge from the standard knowledge base in real time to construct a dynamic context knowledge graph;
[0007] Using the dynamic context knowledge graph as input, guiding the large model to perform step-by-step logical reasoning on the customer service conversation data by means of a chain of thought prompt template, and outputting a preliminary quality inspection conclusion chain containing the reasoning path;
[0008] Performing multimodal retrieval verification on the assertion nodes in the preliminary quality inspection conclusion chain to generate a traceable final quality inspection conclusion;
[0009] Based on the final quality inspection conclusion, calculate the quantitative score of the customer service conversation data and generate a visual chain of thought report. The quantitative score includes quantitative scores of at least one dimension of compliance, accuracy, and tone emotion. The report contains error node annotations, correction paths, and service optimization suggestions for any one of the dimensions.
[0010] Optionally, the parsing includes word segmentation, entity recognition, and context semantic parsing; parsing the customer service dialogue data based on a pre-configured large model to generate structured dialogue data containing intent tags and key question nodes, including:
[0011] Based on the zero-shot learning ability of the large model, pre-classify the intent of the customer service dialogue data to generate preliminary intent tags;
[0012] Through context semantic reinforcement configuration, disambiguate and correct the preliminary intent tags to output multi-dimensional intent tags;
[0013] Combine the results of the entity recognition, associate the multi-dimensional intent tags with the key question nodes, and construct the structured dialogue data.
[0014] Optionally, the domain knowledge includes at least one of specification texts, historical cases, and industry policies; constructing the dynamic context knowledge graph includes:
[0015] Based on the semantic vectors of the intent tags, recall the specification texts in the standard knowledge base by using cosine similarity matching;
[0016] In the historical case library, screen the historical cases with the highest similarity to the dialogue scenario of the customer service dialogue data based on the time weight retrieval strategy;
[0017] Fuse the specification texts and historical cases to generate a dynamic context knowledge graph.
[0018] Optionally, through the retrieval-enhanced generation framework, recall the matching domain knowledge from the standard knowledge base in real time to construct a dynamic context knowledge graph, including:
[0019] Determine the timeliness requirements according to the dialogue scenario of the customer service dialogue data;
[0020] Based on the timeliness requirements, perform time decay weighting on the retrieval results recalled in real time from the standard knowledge base, and preferentially recall the recently updated domain knowledge to construct a dynamic context knowledge graph.
[0021] Optionally, the step-by-step logical reasoning includes compliance verification, knowledge accuracy verification, and sentiment polarity analysis; using the thought chain prompt template to guide the large model to perform step-by-step logical reasoning on the customer service dialogue data, and output a preliminary quality inspection conclusion chain containing the reasoning path, including:
[0022] Through the compliance rule chain in the prompt template, layer by layer verify whether the customer service responses in the customer service dialogue data comply with industry specifications;
[0023] Evaluate the accuracy score of the customer service reply in the customer service dialogue data based on the similarity of historical cases;
[0024] Use a sentiment analysis model to quantify the sentiment polarity of the customer service reply in the customer service dialogue data, and compare it with a preset threshold to generate a sentiment score;
[0025] Output the preliminary quality inspection conclusion chain including the inference paths of compliance verification, knowledge accuracy verification, and sentiment polarity analysis.
[0026] Optionally, the multimodal retrieval verification includes verification of at least one of text, rule base, historical case base, or manually annotated data. The multimodal retrieval verification of the assertion nodes in the preliminary quality inspection conclusion chain includes:
[0027] Based on the assertion nodes in the preliminary quality inspection conclusion chain, extract the assertion content, align and verify it with the structured text specifications in the rule base through a semantic matching algorithm, calculate the semantic similarity score. If the semantic similarity score is lower than the preset threshold, mark this assertion node as a potential logical conflict node;
[0028] According to the context scenario of the assertion node, recall similar dialogue cases from the historical case base, and compare the consistency between the current assertion conclusion and the historical processing result through a time-weighted strategy and scenario similarity. If the consistency meets the condition of significant difference, mark this assertion node as a conflict warning node.
[0029] Optionally, the method further includes:
[0030] Based on the multi-dimensional scoring results, through a preset business impact factor model, calculate the optimization priority labels for each dimension, and use a policy mapping algorithm to associate the scoring defects with a preset policy library to generate an initial optimization policy matrix;
[0031] According to the priority labels in the optimization policy matrix, combined with the real-time dialogue scenario features, recall the appropriate optimization rule set from the policy library, and dynamically adjust the policy weights through a rule engine to output a scenario-based optimization policy execution list;
[0032] Feed back the optimization policy execution list to the corresponding customer service system.
[0033] To solve the above technical problems, the present application also provides a customer service data quality inspection device based on dynamic reasoning, including:
[0034] A data parsing module for parsing customer service dialogue data based on a pre-configured large model to generate structured dialogue data including intent labels and key problem nodes;
[0035] The graph construction module is used to retrieve and enhance the generated framework based on the intent tags in the structured dialogue data, and recall the matching domain knowledge from the standard knowledge base in real time to construct a dynamic context knowledge graph;
[0036] The logical reasoning module is used to take the dynamic context knowledge graph as input, and use the chain-of-thought prompt template to guide the large model to perform step-by-step logical reasoning on the customer service dialogue data, and output a preliminary quality inspection conclusion chain containing the reasoning path;
[0037] The retrieval verification module is used to perform multi-modal retrieval verification on the assertion nodes in the preliminary quality inspection conclusion chain to generate a traceable final quality inspection conclusion;
[0038] The quantitative output module is used to calculate the quantitative score of the customer service dialogue data based on the final quality inspection conclusion, and generate a visual chain-of-thought report. The quantitative score includes the quantitative scores of at least one dimension of compliance, accuracy, and tone and emotion. The report contains error node annotations, correction paths, and service optimization suggestions for any one of the dimensions.
[0039] To solve the above technical problems, the present application also provides a computer device, including a memory and a processor. Computer-readable instructions are stored in the memory. When the computer-readable instructions are executed by the processor, the processor executes the steps of the above-mentioned customer service data quality inspection method based on dynamic reasoning.
[0040] To solve the above technical problems, the present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, one or more processors execute the steps of the above-mentioned customer service data quality inspection method based on dynamic reasoning.
[0041] The beneficial effects of the embodiments of this application are as follows: By parsing customer service dialogue data, structured dialogue data containing intent tags and key question nodes is generated; According to the intent tags in the structured dialogue data, through the Retrieval-Augmented Generation (RAG) framework, matching domain knowledge is recalled in real time from the standard knowledge base to construct a dynamic context knowledge graph; Using the dynamic context knowledge graph as input, a large model is guided by a Chain of Thought (CoT) prompt template to perform step-by-step logical reasoning, and a preliminary quality inspection conclusion chain is output; The assertion nodes in the preliminary quality inspection conclusion chain are retrieved and verified to generate a traceable final quality inspection conclusion; Based on the final quality inspection conclusion, a quantitative score of the customer service dialogue data is calculated and a visual Chain of Thought report is generated. Based on the deep semantic understanding and dynamic knowledge retrieval of the large model, accurate parsing and quality inspection of customer service dialogues are achieved, solving the problem of insufficient understanding of complex semantics in traditional methods. And by combining Chain of Thought reasoning and multi-modal verification, an interpretable quality inspection conclusion is generated, improving the transparency and accuracy of quality inspection. At the same time, multi-dimensional scoring and visual reports provide clear improvement directions for the customer service team, support the self-optimization of the system, and significantly improve the quality of customer service and management efficiency. Brief Description of the Drawings
[0042] The above and / or additional aspects and advantages of this application will become apparent and easy to understand from the following description of the embodiments in conjunction with the drawings, where:
[0043] Figure 1 is a schematic flowchart of the basic process of a customer service data quality inspection method based on dynamic reasoning for a specific embodiment of this application;
[0044] Figure 2 is a schematic diagram of the basic structure of a customer service data quality inspection device based on dynamic reasoning for a specific embodiment of this application;
[0045] Figure 3 is a basic structural block diagram of a computer device for a specific embodiment of this application. Detailed Description of the Embodiments
[0046] The embodiments of this application are described in detail below. The examples of the embodiments are shown in the drawings, where the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are only used to explain this application and should not be construed as limiting this application.
[0047] Those skilled in the art can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "said" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of this application means the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups.
[0048] Those skilled in the art can understand that, unless otherwise defined, all terms used herein (including technical terms and scientific terms) have the same meaning as the general understanding of those of ordinary skill in the art to which this application belongs. It should also be understood that terms such as those defined in a general dictionary should be understood to have a meaning consistent with the meaning in the context of the prior art, and will not be interpreted in an idealized or overly formal sense unless specifically defined as here.
[0049] Those skilled in the art can understand that the "terminal" used herein includes both a device with a wireless signal receiver, which is only a device with a wireless signal receiver without transmission ability, and a device with receiving and transmitting hardware, which has receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, Internet / intranet access, a web browser, a notepad, a calendar and / or a GPS (Global Positioning System) receiver; conventional laptop and / or palm computers or other devices, which are conventional laptop and / or palm computers or other devices with and / or including a radio frequency receiver. The "terminal" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to operate locally, and / or operate in a distributed form at any other location on the earth and / or in space. The "terminal" used herein may also be a communication terminal, an Internet access terminal, a music / video playback terminal, such as a PDA, a MID (Mobile Internet Device) and / or a mobile phone with music / video playback function, or may also be a smart TV, a set-top box and other devices.
[0050] The hardware referred to by names such as "server", "client", and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, including a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit loads the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input / output devices to complete specific functions.
[0051] It should be noted that the concept of "server" in this application can similarly be extended to apply to the case of a server cluster. According to the network deployment principle understood by those skilled in the art, the various servers should be logically divided. Physically, these servers can either be independent of each other but can be called through an interface, or integrated into a single physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility and should not be restricted by this when implementing the network deployment method of this application.
[0052] One or several technical features of this application, unless expressly specified, can either be deployed on the server and accessed by the client remotely invoking the online service interface provided by the server, or directly deployed and run on the client for access.
[0053] The AI models cited or possibly cited in this application, unless expressly specified, can either be deployed on a remote server and remotely invoked on the client, or deployed on a client capable of handling the device capabilities for direct invocation. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid excessive consumption of the client's hardware operating resources.
[0054] All kinds of data involved in this application, unless expressly specified, can either be remotely stored on the server or stored on the local terminal device, as long as it is suitable for being invoked by the technical solution of this application.
[0055] Those skilled in the art should be aware that although the various methods of this application are described based on the same concept and thus show commonality with each other, unless otherwise specified, these methods can be executed independently. Similarly, for the various embodiments disclosed in this application, they are all proposed based on the same inventive concept. Therefore, for the same concept expressed, as well as concepts that are only appropriately transformed for convenience although the concept expressions are different, they should be equivalently understood.
[0056] Unless expressly stated to be mutually exclusive, the various embodiments disclosed in this application may be cross-combined with the relevant technical features of the various embodiments to flexibly construct new embodiments, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or resolve certain deficiencies in the prior art. Those skilled in the art should be aware of such flexibility.
[0057] See also Figure 1 , Figure 1 Schematic diagram of the basic flow of the customer service data quality inspection method based on dynamic reasoning in this embodiment.
[0058] like Figure 1 Shown, including:
[0059] S1100: Parse customer service conversation data based on a pre-configured large model to generate structured conversation data containing intent tags and key question nodes;
[0060] This embodiment is applicable to quality inspection scenarios for customer service call data and intelligent customer service systems in various fields, including finance, e-commerce, insurance, education, healthcare, and law. In this embodiment, a quality inspection system equipped with a basic model (such as a large language model) is configured to perform dynamic quality inspections for various customer service scenarios. The quality inspection system can access the customer service system, obtain data from the customer service system, and define this data as customer service conversation data. Based on the preconfigured large model, the quality inspection system can parse the customer service conversation data to generate structured conversation data containing intent labels and key question nodes. Specifically, the quality inspection system first receives the raw text data of the customer service conversation, which may include multiple rounds of conversation between the customer and the customer service representative. The preconfigured large model (large language model) is then used to parse the text, including word segmentation, entity recognition, and contextual semantic analysis. First, word segmentation is performed to break down sentences in the raw text data into words or phrases. For example, "I want to inquire about the return policy" would be broken down into "I / want / inquire / about / return / policy." Entity recognition is then performed to identify key entities in the conversation, such as "return policy," which is identified as an entity related to after-sales service. The large model then uses its contextual understanding capabilities to perform semantic analysis of the entire conversation and determine the conversational intent. For example, it classifies the sentence above as "consulting" and labels the key question node "return policy." Ultimately, it generates structured conversation data containing the intent label "consulting" and the key question node "return policy," providing basic input for subsequent quality inspection processes.
[0061] It should be noted that the large model in this embodiment is configured to not only handle Chinese conversations, but also perform word segmentation, entity recognition, and context semantic parsing on conversations in other languages such as English and Japanese. For example, for the English conversation "I want to return this product", the large model segments it into "I / want / to / return / this / product", recognizes "return" as a key entity, and classifies its intention as "return consultation". In addition, the large model can also translate conversations in other languages into a preset language (such as Chinese) and then perform subsequent parsing, so as to achieve unified quality inspection of multilingual customer service data.
[0062] It should be noted that the large model in this embodiment is configured to not only analyze the conversation content of the current round, but also combine the context information of the previous few rounds of conversations for semantic understanding. For example, in the conversation, the customer first mentions "I want to know about the product functions", and then asks "How about the after-sales guarantee?", the large model will connect the two rounds of conversations, recognize that the overall intention of the customer is "product consultation + after-sales consultation", and mark the key question nodes as "product functions" and "after-sales guarantee". In this way, the large model can more accurately capture the coherence and complexity of the conversation, and provide more comprehensive structured data for subsequent quality inspection.
[0063] S1200. According to the intention tags in the structured conversation data, through the Retrieval-Augmented Generation (RAG) framework, retrieve and recall the matching domain knowledge from the standard knowledge base in real time to construct a dynamic context knowledge graph;
[0064] After parsing the customer service conversation data based on the pre-configured large model to generate structured conversation data containing intention tags and key question nodes, according to the intention tags in the structured conversation data, through the Retrieval-Augmented Generation (RAG) framework, retrieve and recall the matching domain knowledge from the standard knowledge base in real time to construct a dynamic context knowledge graph. Specifically, the quality inspection system extracts the intention tags (such as "consultation") and key question nodes (such as "return policy") among them. Based on this information, through the Retrieval-Augmented Generation (RAG) framework, retrieve and recall the matching domain knowledge from the standard knowledge base in real time. The retriever in the RAG framework will retrieve the specification texts, historical high-quality conversation cases, and industry policies related to "return policy" from the standard knowledge base. For example, the retriever may find the "Return Policy Instructions" document within the enterprise, as well as the conversation records of previous successful customer service handling of return issues. The retrieved knowledge is integrated into a dynamic context knowledge graph, which contains knowledge nodes and association relationships related to the current conversation. For example, the "return policy" node may be connected to sub-nodes such as "refund process" and "requirements for product integrity". Finally, this dynamic context knowledge graph provides rich real-time knowledge support for subsequent chain-of-thought quality inspection reasoning.
[0065] It should be noted that after the quality inspection system receives the intent label and key question nodes in this embodiment, the RAG framework not only matches based on keywords, but also utilizes the semantic understanding ability of the large model to calculate the semantic similarity between the conversation content and the knowledge in the knowledge base. For example, even if the customer inquires about the "return and exchange process" and the "return policy" is stored in the knowledge base, the system can identify the association between the two through semantic similarity calculation and recall relevant knowledge. In addition, the system can also sort the retrieval results according to the similarity score, and preferentially select the knowledge entries with the closest semantics, thereby improving the accuracy and efficiency of the retrieval.
[0066] It should be noted that the standard knowledge base in this embodiment not only includes static normative texts and historical cases, but also accesses external data sources in real time, such as industry news, policy updates, etc. For example, when new consumer protection regulations are introduced, the knowledge base can update relevant content in a timely manner. During the retrieval process, the RAG framework will preferentially retrieve the latest knowledge entries to ensure that the system can obtain domain knowledge with strong timeliness. For example, when processing a customer's inquiry about the "latest privacy policy", the system can recall the recently updated privacy policy content in real time instead of the outdated version, thereby improving the accuracy and reliability of the quality inspection.
[0067] It should be noted that the standard knowledge base in this embodiment is configured into multiple levels, including a general knowledge base (such as industry general policies), an enterprise knowledge base (such as enterprise internal service specifications), and a personalized knowledge base (such as special policies for specific customer groups). After the quality inspection system receives the intent label and key question nodes, the RAG framework will first retrieve basic knowledge from the general knowledge base, then retrieve more specific specifications from the enterprise knowledge base, and finally retrieve knowledge related to specific customers from the personalized knowledge base. For example, for a VIP customer's inquiry about the "priority service policy", the system will first find the "customer service policy" from the general knowledge base, then find the "VIP customer rights and interests" from the enterprise knowledge base, and finally find the exclusive service terms for this VIP customer from the personalized knowledge base. Through this multi-level retrieval mechanism, the system can provide more accurate personalized quality inspection support for different customer groups.
[0068] S1300: Using the dynamic context knowledge graph as the input, guiding the large model to perform step-by-step logical reasoning on the customer service conversation data by using the thought chain (CoT) prompt template, and outputting a preliminary quality inspection conclusion chain containing the reasoning path;
[0069] After retrieving and enhancing the generation (RAG) framework to recall the matching domain knowledge from the standard knowledge base in real-time according to the intent tags in the structured conversation data to construct a dynamic context knowledge graph, using the dynamic context knowledge graph as the input, and guiding the large model to perform step-by-step logical reasoning on the customer service conversation data by using the chain of thought (CoT) prompt template, an initial quality inspection conclusion chain containing the reasoning path is output. Specifically, the quality inspection system uses the constructed dynamic context knowledge graph as the input and guides the large model to reason by using a preset CoT prompt template (such as "Please gradually analyze whether the customer service reply meets the following specifications: {retrieved content}"). For example, for a customer's inquiry about the "return policy", the large model will gradually analyze whether the customer service reply mentions key points such as "return conditions" and "refund process" according to the prompt template. The reasoning process is decomposed into multiple logical steps, and each step corresponds to a specific specification or knowledge node. For example, the first step is to verify whether the customer service clearly states the "requirements for product integrity", and the second step is to check whether the "refund time range" is mentioned. Finally, the large model generates an initial quality inspection conclusion chain containing the reasoning path, such as "The customer service clearly states the requirements for product integrity (meeting the specifications), but does not mention the refund time range (not meeting the specifications)". This step-by-step reasoning method not only improves the quality inspection accuracy but also provides a clear logical chain for subsequent correction and review.
[0070] It should be noted that this embodiment also configures a hierarchical reasoning mechanism to adjust the reasoning priority according to the importance and complexity of the problem. For example, for key problems involving customer complaints (such as "product quality problems"), the large model will give priority to detailed reasoning to ensure that each key point meets the enterprise specifications and knowledge base requirements. For general inquiries (such as "product price"), the reasoning process will be relatively simplified, and the focus is on verifying the accuracy of the information. In addition, the system can also dynamically adjust the depth and breadth of reasoning according to the customer type (such as VIP customers) or the conversation scenario (such as high-value orders). For example, for the inquiries of VIP customers, the system will increase the reasoning steps to ensure the integrity and professionalism of the customer service reply. This hierarchical reasoning and priority adjustment mechanism can optimize resource allocation and improve the quality inspection efficiency and accuracy of the system in different scenarios.
[0071] S1400. Perform multi-modal retrieval verification on the assertion nodes in the initial quality inspection conclusion chain to generate a traceable final quality inspection conclusion;
[0072] After outputting the preliminary quality inspection conclusion chain containing the reasoning path, perform multimodal retrieval verification on the assertion nodes in the preliminary quality inspection conclusion chain to generate a traceable final quality inspection conclusion. Specifically, the quality inspection system first extracts the key assertion nodes in the preliminary quality inspection conclusion chain. An assertion node (Assertion Node) refers to a key judgment point or conclusive statement generated during the step-by-step logical reasoning process. Each node corresponds to the quality inspection logic verification result of a specific dimension (such as compliance, accuracy, sentiment, etc.), and the assertion determination is performed based on a dynamically retrieved knowledge base or preset rules. For example, "The customer service did not mention the refund time range in the return policy". For this assertion, the system uses a multimodal retrieval engine to verify the accuracy of the assertion from the knowledge base by combining various forms of knowledge resources such as text, tables, and pictures. For example, the retrieval engine will search for the normative text, historical conversation cases, and relevant charts (such as flowcharts) about the "refund time range" in the knowledge base. If the retrieval results show that there is a clear specification in the knowledge base and the customer service did not mention this content in the conversation, the assertion is confirmed as correct; otherwise, if the retrieval results show that the customer service has mentioned the relevant content, the system corrects the assertion. Finally, the system generates a traceable final quality inspection conclusion containing the verification process and results, ensuring that each assertion has a clear basis and correction path.
[0073] It should be noted that the assertion node in this embodiment is the smallest logical unit of the reasoning chain. For example: "Whether the customer service reply mentions the return policy" (compliance node); "Whether the data provided by the customer service is consistent with the knowledge base" (accuracy node); "Whether the customer service tone meets the positive sentiment threshold" (sentiment node). Each node contains the assertion content (judgment criterion) and the assertion result (whether it meets the requirements). Through step-by-step assertion nodes, the "black box reasoning" of the large model is transformed into a transparent logical chain, which is convenient for tracing the source of errors. And the determination result of each node directly affects the final score. The assertion node is the core unit connecting dynamic knowledge, reasoning logic, and quality inspection conclusions, improving the accuracy and interpretability of the system through fine-grained verification.
[0074] S1500. Based on the final quality inspection conclusion, calculate the quantitative score of the customer service conversation data and generate a visual thinking chain report. The quantitative score includes the quantitative scores of at least one dimension of compliance, accuracy, and tone sentiment. The report contains the error node annotation, correction path, and service optimization suggestions for any one of the dimensions.
[0075] After performing multimodal retrieval verification on the assertion nodes in the preliminary quality inspection conclusion chain and generating a traceable final quality inspection conclusion, a quantitative score of the customer service conversation data is calculated based on the final quality inspection conclusion, and a visual thought chain report is generated. Specifically, the quality inspection system calculates quantitative scores according to dimensions such as compliance, accuracy, and emotional attitude in the final quality inspection conclusion. For example, the compliance score may be based on whether the customer service completely follows the enterprise service specifications, the accuracy score is based on whether the information provided by the customer service is consistent with the knowledge base, and the emotional attitude score is based on whether the tone and diction of the customer service are positive and friendly. Suppose a certain customer service conversation scores 90% in compliance (most specifications are correctly implemented), 85% in accuracy (some information is missing), and 95% in emotional attitude (friendly tone). The system will integrate these scores into a comprehensive quality score. Subsequently, the system generates a visual thought chain report to display the quality inspection results in the form of charts and text. Each dimension's score is clearly marked in the report, and problem nodes are highlighted. For example, "The customer service did not mention the refund time range" is marked in red, and at the same time, a correction path and improvement suggestions are provided, such as "It is recommended to supplement the description of the refund time range in subsequent conversations." This visual report not only helps managers quickly understand the overall quality of customer service conversations but also provides clear improvement directions for customer service staff, supporting the continuous optimization of the system.
[0076] It should be noted that the quality inspection system in this embodiment is also configured with a multi-dimensional scoring mechanism, which dynamically adjusts the weights of each dimension to adapt to different business requirements and conversation scenarios. For example, when handling customer complaints, the weight of the compliance dimension can be increased because the standardization of complaint handling directly affects customer satisfaction; while when answering technical questions, the weight of the accuracy dimension can be increased because the correctness of information is crucial. The system can dynamically allocate weights according to preset business rules or real-time analysis of conversation content. For example, for conversations involving high-value orders, the weights of the compliance and accuracy dimensions can each be increased by 10%, while the weight of the emotional attitude dimension is appropriately reduced. In this way, the system can more accurately reflect the quality of customer service conversations in different scenarios, generating more targeted quantitative scores and improvement suggestions.
[0077] Furthermore, the quality inspection system of this embodiment is also configured with personalized feedback and intelligent recommendation functions to further enhance the value of the quality inspection report. The system generates personalized improvement suggestions for each customer service staff according to the final quality inspection conclusion. For example, if a customer service staff scores low in terms of emotional attitude, the system will recommend relevant communication skills training resources, such as online courses or simulated dialogue exercises. In addition, the system can also intelligently recommend optimized dialogue templates according to the types of problem nodes. For example, if the customer service omits key information when explaining the product function, the system will provide a verified dialogue template containing all necessary information for the customer service to refer to. This personalized feedback and intelligent recommendation function not only helps customer service staff improve quickly, but also improves the overall intelligence level of the system, supporting the self-optimization and growth of the customer service team.
[0078] In the above implementation, by parsing the customer service dialogue data, structured dialogue data containing intent tags and key problem nodes is generated; according to the intent tags in the structured dialogue data, through the retrieval-augmented generation (RAG) framework, domain knowledge that matches is recalled in real time from the standard knowledge base to construct a dynamic context knowledge graph; taking the dynamic context knowledge graph as the input, using the chain of thought (CoT) prompt template to guide the large model to perform step-by-step logical reasoning, and outputting a preliminary quality inspection conclusion chain; retrieving and verifying the assertion nodes in the preliminary quality inspection conclusion chain to generate a traceable final quality inspection conclusion; based on the final quality inspection conclusion, calculating the quantitative score of the customer service dialogue data and generating a visual chain of thought report. Based on the deep semantic understanding and dynamic knowledge retrieval of the large model, the accurate parsing and quality inspection of the customer service dialogue are realized, solving the problem of insufficient understanding of complex semantics by traditional methods. And combined with chain of thought reasoning and multi-modal verification, an interpretable quality inspection conclusion is generated, improving the transparency and accuracy of the quality inspection. At the same time, the multi-dimensional scoring and visual report provide a clear improvement direction for the customer service team, support the self-optimization of the system, and significantly improve the quality of customer service and management efficiency.
[0079] In some embodiments, the parsing includes word segmentation, entity recognition, and context semantic parsing; step S1100 includes:
[0080] S1111. Based on the zero-shot learning ability of the large model, perform intent pre-classification on the customer service dialogue data to generate preliminary intent tags;
[0081] In this embodiment, parsing the customer service dialogue data includes word segmentation, entity recognition, and context semantic parsing. Among them, the zero-shot learning ability of the large model is used to pre-classify the intent of the customer service dialogue data to generate preliminary intent labels. Specifically, the system receives the original text data of the customer service dialogue. For example, the customer asks: "I want to know about the product warranty policy." Through its pre-trained language understanding and pattern recognition capabilities, the large model directly analyzes the dialogue content without additional labeled samples. It recognizes the keyword "warranty policy" and, combined with the context semantics, determines that the intent of this dialogue belongs to the "consultation" category and generates a preliminary intent label of "Consultation - Warranty Policy". This zero-shot learning method enables the system to quickly adapt to new dialogue scenarios and question types, and complete preliminary intent classification without a large amount of labeled data, providing a basis for subsequent disambiguation and correction.
[0082] It should be noted that in this embodiment, the system can also be based on zero-shot learning of industry templates. When the system performs intent pre-classification, it combines predefined industry templates (such as common question templates in industries such as e-commerce, finance, and healthcare) to help the large model better understand the dialogue content; combines zero-shot learning of user portraits, and when receiving customer service dialogue data, obtains the customer's background information (such as purchase history, membership level, etc.) at the same time; and zero-shot learning of multilingual dialogues.
[0083] S1112. Disambiguate and correct the preliminary intent label through context semantic reinforcement configuration, and output a multi-dimensional intent label;
[0084] Furthermore, the system also disambiguates and corrects the preliminary intent label through context semantic reinforcement configuration, and outputs a multi-dimensional intent label. Specifically, after generating the preliminary intent label, the system further analyzes the context semantics of the dialogue. For example, the preliminary intent label is "Consultation - Product Information", but the dialogue content is "I want to know if the product is suitable for the elderly". Through context semantic reinforcement configuration, the system recognizes the key context information of "used by the elderly" and corrects the preliminary intent label to "Consultation - Product Suitability (for the elderly)". In addition, the system can also further enrich the intent label by combining multi-modal information such as intonation and emojis. For example, if the customer uses a questioning tone or adds a "?" emoji in the dialogue, the system will further refine the intent label to "Consultation (questioning tone) - Product Suitability (for the elderly)". This context semantic reinforcement configuration can effectively eliminate the ambiguity of the intent label, generate more accurate and richer multi-dimensional intent labels, and provide a more accurate basis for subsequent dialogue processing.
[0085] It should be noted that the quality inspection system of this embodiment also disambiguates the intent label based on the dialogue history and in combination with the domain knowledge base.
[0086] S1113. Combine the results of the entity recognition, associate the multi-dimensional intent tags with the key question nodes, and construct the structured dialogue data;
[0087] Furthermore, the system combines the results of the entity recognition, associates the multi-dimensional intent tags with the key question nodes, and constructs the structured dialogue data. Specifically, after the system completes the correction of the intent tags, it further extracts the entity information in the dialogue. For example, the dialogue content is "I want to know about the repair policy of iPhone 14". After entity recognition, the system recognizes "iPhone 14" as the product entity and "repair policy" as the question entity. Subsequently, the system associates the multi-dimensional intent tag "Consultation - Product Repair Policy (for iPhone 14)" with these key entities to generate structured dialogue data. The finally output structured data includes the intent tag, key question nodes (such as product model, question type), and the corresponding entity information, for example: {Intent tag: Consultation, Question node: Repair policy, Product entity: iPhone 14}. This kind of structured data not only clearly shows the core content of the dialogue, but also provides a standardized input for subsequent quality inspection and analysis.
[0088] It should be noted that the system in this embodiment also optimizes the association relationship between entities and intents by introducing a domain knowledge base. For example, the dialogue content is "I want to ask about the lens configuration of this camera", the preliminary intent tag is "Consultation - Product Information", and the entity recognition results are "camera" and "lens configuration". The system retrieves the domain knowledge base and recognizes that "lens configuration" is a key feature of the camera product and belongs to the category of technical parameters. Therefore, the system refines the intent tag to "Consultation - Camera Lens Configuration (Technical Parameter)" and closely associates the entity with the intent. The finally generated structured data is: {Intent tag: Consultation, Question node: Lens configuration, Product entity: Camera}. By introducing the domain knowledge base, the system can more accurately identify and associate entities and intents, improving the professionalism and accuracy of the structured data.
[0089] This embodiment quickly generates preliminary intent tags through zero-shot learning ability, performs disambiguation and correction by combining context semantic reinforcement configuration, and constructs the structured dialogue data by associating the entity recognition results. This process significantly improves the accuracy and efficiency of intent recognition, and at the same time provides a more accurate and richer data basis for subsequent customer service dialogue processing and quality inspection, enhancing the intelligent level and adaptability of the system.
[0090] In some embodiments, the domain knowledge includes at least one of normative texts, historical cases, and industry policies; S1200 constructs a dynamic context knowledge graph, including:
[0091] S1211. Recall the canonical text in the standard knowledge base by using cosine similarity matching based on the semantic vector of the intent label;
[0092] In this embodiment, when constructing the dynamic context knowledge graph, first, recall the canonical text in the standard knowledge base by using cosine similarity matching based on the semantic vector of the intent label. Specifically, the system first converts the intent label (such as "Consultation - Return Policy") into a semantic vector and extracts its semantic features by using a pre-trained language model (such as BERT). Then, the canonical text stored in the standard knowledge base (such as the "Return Policy Description" within the enterprise) is vectorized, and the cosine similarity between the semantic vector of each canonical text and the intent label vector is calculated. For example, if the semantic vector of the intent label "Consultation - Return Policy" has the highest similarity with the vector of the "Return Policy Description", the system recalls this canonical text. Through cosine similarity matching, the system can efficiently find the knowledge most relevant to the current conversation intent from a large number of canonical texts, providing an accurate canonical basis for subsequent quality inspection reasoning.
[0093] It should be noted that when performing cosine similarity matching based on the semantic vector of the intent label, a keyword enhancement mechanism is combined. In addition to using the semantic vector of the intent label, the system also extracts the key entities in the conversation (such as "return" and "refund") as keywords. When recalling the canonical text, the system not only calculates the cosine similarity of the semantic vectors but also weights the matching degree of the keywords. For example, the text containing keywords such as "return" and "refund" in the canonical text will be given a higher weight, thereby improving the accuracy of recall. This method of cosine similarity matching combined with keyword enhancement can better handle the situation where the semantics of the intent label are not completely clear and further improve the precision of recall.
[0094] S1212. In the historical case base, screen the historical case with the highest similarity to the conversation scenario of the customer service conversation data based on the time weight retrieval strategy;
[0095] After or simultaneously with matching and recalling the specification text, the quality inspection system of this embodiment screens the historical case with the highest similarity to the dialogue scenario of the customer service dialogue data in the historical case library based on the time weight retrieval strategy. Specifically, the system first extracts the key features of the customer service dialogue, including intent tags, key question nodes, and dialogue scenarios (such as consultation, complaint, after-sales, etc.). Then, the system calculates the similarity for each case in the historical case library and introduces a time weight factor at the same time. The time weight factor is adjusted according to the generation time of the case, and the weight of recent cases is higher because they are more likely to reflect the current business process and service specifications. For example, if the current dialogue scenario is "customer complains about product failure", the system will first retrieve similar complaint cases within the last three months and calculate their similarity to the current dialogue. Through this time weight retrieval strategy, the system can quickly find the historical case that best matches the current dialogue scenario and has strong timeliness, providing strong support for subsequent knowledge fusion.
[0096] It should be noted that the system of this embodiment is also configured to dynamically adjust the time weight factor to optimize the retrieval effect of historical cases. The system dynamically adjusts the calculation method of the time weight factor according to business requirements and the timeliness of historical data. For example, in scenarios where the business is updated frequently (such as during e-commerce promotion activities), the system will increase the weight of recent cases to ensure that the retrieval results reflect the latest business specifications; while in relatively stable business scenarios (such as regular after-sales service), the system will appropriately relax the time weight and allow the retrieval of earlier cases. This dynamic adjustment mechanism enables the system to better adapt to different business environments, ensuring that the retrieval results of historical cases are both timely and can make full use of the rich resources in the knowledge base.
[0097] S1213. Perform knowledge fusion on the specification text and historical cases to generate a dynamic context knowledge graph.
[0098] After recalling the regulatory text and historical cases, the regulatory text and historical cases are knowledge - fused to generate a dynamic context knowledge graph. Specifically, the system first extracts the key information in the regulatory text (such as policy terms, operation processes) and the key nodes in historical cases (such as problem descriptions, solutions, customer service scripts). For example, the regulatory text mentions that "when a customer complains about a product failure, a response should be made within 48 hours", and a historical case records that "a customer complained about a product failure, and the customer service responded within 2 hours and provided a solution". The system fuses this information through semantic analysis and association rules. For example, the "response within 48 hours" in the regulatory text is associated with the "2 - hour response" in the historical case to form a knowledge node "response time". At the same time, the system also combines the solutions in historical cases with the operation processes in the regulatory text to form a complete knowledge chain. Finally, the generated dynamic context knowledge graph not only contains the authoritative information of the regulatory text but also combines the practical operation experience of historical cases, providing rich context support for subsequent quality inspection reasoning. This knowledge - fusion method can effectively improve the practicality and accuracy of the knowledge graph, making it better serve the quality inspection of customer service conversations.
[0099] This embodiment accurately recalls the regulatory text through semantic vector matching, combines the time - weight strategy to screen highly similar historical cases, and fuses the two to generate a dynamic context knowledge graph. This process significantly improves the efficiency and accuracy of knowledge retrieval, provides richer and more timely knowledge support for customer service quality inspection, enhances the intelligent level and adaptability of the system, and ensures the reliability and practicality of the quality inspection results.
[0100] In some embodiments, S1200 constructs a dynamic context knowledge graph by real - time recalling matching domain knowledge from a standard knowledge base through a Retrieval - Augmented Generation (RAG) framework, including:
[0101] S1221, determining the timeliness requirements according to the conversation scenario of the customer service dialogue data;
[0102] In this embodiment, when constructing the dynamic context knowledge graph, the timeliness requirements are determined according to the dialogue scenarios of the customer service dialogue data. Specifically, the system first analyzes the key features of the customer service dialogue, such as intent tags, question nodes, and dialogue topics. For example, if the dialogue scenario is "customer inquires about the latest promotional activities", the system recognizes that this scenario has a high timeliness requirement because the content of the promotional activities may be updated at any time. The system will set the timeliness requirement to "high" and mark that knowledge updated within the last month needs to be recalled preferentially. On the contrary, if the dialogue scenario is "customer inquires about the basic functions of the product", the system recognizes that this scenario has a relatively low timeliness requirement because the basic functions of the product are relatively stable. The timeliness requirement can be set to "medium", allowing knowledge updated within the last three months to be recalled. In this way, the system can flexibly adjust the knowledge recall strategy according to the timeliness requirements of different dialogue scenarios to ensure that the recalled knowledge matches the timeliness of the current dialogue.
[0103] It should be noted that the system in this embodiment is also configured to consider not only the characteristics of the dialogue scenario itself but also factors such as industry policy changes and market dynamics. For example, in the financial industry, regulatory policies may be updated at any time. Therefore, for dialogue scenarios related to financial regulations (such as "customer inquires about the compliance of wealth management products"), the system will automatically set the timeliness requirement to "highest" and preferentially recall knowledge updated within the last week. By introducing industry dynamic information, the system can more accurately judge the timeliness requirements of the dialogue scenario to ensure that the recalled knowledge is always the latest in the case of frequent industry changes.
[0104] It should be noted that the system in this embodiment is also configured to adjust the timeliness requirements according to the urgency of the dialogue. The system judges the urgency of the dialogue by analyzing keywords in the dialogue (such as "urgent", "right away", "immediately") or the semantic features of the dialogue. For example, if the customer mentions in the dialogue "I urgently need to know the latest price of this product", the system will recognize that the urgency of the dialogue is high and set the timeliness requirement to "high", preferentially recalling price information updated within the last week. On the contrary, if the dialogue does not show urgency, the system can appropriately relax the timeliness requirements and recall more extensive knowledge. This adjustment mechanism based on the urgency of the dialogue can ensure that the system provides the latest knowledge support quickly when dealing with urgent dialogues.
[0105] S1222. Based on the timeliness requirements, perform time decay weighting on the retrieval results retrieved in real time from the standard knowledge base, and preferentially recall recently updated domain knowledge to construct a dynamic context knowledge graph.
[0106] After determining the timeliness requirements based on the dialogue scenario of the customer service dialogue data, based on the timeliness requirements, time decay weighting is performed on the retrieval results retrieved in real time from the standard knowledge base, and domain knowledge updated recently is preferentially retrieved to construct a dynamic context knowledge graph. Specifically, the system sorts and weights the retrieval results in the knowledge base according to the timeliness requirements (such as "high" or "medium") determined in step S1211. For example, if the timeliness requirement is "high", the system assigns a higher weight to the knowledge updated within the last month, and the weight gradually decays over time. Suppose there are two records about "product price" in the knowledge base: one was updated last week with a weight of 0.9; the other was updated three months ago with a weight of 0.3. The system will preferentially retrieve the knowledge with a higher weight (i.e., the record updated last week) and incorporate it into the dynamic context knowledge graph. Through time decay weighting, the system can ensure that the latest knowledge is preferentially used when constructing the knowledge graph, thereby improving the timeliness and accuracy of the knowledge graph.
[0107] It should be noted that the quality inspection system of this embodiment is also configured with a segmented time decay strategy to weight the retrieval results. The system divides the time range into multiple segments according to the timeliness requirements, such as "last week", "last month", "last three months", etc., and sets different weights for each segment. Taking "high timeliness requirement" as an example, the weight of the knowledge within the last week is 0.9, the weight of the knowledge within the last month is 0.7, and the weight of the knowledge within the last three months is 0.5. This segmented time decay strategy can more finely control the newness and oldness of knowledge, ensure that the knowledge retrieved within different time ranges has appropriate weights, and thus improve the dynamics and adaptability of the knowledge graph.
[0108] This embodiment constructs a more timely and dynamic context knowledge graph by accurately determining the timeliness requirements of the dialogue scenario and performing time decay weighting on the retrieved knowledge. This process significantly improves the accuracy and practicality of knowledge retrieval, ensures that the quality inspection system can reason based on the latest knowledge, thereby improving the accuracy and reliability of the quality inspection results, and enhancing the adaptability and intelligence level of the system.
[0109] In some embodiments, the step-by-step logical reasoning includes compliance verification, knowledge accuracy verification, and sentiment polarity analysis; S1300 uses a thought chain (CoT) prompt template to guide the large model to perform step-by-step logical reasoning on the customer service dialogue data, and outputs a preliminary quality inspection conclusion chain including the reasoning path, including:
[0110] S1311: Through the compliance rule chain in the CoT prompt template, layer by layer verify whether the customer service replies in the customer service dialogue data comply with industry norms;
[0111] In this embodiment, when using the Chain of Thought (CoT) prompt template to guide the large model to perform step-by-step logical reasoning on the customer service dialogue data and output a preliminary quality inspection conclusion chain containing the reasoning path, the compliance rule chain in the CoT prompt template is used to verify layer by layer whether the customer service responses in the customer service dialogue data comply with industry specifications. Specifically, the system first calls a preset CoT prompt template according to the intent label and key question nodes of the customer service dialogue. For example, for a dialogue where the customer consults about the "product return and exchange policy", the prompt template will include a series of compliance rule chains, such as "whether the return and exchange conditions are clearly mentioned" and "whether the refund process and time limit are stated". The system uses the reasoning ability of the large model to verify the content of the customer service response layer by layer according to the rule chain. For example, the first layer of the rule chain verifies whether the customer service clearly states the "requirements for the integrity of the goods", and the second layer verifies whether the "refund time range" is mentioned. If the customer service response fully complies with all the terms in the rule chain, the compliance verification passes; if there are omissions or errors, it is marked as non-compliant, and the specific non-compliant terms are recorded. Finally, the system generates a preliminary quality inspection conclusion chain containing the compliance verification path, such as: "The customer service clearly stated the requirements for the integrity of the goods (complies with the specification), but did not mention the refund time range (does not comply with the specification)". This layer-by-layer verification method not only ensures the compliance of the customer service response, but also provides a clear logical path for subsequent quality inspection.
[0112] S1312: Evaluate the accuracy score of the customer service response in the customer service dialogue data based on the historical case similarity;
[0113] In this embodiment, the system also evaluates the accuracy score of the customer service reply in the customer service dialogue data based on the similarity of historical cases. Specifically, the system first extracts the key information in the customer service dialogue, including the problem description, the content of the customer service's answer, and the dialogue scenario. For example, when a customer consults "how to repair a product failure", the customer service replies with a detailed repair process and contact information. The system will compare this dialogue with similar cases in the historical case library. The historical case library stores a large number of labeled customer service dialogue samples, each of which contains a problem description, a customer service answer, and an accuracy score labeled by an expert. The system calculates the similarity between the current dialogue and the historical cases to find the case most similar to the current dialogue. The similarity calculation can be based on multiple dimensions such as the semantic similarity of the text content, the problem type, and the dialogue scenario. For example, the system may find a historical case where a customer consulted a similar product failure problem, the content of the customer service's answer is highly similar to the current dialogue, and the accuracy score of this historical case is 90%. The system generates an accuracy score for the reply of the current customer service dialogue based on the accuracy score of the historical case. If the similarity between the current dialogue and the historical case is very high (e.g., more than 80%), the system can directly use the accuracy score of the historical case as the accuracy score of the current dialogue. If the similarity is low, the system will adjust the score according to the similarity ratio. For example, if the similarity is 60%, the accuracy score of the current dialogue may be 60% of the historical case score. Finally, the system outputs the accuracy score of the current customer service dialogue as part of the preliminary quality inspection conclusion chain, providing a basis for subsequent comprehensive evaluation.
[0114] S1313: Quantify the emotional polarity of the customer service reply in the customer service dialogue data using an emotion analysis model, and generate an emotion score by comparing it with a preset threshold.
[0115] In this embodiment, the system also quantifies the emotional polarity of the customer service replies in the customer service conversation data by using an emotion analysis model, and generates an emotion score by comparing it with a preset threshold. Specifically, the system first extracts the text content in the customer service conversation, including the customer's questions and the customer service's replies. For example, when the customer consults "The product has a malfunction", the customer service replies "We are very sorry for the inconvenience caused to you. We will arrange the repair for you as soon as possible." The system inputs this conversation into a pre-trained emotion analysis model. The emotion analysis model, based on natural language processing technology, can identify the emotional tendency in the text, such as positive, negative or neutral. The model will analyze the keywords, mood words and overall semantics in the customer service reply. For example, words such as "very sorry" and "arrange as soon as possible" will show a positive service attitude. The model will output an emotional polarity score, usually ranging from -1 to 1, where -1 indicates very negative, 1 indicates very positive, and 0 indicates neutral. The system compares the emotional polarity score with the preset threshold to generate an emotion score. For example, the preset positive emotion threshold is 0.5, the neutral emotion threshold is 0, and the negative emotion threshold is -0.5. If the emotional polarity score is 0.7, it means that the customer service reply has a strong positive emotion, and the system will give a higher emotion score, such as 90 points; if the emotional polarity score is -0.3, it means that the customer service reply has a slight negative emotion, and the system will give a lower emotion score, such as 60 points. Finally, the system incorporates the emotion score into the preliminary quality inspection conclusion chain, providing a quantitative basis for the overall quality assessment of the customer service conversation from the emotional dimension. This quantification method based on the emotion analysis model can effectively evaluate the service attitude of the customer service, help managers quickly identify potential service problems, and improve customer satisfaction.
[0116] S1314: Output the preliminary quality inspection conclusion chain including the inference paths of compliance verification, knowledge accuracy verification and emotional polarity analysis.
[0117] In this embodiment, the quality inspection system integrates the results of compliance verification, knowledge accuracy verification and emotional polarity analysis, and outputs a preliminary quality inspection conclusion chain including the inference path. Specifically, the system summarizes the evaluation results of the first three steps. For example, the compliance verification result shows that the customer service reply fully complies with the industry norms; the knowledge accuracy verification score is 85 points, indicating that the reply content is relatively accurate but there are a few details missing; the emotional polarity analysis score is 90 points, indicating that the customer service attitude is positive. The system integrates this information into the preliminary quality inspection conclusion chain: "The customer service reply has good compliance, the accuracy score is 85 points (some details need to be supplemented), and the emotional polarity is positive (score 90 points)". At the same time, the system marks the details that need to be improved, such as "It is recommended to supplement the specific time range for product malfunction repair". This output method of the comprehensive inference path provides a clear basis for the subsequent quality inspection and review, helps to quickly locate problems and guide the customer service to improve.
[0118] In some embodiments, the multimodal retrieval verification includes verification of at least one of text, a rule base, a historical case base, or manually annotated data; S1400 performs multimodal retrieval verification on the assertion nodes in the preliminary quality inspection conclusion chain, including:
[0119] S1411: Based on the assertion nodes in the preliminary quality inspection conclusion chain, extract the assertion content, perform alignment verification with the structured text specifications in the rule base through a semantic matching algorithm, calculate the semantic similarity score. If the semantic similarity score is lower than a preset threshold, mark this assertion node as a potential logical conflict node;
[0120] In this embodiment, the multimodal retrieval verification includes verification of text and a rule base. Specifically, based on the assertion nodes in the preliminary quality inspection conclusion chain, extract the assertion content, and perform alignment verification with the structured text specifications in the rule base through a semantic matching algorithm. For example, an assertion node in the preliminary quality inspection conclusion chain is "The customer service did not mention the detailed process of product return and exchange". The system first extracts the core content of this assertion, which is "the detailed process of product return and exchange". Subsequently, the system invokes the semantic matching algorithm to perform alignment verification between this assertion content and the structured text specifications regarding "return and exchange process" in the rule base. The structured text specifications in the rule base are preprocessed and contain clear terms and descriptions. For example, there may be a specification in the rule base: "The customer service must clearly state the conditions for applying for return and exchange, the submission method, and the processing time". The system calculates the semantic similarity score between the assertion content and the rule base specification through the semantic matching algorithm. The semantic matching algorithm is usually based on techniques such as word embeddings and cosine similarity, and can quantify the semantic relevance between texts. Suppose the preset semantic similarity threshold is 0.7, and the semantic similarity score calculated by the system is 0.65, which is lower than the preset threshold. This indicates that there is a certain semantic deviation between the assertion content and the specification in the rule base, and the system marks this assertion node as a potential logical conflict node. This marking mechanism provides clues for subsequent further verification, helps the system identify possible errors or omissions, and ensures the accuracy and reliability of the preliminary quality inspection conclusion.
[0121] S1412: According to the context scenario of the assertion node, recall similar conversation cases from the historical case base, and compare the consistency between the current assertion conclusion and the historical processing result through a time-weighted strategy and scenario similarity. If the consistency meets the condition of significant difference, mark this assertion node as a conflict warning node.
[0122] In this embodiment, the multimodal retrieval verification includes the verification of historical cases. Specifically, according to the context scenario of the assertion node, similar dialogue cases are recalled from the historical case library, and the consistency between the current assertion conclusion and the historical processing result is compared through a time-weighted strategy and scenario similarity. For example, an assertion node in the preliminary quality inspection conclusion chain is "The customer service did not mention the detailed process of product return and exchange". The system first extracts the context scenario of this assertion node, including the dialogue topic (return and exchange), the customer's intention (consulting the process), and the key information in the dialogue (such as the product model). Subsequently, the system recalls dialogue cases similar to the current scenario from the historical case library. The historical case library stores a large number of annotated customer service dialogue samples, each of which contains the dialogue content, the processing result, and the accuracy evaluation annotated by experts. The system calculates the similarity between the current dialogue scenario and the historical cases to find the case that best matches the current dialogue. The similarity calculation can be based on multiple dimensions such as the dialogue topic, the customer's intention, and the key information. For example, the system may find a historical case where the customer consulted a similar product return and exchange problem, and the customer service detailed the return and exchange process in the reply. To further verify the accuracy of the current assertion conclusion, the system adopts a time-weighted strategy, assigning higher weights to recent cases. For example, the weight of cases within the last month is 0.9, the weight of cases within the last three months is 0.7, and the weight of cases over three months is 0.5. The system compares the current assertion conclusion with the processing result of the historical case and calculates the consistency score. If the consistency score is lower than the preset significant difference threshold (such as 0.6), it indicates that there is a significant difference between the current assertion conclusion and the historical processing result, and the system marks this assertion node as a conflict warning node.
[0123] In this way, the system not only utilizes the empirical knowledge of historical cases but also combines the time-weighted strategy to ensure that the verification process takes into account both the richness of historical data and highlights the timeliness and relevance of recent cases. This comprehensive verification mechanism can effectively identify potential errors or anomalies and improve the accuracy and reliability of the quality inspection conclusion.
[0124] In some embodiments, the method further includes:
[0125] S1511. Based on the multi-dimensional scoring results, through a preset business impact factor model, calculate the optimization priority labels for each dimension, and use a strategy mapping algorithm to associate the scoring defects with a preset strategy library to generate an initial optimization strategy matrix.
[0126] In this embodiment, when providing an optimization strategy, based on the multi-dimensional scoring results, through a preset business impact factor model, the optimization priority labels for each dimension are calculated, and the scoring defects are associated with a preset policy library using a policy mapping algorithm to generate an initial optimization policy matrix. Specifically, the system first receives the multi-dimensional scoring results. For example, the compliance score for a certain customer service conversation is 85 points, the accuracy score is 70 points, and the sentiment polarity score is 90 points. The system evaluates the impact of each dimension on the overall business through a preset business impact factor model. For example, compliance has a greater impact on customer satisfaction and corporate reputation, and the business impact factor may be set to 0.4; accuracy has a greater impact on problem-solving efficiency, and the business impact factor is 0.3; sentiment polarity has a greater impact on the customer experience, and the business impact factor is 0.3. The system calculates the optimization priority labels for each dimension according to the scoring results and business impact factors. For example, the accuracy score is relatively low and the business impact factor is relatively high, so it is marked as "high priority"; the compliance and sentiment polarity scores are relatively high, and they are marked as "medium priority". Subsequently, the system uses a policy mapping algorithm to associate the scoring defects with a preset policy library. For example, for the problem of relatively low accuracy scores, the policy library may have optimization strategies such as "supplement key information" and "optimize knowledge base retrieval". The system associates these strategies with the corresponding priority labels to generate an initial optimization policy matrix.
[0127] S1512. According to the priority labels in the optimization policy matrix, in combination with the real-time conversation scenario features, recall an adapted set of optimization rules from the policy library, and dynamically adjust the policy weights through a rule engine to output a scenario-based optimization policy execution list.
[0128] Furthermore, the system also recalls an adapted set of optimization rules from the policy library based on the priority tags in the optimization policy matrix, combines them with the real-time conversation scenario features, dynamically adjusts the policy weights through a rule engine, and outputs a scenario-based optimization policy execution list. Specifically, the system first filters out high-priority optimization policies according to the priority tags in the optimization policy matrix. For example, for the problem of low accuracy scores, the high-priority policies in the optimization policy matrix are "supplement key information" and "optimize knowledge base retrieval". The system then further refines the set of optimization rules in combination with the real-time conversation scenario features. For example, when the current conversation scenario is "customer consults product failure", the system will recall the optimization rules related to "product failure consultation" from the policy library, such as "supplement failure handling process" and "provide repair contact information". To ensure the adaptability and effectiveness of the optimization policies, the system dynamically adjusts the policy weights through a rule engine. The rule engine will adjust the weights of the optimization policies according to the complexity and urgency of the real-time conversation scenario. For example, if the current conversation scenario involves high-value customers or urgent issues, the system will increase the weight of the policy of "providing repair contact information" to ensure a quick response to customer needs. The rule engine will also consider the historical optimization effect data to dynamically adjust the policy weights to optimize the overall execution effect. Finally, the system outputs a scenario-based optimization policy execution list.
[0129] S1513. Feed back the optimization policy execution list to the corresponding customer service system.
[0130] In this embodiment, after the scenario-based optimization policy execution list is output, the optimization policy execution list is fed back to the corresponding customer service system. Specifically, the system transmits the generated scenario-based optimization policy execution list to the customer service system through a preset interface. For example, if the optimization policy execution list includes two policies, namely "supplement failure handling process" and "provide repair contact information", the system will push the specific content and priority information of these policies to the operation interface of the customer service system. After receiving the optimization policies, the customer service system will automatically embed these policies into the conversation template of the customer service staff. For example, when the customer service staff is handling "product failure consultation", the system will automatically prompt the specific conversation phrases of "supplement failure handling process" and "provide repair contact information" in the dialog box. At the same time, the system will also adjust the priority of the prompt according to the policy weights to ensure that the customer service staff gives priority to executing the optimization policies with high weights.
[0131] The system of this embodiment can directly feedback the optimization policies to the actual operation of the customer service system, helping the customer service staff quickly adjust the service process and improve the service quality. This real-time feedback mechanism not only improves the execution efficiency of the optimization policies but also ensures that the customer service system can dynamically adjust the service policies according to the real-time conversation scenario, thus better meeting the customer needs.
[0132] For details, please refer toFigure 2 , Figure 2 This is a schematic diagram of the basic structure of the customer service data quality inspection device based on dynamic reasoning in this embodiment.
[0133] As Figure 2 shown, a customer service data quality inspection device based on dynamic reasoning includes: a data parsing module 1100, configured to parse customer service dialogue data based on a pre-configured large model to generate structured dialogue data including intent tags and key question nodes; a graph construction module 1200, configured to, according to the intent tags in the structured dialogue data, recall matching domain knowledge from a standard knowledge base in real time through a retrieval-augmented generation (RAG) framework to construct a dynamic context knowledge graph; a logical reasoning module 1300, configured to use the dynamic context knowledge graph as an input, and use a chain of thought (CoT) prompting template to guide the large model to perform step-by-step logical reasoning on the customer service dialogue data, and output a preliminary quality inspection conclusion chain including an inference path; a retrieval verification module 1400, configured to perform multimodal retrieval verification on the assertion nodes in the preliminary quality inspection conclusion chain to generate a traceable final quality inspection conclusion; a quantization output module 1500, configured to calculate a quantization score of the customer service dialogue data based on the final quality inspection conclusion, and generate a visual chain of thought report, where the quantization score includes quantization scores of at least one dimension of compliance, accuracy, and tone emotion, and the report includes error node annotation, correction path, and service optimization suggestions for any one of the dimensions.
[0134] The above-mentioned customer service data quality inspection device based on dynamic reasoning realizes accurate parsing and quality inspection of customer service dialogues based on the deep semantic understanding and dynamic knowledge retrieval of the large model, and solves the problem of insufficient understanding of complex semantics by traditional methods. And by combining chain of thought reasoning and multimodal verification, an interpretable quality inspection conclusion is generated, improving the transparency and accuracy of quality inspection. At the same time, the multi-dimensional scoring and visual report provide a clear improvement direction for the customer service team, support the self-optimization of the system, and significantly improve the customer service quality and management efficiency.
[0135] To solve the above technical problems, an embodiment of the present application also provides a computer device. Specifically, please refer to Figure 3 , Figure 3 This is the basic structure block diagram of the computer device in this embodiment.
[0136] As Figure 3As shown, it is a schematic internal structure diagram of a computer device. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus. Among them, the non-volatile storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database can store a control information sequence. When the computer-readable instructions are executed by the processor. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device can store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can be made to execute a customer service data quality inspection method based on dynamic reasoning. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art can understand, Figure 3 The structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0137] In this embodiment, the processor is used to execute Figure 2 In the data parsing module 1100, the graph construction module 1200, the logical reasoning module 1300, the retrieval verification module 1400, and the quantization output module 1500, by parsing the customer service dialogue data, generate structured dialogue data containing intent tags and key question nodes; according to the intent tags in the structured dialogue data, through the Retrieval-Augmented Generation (RAG) framework, recall matching domain knowledge from the standard knowledge base in real time to construct a dynamic context knowledge graph; using the dynamic context knowledge graph as input, use the Chain of Thought (CoT) prompt template to guide the large model to perform step-by-step logical reasoning and output a preliminary quality inspection conclusion chain; retrieve and verify the assertion nodes in the preliminary quality inspection conclusion chain to generate a traceable final quality inspection conclusion; based on the final quality inspection conclusion, calculate the quantization score of the customer service dialogue data and generate a visual Chain of Thought report. Based on the deep semantic understanding and dynamic knowledge retrieval of the large model, the accurate parsing and quality inspection of customer service conversations are realized, and the problem of insufficient understanding of complex semantics by traditional methods is solved. And by combining Chain of Thought reasoning and multi-modal verification, an interpretable quality inspection conclusion is generated, improving the transparency and accuracy of quality inspection. At the same time, the multi-dimensional scoring and visual report provide a clear improvement direction for the customer service team, support the self-optimization of the system, and significantly improve the quality of customer service and management efficiency.
[0138] This application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, one or more processors are made to execute the steps of the customer service data quality inspection method based on dynamic reasoning described in any of the above embodiments.
[0139] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.
[0140] Those skilled in the art of this technology can understand that the steps, measures, and solutions in the various operations, methods, and processes discussed in this application can be alternated, changed, combined, or deleted. Further, the other steps, measures, and solutions in the various operations, methods, and processes discussed in this application can also be alternated, changed, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and solutions in the prior art that are the same as those disclosed in the various operations, methods, and processes in this application can also be alternated, changed, rearranged, decomposed, combined, or deleted.
[0141] The above are only some embodiments of this application. It should be noted that for those of ordinary skill in the art of this technology, without departing from the principle of this application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of this application.
Claims
1. A customer service data quality inspection method based on dynamic reasoning, characterized in that, Including: Parsing customer service dialogue data based on a pre-configured large model to generate structured dialogue data containing intent tags and key question nodes; According to the intent tags in the structured dialogue data, through a retrieval-augmented generation framework, retrieving and recalling matching domain knowledge from a standard knowledge base in real time to construct a dynamic context knowledge graph; Using the dynamic context knowledge graph as input, guiding the large model to perform step-by-step logical reasoning on the customer service dialogue data by means of a chain-of-thought prompting template, and outputting a preliminary quality inspection conclusion chain containing the reasoning path; the step-by-step logical reasoning includes compliance verification, knowledge accuracy verification, and sentiment polarity analysis; Performing multi-modal retrieval verification on the assertion nodes in the preliminary quality inspection conclusion chain to generate a traceable final quality inspection conclusion; Based on the final quality inspection conclusion, calculating a quantitative score for the customer service dialogue data and generating a visual chain-of-thought report, where the quantitative score includes quantitative scores for at least one dimension of compliance, accuracy, and tone sentiment, and the report contains error node annotations, correction paths, and service optimization suggestions for any one dimension; The multi-modal retrieval verification includes verification of at least one of text, rule base, historical case library, or manually annotated data. The multi-modal retrieval verification of the assertion nodes in the preliminary quality inspection conclusion chain includes: Based on the assertion nodes in the preliminary quality inspection conclusion chain, extracting the assertion content, aligning and verifying it with the structured text specifications in the rule base through a semantic matching algorithm, calculating the semantic similarity score. If the semantic similarity score is lower than a preset threshold, marking the assertion node as a potential logical conflict node; According to the context scenario of the assertion node, recalling similar dialogue cases from the historical case library, and comparing the consistency between the current assertion conclusion and the historical processing result through a time-weighted strategy and scenario similarity. If the consistency meets the condition of significant difference, marking the assertion node as a conflict warning node.
2. The customer service data quality inspection method based on dynamic reasoning according to claim 1, wherein The parsing includes word segmentation, entity recognition, and context semantic parsing. The parsing of the customer service dialogue data based on a pre-configured large model to generate structured dialogue data containing intent tags and key question nodes includes: Based on the zero-shot learning ability of the large model, performing intent pre-classification on the customer service dialogue data to generate preliminary intent tags; Through context semantic reinforcement configuration, disambiguating and correcting the preliminary intent tags to output multi-dimensional intent tags; Combining the results of entity recognition, associating the multi-dimensional intent tags with key question nodes to construct the structured dialogue data.
3. The customer service data quality inspection method based on dynamic reasoning according to claim 1, characterized in that The domain knowledge includes at least one of normative texts, historical cases, and industry policies. The construction of the dynamic context knowledge graph includes: Based on the semantic vectors of the intent tags, recalling normative texts in the standard knowledge base by using cosine similarity matching; In the historical case library, screening the historical cases with the highest dialogue scenario similarity to the customer service dialogue data based on a time-weighted retrieval strategy; Fusing the normative texts and historical cases to generate a dynamic context knowledge graph.
4. The customer service data quality inspection method based on dynamic reasoning according to claim 1, wherein The retrieval-enhanced generation framework retrieves matching domain knowledge from a standard knowledge base in real time to construct a dynamic context knowledge graph, including: Determine the timeliness requirements according to the conversation scenario of the customer service conversation data; Based on the timeliness requirements, perform time decay weighting on the retrieval results retrieved from the standard knowledge base in real time, and preferentially retrieve recently updated domain knowledge to construct a dynamic context knowledge graph.
5. The customer service data quality inspection method based on dynamic reasoning according to claim 1, wherein The method of using the chain of thought prompt template to guide the large model to perform step-by-step logical reasoning on the customer service conversation data and output a preliminary quality inspection conclusion chain including the reasoning path, including: Through the compliance rule chain in the prompt template, layer by layer verify whether the customer service responses in the customer service conversation data comply with industry norms; Based on the similarity of historical cases, evaluate the accuracy score of the customer service responses in the customer service conversation data; Use an emotion analysis model to quantify the emotional polarity of the customer service responses in the customer service conversation data, and compare it with a preset threshold to generate an emotion score; Output the preliminary quality inspection conclusion chain including the reasoning path of compliance verification, knowledge accuracy verification and emotional polarity analysis.
6. The customer service data quality inspection method based on dynamic reasoning according to claim 1, wherein The method further includes: Based on the multi-dimensional scoring results, through a preset business impact factor model, calculate the optimization priority labels for each dimension, and use a strategy mapping algorithm to associate the scoring defects with a preset strategy library to generate an initial optimization strategy matrix; According to the priority labels in the optimization strategy matrix, combined with the real-time conversation scenario features, recall an adapted set of optimization rules from the strategy library, and dynamically adjust the strategy weights through a rule engine to output a scenario-based optimization strategy execution list; Feedback the optimization strategy execution list to the corresponding customer service system.
7. A customer service data quality inspection device based on dynamic reasoning, characterized in that Including: A data parsing module for parsing customer service conversation data based on a pre-configured large model to generate structured conversation data containing intent labels and key question nodes; A graph construction module for, according to the intent labels in the structured conversation data, retrieving matching domain knowledge from a standard knowledge base in real time through a retrieval-enhanced generation framework to construct a dynamic context knowledge graph; A logical reasoning module for using the dynamic context knowledge graph as input and using a chain of thought prompt template to guide the large model to perform step-by-step logical reasoning on the customer service conversation data and output a preliminary quality inspection conclusion chain including the reasoning path; the step-by-step logical reasoning includes compliance verification, knowledge accuracy verification and emotional polarity analysis; A retrieval verification module for performing multi-modal retrieval verification on the assertion nodes in the preliminary quality inspection conclusion chain to generate a traceable final quality inspection conclusion; A quantitative output module for calculating a quantitative score of the customer service conversation data based on the final quality inspection conclusion and generating a visual chain of thought report, where the quantitative score includes a quantitative score for at least one dimension of compliance, accuracy and tone emotion, and the report includes error node annotation, correction path and service optimization suggestions for any one dimension; The multi-modal retrieval verification includes verification of at least one of text, a rule library, a historical case library or manually annotated data. The multi-modal retrieval verification of the assertion nodes in the preliminary quality inspection conclusion chain includes: Based on the assertion nodes in the preliminary quality inspection conclusion chain, extract the assertion content, perform alignment verification with the structured text specifications in the rule library through a semantic matching algorithm, calculate the semantic similarity score. If the semantic similarity score is lower than the preset threshold, mark the assertion node as a potential logical conflict node; According to the context scenario of the assertion node, recall similar dialogue cases from the historical case library, and compare the consistency between the current assertion conclusion and the historical processing result through a time-weighted strategy and scenario similarity. If the consistency meets the condition of significant difference, mark the assertion node as a conflict warning node.
8. A computer device, characterized in that, It includes a memory and a processor. Computer-readable instructions are stored in the memory. When the computer-readable instructions are executed by the processor, the processor executes the steps of the customer service data quality inspection method based on dynamic reasoning according to any one of claims 1 to 6.
9. A storage medium storing computer-readable instructions, characterized in that, When the computer-readable instructions are executed by one or more processors, one or more processors execute the steps of the customer service data quality inspection method based on dynamic reasoning according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for generating reply text and related device
CN118170890A
Knotarization intelligent question and answer customer service method and system based on knowledge graph
CN119938816A