Intelligent quality inspection method, device and equipment and storage medium
By combining the rule filtering layer, the model retrieval layer and the large language model in the quality inspection model, and using the recognition capabilities of the dual-channel roformer model and the large language model, the effect of the rule-based quality inspection method in the existing technology in identifying complex defects is solved. poor problems, achieving higher recognition accuracy and recall.
Patent Information
- Application Number
- CN202411015029.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-22
AI Technical Summary
Existing rule-based quality inspection methods are not effective in identifying text translation errors or synonymous words and sentences, and quality inspection solutions based on dense retrieval rely on a large amount of annotated data and have poor generalization capabilities.
Using intelligent quality inspection methods, we set up a rule filtering layer, a model retrieval layer and a large language model auxiliary identification layer in the preset quality inspection model to perform rule matching, model retrieval and identification, and use the dual-channel roformer model and large language model to improve quality. Check accuracy.
It improves the ability to identify complex defects, reduces the dependence on annotated data, enhances generalization capabilities, and improves the accuracy and recall rate of quality inspection.
Smart Images

Figure CN118821731A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent quality inspection technology, and in particular to intelligent quality inspection methods, devices, equipment and storage media. Background Art
[0002] Among the existing quality inspection methods for text and speech, the main focus is on rule engines and traditional natural language processing (NLP) technology, that is, based on predefined rules and keywords, the system automatically scans and analyzes the text content to find parts that violate the rules or contain specific words, for example, to detect whether prohibited words or service taboos appear in the agent's work data. However, due to the diversity and high scalability of customer expressions and the diversity of language expressions, rule-based machine quality inspection solutions have great deficiencies in identifying complex defects and subtle differences. Rule-based quality inspection methods usually require matching based on rules or keyword / sentence templates, but for some complex defects such as translation errors of ASR texts and subtle differences such as synonyms or similar descriptions, such methods cannot perform exhaustive rule enumeration, and thus are difficult to accurately identify, resulting in poor quality inspection results. In addition, the existing Bi-encoder dense retrieval machine quality inspection solutions often rely on a large amount of labeled data to train and optimize the model, and have poor generalization capabilities.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of this application is to provide an intelligent quality inspection method, device, equipment and storage medium, aiming to solve the technical problems that the rule-based quality inspection method in the prior art is difficult to accurately identify defects when text translation errors or synonyms occur, and the quality inspection scheme based on dense retrieval relies on labeled data and has poor generalization ability.
[0005] To achieve the above objectives, the present application proposes an intelligent quality inspection method, which includes: Inputting the quality inspection data corresponding to the business to be inspected into a preset quality inspection model, wherein the preset quality inspection model is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer; The rule filtering layer performs rule matching on the quality inspection data based on a preset quality inspection rule system to obtain target quality inspection data, where the target quality inspection data is the quality inspection data that does not match the rule; Retrieving the target quality inspection data through the model retrieval layer, and determining the obfuscated quality inspection data according to the retrieval result; The large language model auxiliary recognition layer is used to recognize the obfuscated quality inspection data based on the quality inspection point prompt information to obtain a quality inspection recognition result.
[0006] In one embodiment, the step of performing rule matching on the quality inspection data based on a preset quality inspection rule system through the rule filtering layer to obtain target quality inspection data includes: Determine the quality inspection scope of each quality inspection point in the preset quality inspection rule system through the rule filtering layer; Performing rule matching on the quality inspection data based on the quality inspection scope to determine whether the quality inspection data matches the rule; If not, the quality inspection data that does not match the rule is determined as the target quality inspection data.
[0007] In one embodiment, the step of searching the target quality inspection data through the model retrieval layer and determining the obfuscated quality inspection data according to the retrieval result includes: Encode the target quality inspection data and the candidate texts in the retrieval data set respectively through the dual-channel proformer model in the model retrieval layer to obtain a first high-dimensional dense vector corresponding to the target quality inspection data and a second high-dimensional dense vector corresponding to the candidate text; Determine a first semantic similarity between the first high-dimensional dense vector and the second high-dimensional dense vector to determine a recall score corresponding to the target quality inspection data; An input sequence is obtained by concatenating the target quality inspection data and the recalled candidate texts; Determine the precision ranking score corresponding to the target quality inspection data based on the input sequence by using a proformer model; Determine a final retrieval score according to the recall score and the refined ranking score; Confused quality inspection data is determined from the target quality inspection data based on the final retrieval score.
[0008] In one embodiment, before the step of respectively encoding the target quality inspection data and the candidate texts in the retrieval data set through the dual-channel proformer model in the model retrieval layer to obtain the first high-dimensional dense vector corresponding to the target quality inspection data and the second high-dimensional dense vector corresponding to the candidate text, the step further includes: Determine each quality inspection point in the preset quality inspection rule system as an intent label, and determine the business-side standard speech set as the corresponding intent corpus; A retrieval dataset is constructed based on the intent label and the intent corpus.
[0009] In one embodiment, the step of determining the refined ranking score corresponding to the target quality inspection data based on the input sequence by using the ROFormer model comprises: Inputting the input sequence into the roformer model; Adding a target identifier and a sentence identifier at the start position of the input sequence and between two sentences respectively, so as to determine the output of the target identifier as an overall representation vector; A second semantic similarity between the target quality inspection data and the candidate text is determined based on the attention mechanism and the overall representation vector to determine a refined ranking score corresponding to the target quality inspection data.
[0010] In one embodiment, the step of identifying the obfuscated quality inspection data based on the quality inspection point prompt information through the large language model auxiliary recognition layer to obtain the quality inspection recognition result includes: Acquiring quality inspection point prompt information corresponding to each quality inspection point in the preset quality inspection rule system through the large language model in the large language model auxiliary recognition layer; Based on the quality inspection point prompt information and the role information, the obfuscated quality inspection data is spliced and combined to obtain historical context information; The quality inspection point prompt information is used as the system prompt word of the large language model, and the historical context information is used as the context information of the large language model to identify the obfuscated quality inspection data to obtain a quality inspection recognition result.
[0011] In one embodiment, the step of obtaining the quality inspection point prompt information corresponding to each quality inspection point in the preset quality inspection rule system through the large language model in the large language model auxiliary recognition layer includes: Determine the task interpretation and input and output requirements of each quality inspection point set in the preset quality inspection rule system; The large language model in the large language model auxiliary recognition layer adopts a thought chain method, and based on the task interpretation and the input and output requirements, the task of each quality inspection point is decomposed to obtain the quality inspection point prompt information corresponding to each quality inspection point.
[0012] In addition, to achieve the above objectives, the present application also proposes an intelligent quality inspection device, the device comprising: A data input module, used to input the quality inspection data corresponding to the business to be inspected into a preset quality inspection model, wherein the preset quality inspection model is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer; A data matching module is used to perform rule matching on the quality inspection data based on a preset quality inspection rule system through the rule filtering layer to obtain target quality inspection data, where the target quality inspection data is the quality inspection data that does not match the rules; A data retrieval module, used to retrieve the target quality inspection data through the model retrieval layer, and determine the obfuscated quality inspection data according to the retrieval result; The data recognition module is used to recognize the obfuscated quality inspection data based on the quality inspection point prompt information through the large language model auxiliary recognition layer to obtain a quality inspection recognition result.
[0013] In addition, to achieve the above-mentioned objectives, the present application also proposes an intelligent quality inspection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the intelligent quality inspection method described above.
[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the intelligent quality inspection method described above are implemented.
[0015] The present application provides an intelligent quality inspection method, which discloses inputting quality inspection data corresponding to the business to be quality inspected into a preset quality inspection model, wherein the preset quality inspection model is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer; performing rule matching on the quality inspection data based on a preset quality inspection rule system through the rule filtering layer to obtain target quality inspection data, wherein the target quality inspection data is quality inspection data that does not hit the rule; retrieving the target quality inspection data through the model retrieval layer, and determining the confused quality inspection data according to the retrieval result; identifying the confused quality inspection data based on quality inspection point prompt information through the large language model auxiliary recognition layer to obtain a quality inspection recognition result; since the present invention is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer in the preset quality inspection model, and performing rule matching, model retrieval and recognition on the quality inspection data through these three-layer structures to obtain the final quality inspection recognition result, the technical problem that the rule-based quality inspection method in the prior art is difficult to accurately identify defects when text translation errors or synonymous words and sentences occur, and the quality inspection scheme based on dense retrieval relies on annotated data and has poor generalization ability is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 A flowchart of the first embodiment of the intelligent quality inspection method of this application is provided; Figure 2 This is the overall flow chart of the intelligent quality inspection method for this application; Figure 3 This is a diagram showing the quality inspection rule system built based on actual business scenarios in the intelligent quality inspection method of this application; Figure 4 A flow chart of the second embodiment of the intelligent quality inspection method of this application; Figure 5 This is a structural diagram of a double-layer vector retrieval model in the intelligent quality inspection method of this application; Figure 6 A flowchart of the third embodiment of the intelligent quality inspection method of this application is provided; Figure 7 This is the Prompt structure diagram based on the thinking chain constructed in the intelligent quality inspection method of this application; Figure 8 This is a schematic diagram of the module structure of the intelligent quality inspection device according to an embodiment of the present application; Fig. 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the intelligent quality inspection method in the embodiment of the present application.
[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0020] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0021] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0022] The main solution of the embodiment of the present application is: inputting the quality inspection data corresponding to the business to be quality inspected into a preset quality inspection model, in which a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer are provided; the rule filtering layer performs rule matching on the quality inspection data based on a preset quality inspection rule system to obtain target quality inspection data, wherein the target quality inspection data is the quality inspection data that does not hit the rule; the target quality inspection data is retrieved through the model retrieval layer, and obfuscated quality inspection data is determined according to the retrieval result; the obfuscated quality inspection data is identified through the large language model auxiliary recognition layer based on the quality inspection point prompt information to obtain a quality inspection recognition result.
[0023] Since the existing rule-based quality inspection methods are usually matched based on rules or keyword / sentence templates, they cannot exhaustively enumerate rules for some complex defects such as translation errors of ASR texts and subtle differences such as synonyms or similar descriptions, and thus are difficult to accurately identify, resulting in poor quality inspection results. In addition, the existing Bi-encoder dense retrieval machine quality inspection solutions often rely on a large amount of labeled data to train and optimize the model, and have poor generalization capabilities.
[0024] The present application provides a solution by setting a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer in a preset quality inspection model, and performing rule matching, model retrieval and recognition on the quality inspection data through these three-layer structures to obtain the final quality inspection and recognition results, thereby solving the technical problems that the rule-based quality inspection method in the prior art is difficult to accurately identify defects when text translation errors or synonymous words and sentences occur, and the quality inspection scheme based on dense retrieval relies on annotated data and has poor generalization ability.
[0025] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an intelligent quality inspection device, etc. The following takes the intelligent quality inspection device as an example (hereinafter referred to as the device) to illustrate this embodiment and the following embodiments.
[0026] Based on this, the present application embodiment provides an intelligent quality inspection method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the intelligent quality inspection method of this application.
[0027] In this embodiment, the intelligent quality inspection method includes steps S10 to S40: Step S10: inputting the quality inspection data corresponding to the business to be inspected into a preset quality inspection model, wherein the preset quality inspection model is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer.
[0028] It should be understood that the above-mentioned business to be inspected is any business that needs to be inspected, such as post-loan business and business in customer service scenarios, and this embodiment does not limit this. Correspondingly, the above-mentioned quality inspection data can be the conversation data between the agent and the customer generated in the online conversation scenario of the business to be inspected. In this embodiment, refer to Figure 2 , Figure 2 This is the overall flow chart of the intelligent quality inspection method for this application. Figure 2As shown, the real-time voice stream of the conversation in the post-loan or customer service scenario can be input into the real-time ASR (Automatic Speech Recognition) service to transcribe the real-time ASR text corresponding to the voice, and the real-time ASR text and online text data can be used as quality inspection data.
[0029] It should be noted that the goal of machine quality inspection is to effectively monitor and standardize the operation of manual seats, and the quality inspection entity includes seat operation data in business scenarios such as customer service and post-loan. The quality inspection data in this embodiment includes two data sources: text and voice. The text data can come from the conversation data between the agent and the customer generated in the online conversation scenario; the voice data can come from the real-time voice stream of the hotline service scenario for real-time quality inspection. At the same time, all data will be stored offline for offline batch quality inspection.
[0030] It should be understood that the above-mentioned preset quality inspection model is a model used for quality inspection. Figure 2 As shown, the preset quality inspection model in this embodiment is provided with a three-layer structure of rule filtering layer, model retrieval layer and large language model auxiliary recognition layer, which has the advantage of balancing the automatic real-time quality inspection speed with the accuracy and recall rate of the large model, saving the resource consumption of the large model. Among them, the rule filtering layer can be based on each quality inspection point (such as Figure 2 The rule logic formulated by the large language model (A02_closings, A02_openwords, A02_zanqian_zanhou in the search results) is combined with the dialogue, customer information, call information, etc. to preliminarily determine whether the content of the scene dialogue meets the quality inspection rules; the model retrieval layer performs Roformer retrieval, that is, through a two-layer vector retrieval model, it performs intent corpus retrieval to determine whether the dialogue text belongs to the category of exempted corpus, and controls the range of dialogue text judged by the input large model through the threshold; the large language model auxiliary recognition layer can construct targeted prompts for each quality inspection point, process the dialogue text missed by the retrieval model and the ambiguous dialogue text within the threshold range, and output the final hit results of each quality inspection item.
[0031] Step S20: performing rule matching on the quality inspection data based on a preset quality inspection rule system through the rule filtering layer to obtain target quality inspection data, where the target quality inspection data is the quality inspection data that does not match the rules.
[0032] It should be noted that the above-mentioned preset quality inspection rule system can be a system for defining and clarifying quality inspection categories at various levels, as well as the specification details of multi-level quality inspection points under each quality inspection category. Figure 3 , Figure 3 This is a diagram showing the quality inspection rule system built based on actual business scenarios in the intelligent quality inspection method of this application. Figure 3As shown, this embodiment can build a quality inspection rule system according to actual business scenarios, which are basic capability services, problem-solving capabilities, risk control capabilities, and excellent service capabilities, and break down the capabilities into various quantifiable quality inspection points, which are not listed one by one here. In actual applications, a set of general quality inspection model services with strong generalization capabilities can be built according to the constructed quality inspection rule system to detect various detailed quality inspection points (such as A02_Conclusion).
[0033] It should be noted that the target quality inspection data may be the quality inspection data that does not conform to the quality inspection rules, that is, the quality inspection data that does not meet the quality inspection rules or does not meet the quality inspection rules. Figure 3 Quality inspection data of the quality inspection items in .
[0034] Specifically, the step S20 includes: determining the quality inspection range of each quality inspection point in the preset quality inspection rule system through the rule filtering layer; performing rule matching on the quality inspection data based on the quality inspection range to determine whether the quality inspection data hits the rule; if not, determining the quality inspection data that does not hit the rule as the target quality inspection data.
[0035] In actual applications, the device can filter the quality inspection data according to the quality inspection range of each quality inspection point in the rule filtering layer, and perform rule matching. If the rule is hit, it means that the corresponding quality inspection data is a normal expression; if the rule is not hit, the corresponding quality inspection data can be determined as the target quality inspection data and input into the model retrieval layer for retrieval. In this embodiment, since different quality inspection points are used in different scenarios and detection contents, the required information is also different. In addition to the dialogue text, some quality inspection points also need to be combined with system information for joint judgment. Therefore, this layer is used for shallow filtering and quality inspection data selection, while reducing the resource consumption of subsequent retrieval models and large models.
[0036] Step S30: searching the target quality inspection data through the model retrieval layer, and determining the obfuscated quality inspection data according to the retrieval result.
[0037] It should be noted that the obfuscated quality inspection data may be data with semantic obfuscation in the target quality inspection data. Figure 3As shown, the model retrieval layer can use a two-layer vector retrieval model to retrieve the current quality inspection corpus (i.e., target quality inspection data), wherein the retrieval score and the set threshold interval (including the upper and lower threshold limits) are used to determine whether the relevant quality inspection point intention is hit. If the retrieval model hits the quality inspection point, that is, the score is higher than the highest threshold, it indicates that the current sentence expression has no problem and is a normal expression; if the score is lower than the lower threshold limit, the current quality inspection point is not hit, and the hit rule item and related sentences can be returned at this time; if it is within the threshold interval, it indicates that the retrieval model is confused, and the quality inspection data within the threshold interval is determined as confused quality inspection data, and it is used as the corpus to be inspected in the subsequent large model retrieval layer. Among them, the value setting of the threshold interval comes from the test of model retrieval.
[0038] Step S40: The large language model auxiliary recognition layer is used to recognize the obfuscated quality inspection data based on the quality inspection point prompt information to obtain a quality inspection recognition result.
[0039] It should be understood that the above-mentioned quality inspection recognition result can be the result obtained by identifying the normal expression data and the abnormal expression data in the quality inspection data. In this embodiment, the quality inspection data is sequentially tested for each quality inspection point through the three-layer quality inspection model to determine whether the quality inspection data hits the corresponding quality inspection item, and indexes and records the hit dialogue text position and the hit related words and phrases, etc., to obtain the quality inspection recognition result, which can be assembled into a return message format for the caller to call and obtain.
[0040] In practical applications, since the effect of the model retrieval layer depends on the richness and accuracy of the retrieval data set, and since each person has his or her own unique face, the corpus cannot be exhaustive and the maintenance of the data set requires manpower, this solution can also introduce a large language model (such as Qwen-72B) as the third layer of the retrieval service to assist and cover all quality inspection points, and enhance recall. Among them, by utilizing the powerful semantic understanding and generalization capabilities of LLM (Large Language Model), a dedicated prompt (i.e., the above-mentioned quality inspection point prompt information) is constructed for each quality inspection point, and the threshold interval (0.7, 0.8) of the card retrieval model is used. The data within the interval is judged by the general large language model, and the data outside the threshold interval will not be judged by the large model. The data below the threshold is a hit quality inspection item, and the hit rule item and related sentences can be returned at this time; the data above the threshold is a non-hit quality inspection item, indicating that it is a normal expression.
[0041] The present embodiment provides an intelligent quality inspection method, which discloses inputting quality inspection data corresponding to the business to be quality inspected into a preset quality inspection model, wherein the preset quality inspection model is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer; performing rule matching on the quality inspection data based on a preset quality inspection rule system through the rule filtering layer to obtain target quality inspection data, wherein the target quality inspection data is quality inspection data that does not hit the rule; retrieving the target quality inspection data through the model retrieval layer, and determining the obfuscated quality inspection data according to the retrieval result; identifying the obfuscated quality inspection data based on quality inspection point prompt information through the large language model auxiliary recognition layer to obtain a quality inspection recognition result; since the present embodiment is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer in the preset quality inspection model, and performing rule matching, model retrieval and recognition on the quality inspection data through these three-layer structures to obtain the final quality inspection recognition result, the technical problems that the rule-based quality inspection method in the prior art is difficult to accurately identify defects when text translation errors or synonymous words and sentences occur, and the quality inspection scheme based on dense retrieval relies on annotated data and has poor generalization ability are solved.
[0042] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , Figure 4 A flow chart of the second embodiment of the intelligent quality inspection method of this application.
[0043] In this embodiment, step S30 also includes steps S301 to S306: Step S301: Encode the target quality inspection data and the candidate texts in the retrieval data set respectively through the dual-channel proformer model in the model retrieval layer to obtain a first high-dimensional dense vector corresponding to the target quality inspection data and a second high-dimensional dense vector corresponding to the candidate text.
[0044] It should be understood that the above-mentioned dual-channel ProFormer model can be a ProFormer model with two different mechanisms or paths used when processing text information, wherein the ProFormer model is a pre-trained language model, and the ProFormer model uses a dynamic convolution kernel instead of a conventional fixed-size window, which can be automatically adjusted according to the length of the input sequence, thereby improving the adaptability of the model to sentences of different lengths and reducing the computational burden. The two-layer vector retrieval model in this embodiment may include a vector recall layer and a result fine-ranking layer, wherein the vector recall layer uses a Bi-encoder to perform preliminary recall on the query text and the corpus text; the result fine-ranking layer uses a Cross-encoder to further rearrange the candidate results to obtain the most similar retrieval text. The retrieval scores obtained by combining the two layers are weighted to obtain the final retrieval results, thereby improving the accuracy of the retrieval model.
[0045] It should be noted that the two-layer vector retrieval model in this embodiment can optimize the problem that the existing retrieval technology cannot model fine-grained semantic features well, and adopts a two-layer model structure of vector recall + result refinement to capture the subtle semantic differences between queries and documents and improve the retrieval effect. Among them, the first layer of vector recall uses Bi-encoder to perform preliminary recall of query text and corpus text; the second layer uses Cross-encoder to perform result refinement, combining the query text and the recalled text together, and interactively fusing them through an encoder to generate a joint representation, and perform similarity calculations. The retrieval scores obtained by the two layers are weighted to obtain the final retrieval results. Thereby achieving the accuracy of the retrieval model.
[0046] Furthermore, the step S301 includes: determining each quality inspection point in the preset quality inspection rule system as an intent label, and determining the business-side standard speech set as the corresponding intent corpus; and constructing a retrieval data set based on the intent label and the intent corpus.
[0047] It should be understood that the above-mentioned business side standard speech set can be a data set composed of standard speech when actually conducting business dialogues, for example, standard opening remarks, closing remarks, pre- and post- remarks, invitations for comments, etc., and this embodiment does not limit this. In this embodiment, each quality inspection point can be used as an intent label, and the business side standard speech set can be used as the corresponding intent corpus to construct a retrieval data set (forward), and the pre-trained roformer model can be used as a vector encoder to encode the text to obtain the corresponding dense vector representation. Specifically, the target quality inspection data can be encoded by the roformer model to obtain the first high-dimensional dense vector corresponding to the target quality inspection data, and the candidate text in the retrieval data set can be encoded by the roformer model to obtain the second high-dimensional dense vector corresponding to the candidate text. Among them, the candidate text is the text in the retrieval data set; the high-dimensional dense vector can be a dense vector (Dense Vector) containing a large number of elements or features.
[0048] Step S302: Determine a first semantic similarity between the first high-dimensional dense vector and the second high-dimensional dense vector to determine a recall score corresponding to the target quality inspection data.
[0049] It should be noted that the recall score may be a score used to characterize the similarity between the first high-dimensional dense vector and the second high-dimensional dense vector. Figure 5 , Figure 5 This is a structural diagram of the double-layer vector retrieval model in the intelligent quality inspection method of this application. Figure 5 As shown, the model retrieval layer in this scheme includes two layers of models. The first layer is a vector recall layer. A dual-channel encoder is constructed to encode the target quality inspection data of the current query and the candidate texts from the retrieval data set respectively. The first high-dimensional dense vector and the second high-dimensional dense vector are obtained by modeling the representation of the text in the semantic space. Finally, the semantic similarity is calculated based on the first high-dimensional dense vector and the second high-dimensional dense vector, that is, the above-mentioned first semantic similarity, so as to obtain a wide range of candidate result recall according to the first semantic similarity.
[0050] In practical applications, the current text to be inspected (i.e., the target retrieval text q) can be compared with the text in the corpus D ( ) are input into the dual-channel proformer model for encoding to obtain their respective high-dimensional dense vector representations, and the semantic similarity is calculated to obtain the recall result set H. Among them, the number of candidate results can be controlled by the score threshold and the specified recall number, and the similarity calculation method uses cosine similarity:
[0051]
[0052]
[0053] In the formula, is the first high-dimensional dense vector; is the second highest dimensional dense vector; is the first semantic similarity.
[0054] Step S303: splicing the target quality inspection data and the recalled candidate texts to obtain an input sequence.
[0055] It should be noted that the above-mentioned recalled candidate texts may be candidate texts recalled in the vector recall layer; the above-mentioned input sequence may be a text sequence input to the dual-channel proformer model. Figure 5 As shown in the figure, the current text to be inspected, that is, the target quality inspection data (question) and the text (text) in the recall result set H can be regarded as a pair of elements, and they are connected by a specific separator to form a complete input sequence q, which is then fed into the proformer model so that any two words (tokens) in q and text can obtain their representation vectors through semantic interaction.
[0056] Step S304: Determine the precision ranking score corresponding to the target quality inspection data based on the input sequence through the proformer model.
[0057] It should be noted that the above-mentioned refined ranking score may be a score used to characterize the semantic similarity between the target quality inspection data and the text quality inspection of the retrieval data set.
[0058] Furthermore, the step S304 includes: inputting the input sequence into the proformer model; adding a target identifier and a sentence identifier at the starting position of the input sequence and between two sentences respectively, so as to determine the output of the target identifier as an overall representation vector; determining the second semantic similarity between the target quality inspection data and the candidate text based on the attention mechanism and the overall representation vector, so as to determine the refined ranking score corresponding to the target quality inspection data.
[0059] It should be understood that the target identifier may be an identifier for marking the starting position of the input sequence, such as [CLS]. In practical applications, a special marker (such as Figure 5 The output of this position is used as the overall representation of the pair (i.e., the overall representation vector mentioned above). This whole is learned and interacted through the Attention layer (attention mechanism) in the model, and the final representation is sent to a classification layer to evaluate the similarity between the text to be tested and the candidate text, i.e., the second semantic similarity mentioned above:
[0060]
[0061]
[0062] In the formula, is the second semantic similarity, is the input weight vector, is a scaling factor used to normalize the obtained scores.
[0063] Step S305: Determine a final retrieval score according to the recall score and the refined ranking score.
[0064] It should be noted that the above-mentioned final retrieval score may be a final similarity score obtained by weighted summing the recall score and the refined ranking score. In this embodiment, and The final retrieval score is obtained after weighted summation.
[0065] Step S306: determining obfuscated quality inspection data from the target quality inspection data based on the final retrieval score.
[0066] In this embodiment, if Figure 5 As shown in the figure, the second layer of the two-layer vector retrieval model is the result ranking layer, whose main function is to further rearrange the candidate results to obtain the most similar retrieval text. Specifically, the result ranking layer can rank the candidate structure, use a fusion encoding method to model the current text and the retrieval dataset text, and use the Roformer model to vectorize and fully interactively learn to obtain the overall representation. Finally, this overall representation will be sent to a classification layer to evaluate the semantic similarity between the current text query and the retrieval dataset text. The final similarity score, i.e., the final retrieval score, is obtained by weighted summation based on the recall and ranking scores, so that the final retrieval score can be used to determine whether the quality inspection point is hit. Specifically, the final retrieval score can be sorted, and the candidate sentence with the highest score is judged against the set threshold. If it is higher than the upper threshold limit, it indicates that the current sentence has no problem; if it is lower than the lower threshold limit, it hits the current quality inspection point; if it is within the threshold range, it indicates that the retrieval model is confused, and it will be used as the corpus to be tested in the subsequent large model retrieval layer.
[0067] In this embodiment, a double-layer vector retrieval structure in a model retrieval layer is disclosed, and the target quality inspection data and the candidate texts in the retrieval data set are respectively encoded through the first-layer dual-channel ProFormer model to obtain a first high-dimensional dense vector corresponding to the target quality inspection data and a second high-dimensional dense vector corresponding to the candidate text; a first semantic similarity between the first high-dimensional dense vector and the second high-dimensional dense vector is determined to determine the recall score corresponding to the target quality inspection data; the second layer generates an input sequence based on the target quality inspection data and the candidate text; the ProFormer model is used to determine the fine ranking score corresponding to the target quality inspection data based on the input sequence; the final retrieval score is determined according to the recall score and the fine ranking score; based on the final retrieval score, the confused quality inspection data is determined from the target quality inspection data, so that it can be determined whether the quality inspection data belongs to the inspection-exempt category, and the range of the dialogue text judged by the input large language model is controlled by a threshold, thereby improving the accuracy of the quality inspection.
[0068] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 6 , Figure 6 A flow chart of the third embodiment of the intelligent quality inspection method of this application.
[0069] In this embodiment, step S40 further includes steps S401 to S403: Step S401: obtaining quality inspection point prompt information corresponding to each quality inspection point in the preset quality inspection rule system through the large language model in the large language model auxiliary recognition layer.
[0070] It should be noted that in this solution, the obfuscated quality inspection data is obtained through the upper model retrieval layer recognition, that is, the data within the threshold interval is used as the data to be inspected by the auxiliary recognition layer of the large language model, and the dialogue text is spliced according to the role information, and the continuous speech of the same role is merged, and different historical fragments of the dialogue content are given as prior prompt words (that is, the above-mentioned quality inspection point prompt information) according to different quality inspection points, as the context information of the large language model. Among them, the open source Tongyi Qianwen 72B large language model (Qwen-72b) can be used as the detection model in this embodiment.
[0071] In this embodiment, a method based on thought chain can be constructed to construct the prompt information of the quality inspection point. Since only appropriate and excellent prompts can maximize the ability of LLM, this embodiment can divide each quality inspection point task into multiple thinking steps, improve and optimize the problem-solving logic of LLM, and use the golden examples of positive and negative sample judgment as reference information to enhance the ability of LLM to solve complex problems. For details, please refer to Figure 7 , Figure 7This is the Prompt structure diagram based on the thinking chain constructed in the intelligent quality inspection method of this application.
[0072] Specifically, the step S401 includes: determining the task interpretation and input-output requirements set for each quality inspection point in the preset quality inspection rule system; using a thinking chain method through the large language model in the large language model auxiliary recognition layer, and decomposing the tasks of each quality inspection point based on the task interpretation and the input-output requirements, to obtain the quality inspection point prompt information corresponding to each quality inspection point.
[0073] Step S402: Based on the quality inspection point prompt information and the role information, the obfuscated quality inspection data is spliced and merged to obtain historical context information.
[0074] It should be noted that the above historical context information may be information obtained by splicing the texts of consecutive characters speaking in the current text to be checked, and the historical context information may avoid incorrect sentence segmentation caused by ASR translation.
[0075] Step S403: using the quality inspection point prompt information as the system prompt word of the large language model, and using the historical context information as the context information of the large language model to identify the obfuscated quality inspection data, to obtain a quality inspection recognition result.
[0076] In this embodiment, if Figure 7 As shown, the construction of quality inspection point prompt information can be divided into multiple steps based on the chain of thought. First, different task interpretations and input and output requirements are set according to different quality inspection points, and each quality inspection point task is disassembled in the form of a chain of thought to obtain the quality inspection point prompt information corresponding to each quality inspection point, and use it as the system prompt word of the large language model. Secondly, the dialogue text can be spliced according to the role information and the continuous speech of the same role can be merged, and the relevant historical fragments of the dialogue can be given according to different quality inspection points as the context information of the large language model; finally, the dialogue text of positive examples and various negative examples is given as demonstration reference information.
[0077] It should be noted that this solution introduces a large language model to assist the quality inspection effect of the existing solution. On the one hand, it can reduce the manpower to maintain the retrieval corpus, and on the other hand, it can use the generalization ability and massive prior knowledge of the large model to achieve a certain recognition effect on any quality inspection point without fine-tuning. By combining with a specific prompt design, the accuracy and recall rate of the quality inspection point can be improved. In addition, the reason for not using a large language model to replace the entire quality inspection solution is that the resource overhead of the large language model is large, and some simple quality inspection points and corpora can be detected in the first two layers without occupying the resources of the large model; and some rule logic and intent corpora are domain-specific knowledge, which may be inconsistent with the general knowledge of the large model. If the prompt words are stacked excessively, it may affect the model judgment and the response speed of the entire quality inspection service.
[0078] In the specific implementation, taking the ending as an example, the designed prompt can be: in the process of communication between the voice customer service and the customer, the customer service is required to ask the customer if there are any other questions at the end of the conversation. If the customer replies that there are no more questions, the customer service will say the ending and politely end the call. For the following examples, we will think and test step by step to determine whether the customer service has done this in the following three quotation marks ''' conversation content. The quality inspection result is output in the form of "yes" or "no" and specific reasons. The following are the relevant examples given: Example 1: The agent said: Is there anything else I can help you with? (Sitting 1.1); the customer said: Uh, no (Guest 1.1); the agent said: OK, thank you for your call, I wish you a happy life and goodbye (Sitting 1.2). Quality inspection result: "Yes", first of all, in (Sitting 1.1), the customer clearly asked the customer "Is there anything else I can help you with?" Secondly, after getting the user's reply, the ending was said in (Sitting 1.2). Example 2: The agent said: Do you have any other questions? (Sitting 1.1); the customer said: Well, no, it should be. (Customer 1.1); The agent said: OK, bye. (Sitting 1.2) Quality inspection result: "No", first of all, the agent asked the customer if he had any other questions at (Sitting 1.1), and secondly, he did not say a closing statement after that. Example 3: The agent said: I have found out that there is another outstanding debt that has been paid back for you (Sitting 1.1); The customer said: OK, I will say it has been paid back. (Customer 1.1); The agent said: OK, then I will not bother you for now, thank you for calling and wish you a happy life, thank you! (Sitting 1.2) Quality inspection result: "No", first of all, the agent did not ask the customer if he had any other questions, and secondly, the agent said a closing statement at (Sitting 1.2).
[0079] As shown in the above closing prompt: first, you can tell LLM about the task background and requirements of the closing quality inspection, and then splice the current text to be inspected with continuous character speeches to obtain historical context information to avoid incorrect sentence breaks caused by ASR translation; finally, design possible positive and negative examples and give examples as references, and inform the judgment logic of the quality inspection rules in the form of a thinking chain in the quality inspection results. The first step is to perform a "whether there are other questions to consult" test; the second step is to perform a polite closing judgment. In this embodiment, the judgment is made based on the result output by LLM. If it is "no", the quality inspection point is hit, and if it is "yes", the quality inspection point is not hit.
[0080] In this embodiment, it is disclosed that the quality inspection point prompt information corresponding to each quality inspection point in the preset quality inspection rule system is obtained through the large language model in the large language model auxiliary recognition layer; the confused quality inspection data is spliced and merged based on the quality inspection point prompt information and the role information to obtain the historical context information; the quality inspection point prompt information is used as the system prompt word of the large language model, and the historical context information is used as the context information of the large language model to identify the confused quality inspection data to obtain the quality inspection recognition result, so that the generalization ability and massive prior knowledge of the large language model can be utilized, and a certain recognition effect can be achieved for any quality inspection point without fine-tuning, and by combining the specific prompt word design, the accuracy and recall rate of the quality inspection point can be improved, thereby improving the accuracy of the quality inspection.
[0081] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the intelligent quality inspection method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0082] This application also provides an intelligent quality inspection device, please refer to Figure 8 , the intelligent quality inspection device comprises: The data input module 10 is used to input the quality inspection data corresponding to the business to be inspected into a preset quality inspection model, wherein the preset quality inspection model is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer; The data matching module 20 is used to match the quality inspection data with the rules based on the preset quality inspection rule system through the rule filtering layer to obtain target quality inspection data, where the target quality inspection data is the quality inspection data that does not match the rules; A data retrieval module 30, configured to retrieve the target quality inspection data through the model retrieval layer, and determine the obfuscated quality inspection data according to the retrieval result; The data recognition module 40 is used to recognize the obfuscated quality inspection data based on the quality inspection point prompt information through the large language model auxiliary recognition layer to obtain a quality inspection recognition result.
[0083] The intelligent quality inspection device provided by the present application adopts the intelligent quality inspection method in the above embodiment, which can solve the technical problems that the rule-based quality inspection method in the prior art is difficult to accurately identify defects when text translation errors or synonymous words and sentences occur, and the quality inspection scheme based on dense retrieval relies on annotated data and has poor generalization ability. Compared with the prior art, the beneficial effects of the intelligent quality inspection device provided by the present application are the same as the beneficial effects of the intelligent quality inspection method provided by the above embodiment, and the other technical features in the intelligent quality inspection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0084] The present application provides an intelligent quality inspection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the intelligent quality inspection method in the above-mentioned embodiment one.
[0085] Reference below Fig. 9 , which shows a schematic diagram of the structure of an intelligent quality inspection device suitable for implementing the embodiment of the present application. The intelligent quality inspection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The intelligent quality inspection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0086] like Fig. 9As shown, the intelligent quality inspection device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the intelligent quality inspection device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the intelligent quality inspection device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows an intelligent quality inspection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.
[0087] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0088] The intelligent quality inspection device provided by this application adopts the intelligent quality inspection method in the above embodiment to solve the technical problems of intelligent quality inspection. Compared with the prior art, the beneficial effects of the intelligent quality inspection device provided by this application are the same as the beneficial effects of the intelligent quality inspection method provided by the above embodiment, and the other technical features in the intelligent quality inspection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0089] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0090] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0091] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the intelligent quality inspection method in the above-mentioned embodiment.
[0092] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0093] The above-mentioned computer-readable storage medium may be included in the intelligent quality inspection device; or it may exist independently without being assembled into the intelligent quality inspection device.
[0094] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the intelligent quality inspection device, the intelligent quality inspection device: inputs the quality inspection data corresponding to the to-be-inspected business into a preset quality inspection model, in which a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer are provided; the rule filtering layer performs rule matching on the quality inspection data based on a preset quality inspection rule system to obtain target quality inspection data, and the target quality inspection data is the quality inspection data that does not hit the rule; the target quality inspection data is retrieved through the model retrieval layer, and obfuscated quality inspection data is determined according to the retrieval result; the obfuscated quality inspection data is identified through the large language model auxiliary recognition layer based on the quality inspection point prompt information to obtain a quality inspection recognition result.
[0095] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0096] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0097] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0098] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned intelligent quality inspection method, which can solve the technical problems that the rule-based quality inspection method in the prior art is difficult to accurately identify defects when text translation errors or synonymous words and sentences occur, and the quality inspection scheme based on dense retrieval relies on annotated data and has poor generalization ability. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the intelligent quality inspection method provided by the above-mentioned embodiment, which will not be repeated here.
Claims
1. An intelligent quality inspection method, characterized in that: The method includes: Inputting the quality inspection data corresponding to the business to be inspected into a preset quality inspection model, wherein the preset quality inspection model is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer; The rule filtering layer performs rule matching on the quality inspection data based on a preset quality inspection rule system to obtain target quality inspection data, where the target quality inspection data is the quality inspection data that does not match the rule; Retrieving the target quality inspection data through the model retrieval layer, and determining the obfuscated quality inspection data according to the retrieval result; The large language model auxiliary recognition layer is used to recognize the obfuscated quality inspection data based on the quality inspection point prompt information to obtain a quality inspection recognition result.
2. The method according to claim 1, characterized in that The step of performing rule matching on the quality inspection data based on a preset quality inspection rule system through the rule filtering layer to obtain target quality inspection data includes: Determine the quality inspection scope of each quality inspection point in the preset quality inspection rule system through the rule filtering layer; Performing rule matching on the quality inspection data based on the quality inspection scope to determine whether the quality inspection data matches the rule; If not, the quality inspection data that does not match the rule is determined as the target quality inspection data.
3. The method according to claim 1, characterized in that The step of searching the target quality inspection data through the model retrieval layer and determining the obfuscated quality inspection data according to the retrieval result includes: Encode the target quality inspection data and the candidate texts in the retrieval data set respectively through the dual-channel proformer model in the model retrieval layer to obtain a first high-dimensional dense vector corresponding to the target quality inspection data and a second high-dimensional dense vector corresponding to the candidate text; Determine a first semantic similarity between the first high-dimensional dense vector and the second high-dimensional dense vector to determine a recall score corresponding to the target quality inspection data; An input sequence is obtained by concatenating the target quality inspection data and the recalled candidate texts; Determine the precision ranking score corresponding to the target quality inspection data based on the input sequence by using a proformer model; Determine a final retrieval score according to the recall score and the refined ranking score; Confused quality inspection data is determined from the target quality inspection data based on the final retrieval score.
4. The method according to claim 3, characterized in that Before the step of respectively encoding the target quality inspection data and the candidate texts in the retrieval data set through the dual-channel ProFormer model in the model retrieval layer to obtain the first high-dimensional dense vector corresponding to the target quality inspection data and the second high-dimensional dense vector corresponding to the candidate text, the step further includes: Determine each quality inspection point in the preset quality inspection rule system as an intent label, and determine the business-side standard speech set as the corresponding intent corpus; A retrieval dataset is constructed based on the intent label and the intent corpus.
5. The method according to claim 3, characterized in that The step of determining the refined ranking score corresponding to the target quality inspection data based on the input sequence by using the ROFormer model comprises: Inputting the input sequence into the roformer model; Adding a target identifier and a sentence identifier at the start position of the input sequence and between two sentences respectively, so as to determine the output of the target identifier as an overall representation vector; A second semantic similarity between the target quality inspection data and the candidate text is determined based on the attention mechanism and the overall representation vector to determine a refined ranking score corresponding to the target quality inspection data.
6. The method according to any one of claims 1 to 5, characterized in that The step of identifying the obfuscated quality inspection data based on the quality inspection point prompt information through the large language model auxiliary recognition layer to obtain the quality inspection recognition result includes: Acquiring quality inspection point prompt information corresponding to each quality inspection point in the preset quality inspection rule system through the large language model in the large language model auxiliary recognition layer; Based on the quality inspection point prompt information and the role information, the obfuscated quality inspection data is spliced and combined to obtain historical context information; The quality inspection point prompt information is used as the system prompt word of the large language model, and the historical context information is used as the context information of the large language model to identify the obfuscated quality inspection data to obtain a quality inspection recognition result.
7. The method according to claim 6, characterized in that The step of obtaining the quality inspection point prompt information corresponding to each quality inspection point in the preset quality inspection rule system through the large language model in the large language model auxiliary recognition layer includes: Determine the task interpretation and input and output requirements of each quality inspection point set in the preset quality inspection rule system; The large language model in the large language model auxiliary recognition layer adopts a thought chain method, and based on the task interpretation and the input and output requirements, the task of each quality inspection point is decomposed to obtain the quality inspection point prompt information corresponding to each quality inspection point.
8. An intelligent quality inspection device, characterized in that: The device comprises: A data input module, used to input the quality inspection data corresponding to the business to be inspected into a preset quality inspection model, wherein the preset quality inspection model is provided with a rule filtering layer, a model retrieval layer and a large language model auxiliary recognition layer; A data matching module is used to perform rule matching on the quality inspection data based on a preset quality inspection rule system through the rule filtering layer to obtain target quality inspection data, where the target quality inspection data is the quality inspection data that does not match the rules; A data retrieval module, used to retrieve the target quality inspection data through the model retrieval layer, and determine the obfuscated quality inspection data according to the retrieval result; The data recognition module is used to recognize the obfuscated quality inspection data based on the quality inspection point prompt information through the large language model auxiliary recognition layer to obtain a quality inspection recognition result.
9. An intelligent quality inspection device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the intelligent quality inspection method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the intelligent quality inspection method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Dynamic context window customer service quality inspection method and system based on large model
CN120746584A
Large model-based dynamic context window customer service quality inspection method and system
CN120746584B
Text detection method and system based on artificial intelligence
CN121303130A
