Large language model intelligent question and answer work order processing method and device based on optimized knowledge base

By optimizing the combination of knowledge base and large language model, we solve the problems of low problem-solving efficiency and low question-answer accuracy in the work order system, achieve more efficient and accurate user problem processing, and reduce the burden on support personnel.

CN118535702APending Publication Date: 2024-08-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 13 Cited by

Patent Information

Application Number
CN202410701481.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, the work order system cannot solve the user's problem immediately, and the accuracy of the large language model question and answer is not high, resulting in the user having to wait for the system to transfer or need a second answer.

Method used

By building and optimizing the knowledge base, natural language processing technology is used for sentence processing, keyword extraction, error correction and reference resolution to improve the quality of the knowledge base. When users ask questions, the optimized knowledge base is queried to provide the first answer or create a new one. If the work order is not resolved, it will be transferred to manual processing.

Benefits of technology

It improves the accuracy and processing efficiency of work order responses, reduces the secondary involvement of human support, improves the accuracy of Q&A and user experience, and reduces the burden on support staff.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535702A
    Figure CN118535702A
Patent Text Reader

Abstract

The invention provides a big language model intelligent question and answer work order processing method and device based on an optimized knowledge base, and relates to the technical field of computer data processing. Optimizing the knowledge base; collecting user question data, if a knowledge base query is triggered, querying a plurality of answers corresponding to the user question data by using the knowledge base according to the indexing information and the question and answer information, and screening out a first answer from the plurality of answers; if the first answer is not confirmed by the questioning party, a new work order is established; if the first answer is confirmed by the questioning party, recording question and answer information of this time; if the knowledge base query is not triggered, establishing a new work order; triggering a big language model to ask questions according to the new work order, calling a big language model knowledge retrieval interface to analyze user question data, determining question categories and question contents, performing content retrieval according to the question categories and the question contents, and feeding back retrieval results to a questioning party; the whole scheme can improve the question solving efficiency and improve the question and answer accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer data processing, and in particular to a method and device for processing intelligent question-answering work orders using a large language model based on an optimized knowledge base. Background Art

[0002] In the existing technology, the distributed work order system can support users to generate work orders by sending emails or creating new ones in the system. The work orders are transferred to different handlers according to departments and platforms, which can better track problems and ultimately solve them until the person who raised the problem closes the work order.

[0003] Reference for the work order flow process Fig. 9 As shown, specifically: proposer--->department post--->base post--->second-line post--->audit post---> proposer. The response time for a work order is 48 hours, and it is urged and tracked through email reminders and weekly operation reports.

[0004] Due to the limited manpower of technical platform support personnel, and the need for work orders to be circulated layer by layer. The current work order system has the following two shortcomings: 1. It cannot solve user problems or needs in the first place, and sometimes it is impossible to contact the person in charge in time. Continuous questions need to wait for the system to continue to flow, and the problem cannot be solved on the side of the person who asked the question. 2. At present, the large language model question and answer has problems such as low accuracy and unclear semantics. Many questions raised by various applications are the same or similar. The work orders answered by the traditional large language model require secondary answers from technical support personnel.

[0005] In summary, there is an urgent need for a technical solution that can overcome the above-mentioned defects, improve the efficiency of processing questions or needs, and improve the accuracy of questions and answers. Summary of the invention

[0006] In order to solve the problems existing in the prior art, the present invention proposes a method and device for intelligent question-answering work order processing based on a large language model optimized knowledge base. The present invention improves the accuracy of work order replies by preprocessing the knowledge base, effectively reduces the secondary participation of human support, and improves the processing efficiency and accuracy of question-answering.

[0007] In a first aspect of an embodiment of the present invention, a method for processing a large language model intelligent question-answering work order based on an optimized knowledge base is proposed, comprising:

[0008] Building a knowledge base, the knowledge base including indexing information and question-answering information;

[0009] Optimizing the knowledge base, wherein natural language processing technology is used to process sentences in the knowledge base, keywords are extracted and sentences are compressed for sentences whose length is greater than a preset length threshold and whose semantics belong to a preset semantic range, and error correction and reference resolution are performed on the knowledge base sentences to obtain an optimized knowledge base;

[0010] Collect user question data, and ask whether to trigger a knowledge base query based on the user question data;

[0011] If a knowledge base query is triggered, the optimized knowledge base is used to query multiple answers corresponding to the user question data according to the indexing information and the question and answer information, and the first answer is selected from the multiple answers, and the first answer is fed back to the questioner; if the first answer is not confirmed by the questioner, a new work order is created; if the first answer is confirmed by the questioner, the question and answer information is recorded;

[0012] If the knowledge base query is not triggered, create a new work order;

[0013] Trigger the large language model to ask questions based on the newly created work order, call the large language model knowledge retrieval interface to analyze the user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner; if the questioner determines that the retrieval results do not solve the question, the question and answer process will be manually performed.

[0014] In a second aspect of an embodiment of the present invention, a large language model intelligent question-answering work order processing device based on an optimized knowledge base is proposed, comprising:

[0015] A construction module, used to construct a knowledge base, wherein the knowledge base includes indexing information and question-answering information;

[0016] An optimization module is used to optimize the knowledge base, wherein the sentences in the knowledge base are processed using natural language processing technology, keywords are extracted and sentences are compressed for sentences whose length is greater than a preset length threshold and whose semantics belong to a preset semantic range, and error correction and reference resolution are performed on the knowledge base sentences to obtain an optimized knowledge base;

[0017] A question collection module is used to collect user question data and, based on the user question data, ask whether to trigger a knowledge base query;

[0018] The knowledge base query module is used to, if a knowledge base query is triggered, use the optimized knowledge base to query multiple answers corresponding to the user question data according to the indexing information and the question and answer information, and select a first answer from the multiple answers, and feed back the first answer to the questioner; if the first answer is not confirmed by the questioner, create a new work order; if the first answer is confirmed by the questioner, record the question and answer information; if the knowledge base query is not triggered, create a new work order;

[0019] The large language model questioning module is used to trigger large language model questions based on newly created work orders, call the large language model knowledge retrieval interface to analyze user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner; if the questioner determines that the retrieval results do not solve the question, the question will be manually answered.

[0020] In a third aspect of an embodiment of the present invention, a computer device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for processing intelligent question and answer work orders using a large language model based on an optimized knowledge base is implemented.

[0021] In a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is proposed, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a method for processing a large language model intelligent question and answer work order based on an optimized knowledge base is implemented.

[0022] In a fifth aspect of an embodiment of the present invention, a computer program product is proposed, which includes a computer program, and when the computer program is executed by a processor, a large language model intelligent question and answer work order processing method based on an optimized knowledge base is implemented.

[0023] The large language model intelligent question-and-answer work order processing method and device based on the optimized knowledge base proposed in the present invention constructs a knowledge base, optimizes the knowledge base, collects user question data, and inquires whether to trigger a knowledge base query based on the user question data; if the knowledge base query is triggered, the optimized knowledge base is used to query multiple answers corresponding to the user question data according to the indexing information and question-and-answer information, and a first answer is screened out from the multiple answers, and the first answer is fed back to the questioner; if the first answer is not confirmed by the questioner, a new work order is created; if the first answer is confirmed by the questioner, the question and answer information is recorded; if the knowledge base query is not triggered, a new work order is created; and a large work order is triggered according to the newly created work order. Language model questions call the large language model knowledge retrieval interface to analyze user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner; if the questioner determines that the retrieval result does not solve the question, manual question and answer processing will be performed. The overall solution uses the knowledge base to query answers before creating a new work order, which is convenient for users to solve problems by themselves, improves problem solving efficiency, reduces the number of work orders to a certain extent, and reduces the support burden of support personnel; the present invention optimizes the knowledge base to improve the accuracy of large language model question and answer, and records inaccurate answers to facilitate subsequent improvements and optimizations, providing strong technical support for large language model question and answer scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 It is a flowchart of a method for processing intelligent question and answer work orders based on a large language model and an optimized knowledge base according to an embodiment of the present invention.

[0026] Figure 2 It is a flowchart of question and answer processing according to a specific embodiment of the present invention.

[0027] Figure 3 It is a flowchart of forwarding manual review according to an embodiment of the present invention.

[0028] Figure 4 It is a schematic diagram of a process of correcting question and answer information according to an embodiment of the present invention.

[0029] Figure 5 It is a schematic diagram of a process of optimizing a knowledge base according to an embodiment of the present invention.

[0030] Figure 6It is a schematic diagram of the architecture of a large language model intelligent question and answer work order processing device based on an optimized knowledge base according to an embodiment of the present invention.

[0031] Figure 7 It is a schematic diagram of the architecture of a large language model intelligent question and answer work order processing device based on an optimized knowledge base in another embodiment of the present invention.

[0032] Figure 8 It is a schematic diagram of the structure of a computer device according to an embodiment of the present invention.

[0033] Fig. 9 It is a schematic diagram of work order flow processing in the prior art. DETAILED DESCRIPTION

[0034] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0035] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0036] According to an embodiment of the present invention, a method and device for processing intelligent question and answer work orders with a large language model based on an optimized knowledge base are proposed, which relate to the field of computer data processing technology.

[0037] In the embodiments of the present invention, the terms that need to be explained are:

[0038] Large Language Model: refers to a machine learning model with a large parameter scale and complexity. The design and training of large language models are intended to provide more powerful and accurate model performance, learn more subtle patterns and regularities, and have stronger generalization and expression capabilities. Based on the pre-trained model, minor adjustments for specific tasks can make the model better adapt to new tasks and data.

[0039] Distributed work order system: A technical question and answer system built for multiple technical platforms of distributed technology. Users can ask questions by creating new work orders in the system, and the work orders are transferred to technical personnel on different platforms and positions to circulate or reply to the work orders for technical support.

[0040] Knowledge base: A database that organizes, summarizes and stores a large number of question and answer pairs, which can be used for user knowledge search.

[0041] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.

[0042] Figure 1 This is a flow chart of a method for processing a large language model intelligent question-answering work order based on an optimized knowledge base according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0043] S101, constructing a knowledge base, wherein the knowledge base includes indexing information and question-answer information;

[0044] S102, optimizing the knowledge base, wherein the sentences in the knowledge base are processed using natural language processing technology, keywords are extracted and sentences are compressed for sentences whose length is greater than a preset length threshold and whose semantics belong to a preset semantic range, and error correction and reference resolution are performed on the knowledge base sentences to obtain an optimized knowledge base;

[0045] S103, collecting user question data, and inquiring whether to trigger a knowledge base query based on the user question data;

[0046] If a knowledge base query is triggered, the optimized knowledge base is used to query multiple answers corresponding to the user question data according to the indexing information and the question and answer information, and the first answer is selected from the multiple answers, and the first answer is fed back to the questioner; if the first answer is not confirmed by the questioner, a new work order is created; if the first answer is confirmed by the questioner, the question and answer information is recorded;

[0047] If the knowledge base query is not triggered, create a new work order;

[0048] S104, triggering a large language model question based on the newly created work order, calling the large language model knowledge retrieval interface to analyze the user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner; if the questioner determines that the retrieval results do not solve the question, the question and answer processing will be done manually.

[0049] In order to explain more clearly the above-mentioned large language model intelligent question and answer work order processing method based on optimized knowledge base, a detailed description is given below in conjunction with a specific embodiment.

[0050] For S101, a knowledge base is constructed, and the knowledge base includes indexing information and question-answering information.

[0051] For S102, the knowledge base is optimized, wherein the sentences in the knowledge base are processed using natural language processing technology, keywords are extracted and sentences are compressed for sentences whose length is greater than a preset length threshold and whose semantics belong to a preset semantic range, and error correction and reference resolution are performed on the knowledge base sentences to obtain an optimized knowledge base.

[0052] When optimizing the knowledge base, natural language processing technology can be used to optimize sentences, correct text errors, resolve references, and improve the quality of knowledge base sentences.

[0053] Specific optimization methods include:

[0054] Using syntactic analysis in natural language processing technology to construct a grammatical tree of the sentence, wherein the grammatical tree is used to represent the relationship between each component in the sentence;

[0055] For sentences whose length is greater than a preset length threshold and whose semantics fall within a preset semantic range, keywords are extracted according to word frequency, word meaning, and professional terminology database, and the sentences are compressed according to the keywords;

[0056] Using predefined dictionaries, match the text in the knowledge base with the dictionary and identify words that do not meet the dictionary criteria;

[0057] Using a text error correction model to identify text errors and propose correction methods; wherein the text error correction model is built based on the Transformer model, a machine learning model obtained by training with text data;

[0058] The pronouns and demonstrative words in the text are transformed, and the optimized knowledge base is obtained through the above optimization process.

[0059] 1. Processing of long and difficult sentences:

[0060] There are many long and specialized sentences in the knowledge base. Directly parsing this type of sentence will cause distortion of the response of the large language model. Sentence compression is performed through syntax tree analysis + key dictionary method to ensure the original meaning of the sentence.

[0061] Long and difficult sentence processing is a key step in knowledge base preprocessing, and its purpose is to optimize the complex, lengthy sentences in the knowledge base that may contain professional terms. The purpose of processing long and difficult sentences is to ensure that the large language model can provide accurate, clear and easy-to-understand responses when answering questions.

[0062] The specific processing method is: use syntactic analysis in natural language processing technology to construct a grammatical tree of the sentence. The grammatical tree can show the relationship between the various components in the sentence, such as subject, predicate, object, etc., as well as the modification relationship between them. Extract keywords from long and difficult sentences. These keywords usually contain important information and are crucial to understanding the meaning of the sentence. Keyword extraction can be based on a variety of methods such as word frequency, word meaning, and professional terminology library. On the basis of retaining the original meaning of the keywords and sentences, compress the sentences; this may include removing redundant modifying components, merging similar expressions, simplifying complex structures, etc. While compressing the sentences, it is necessary to ensure that the core meaning of the sentences is not changed. This usually requires a deep understanding of the semantics of the sentences to ensure that the compressed sentences can still convey the original information.

[0063] Integrate the context. If the long and difficult sentence is part of a conversation or document, you also need to consider its context to ensure that the compressed sentence can be smoothly connected with the surrounding text to maintain overall coherence and consistency.

[0064] By processing long and difficult sentences, complex sentence structures can be simplified while retaining their core information and meaning, allowing large language models to process and respond to user questions more effectively, which is crucial to improving the accuracy of intelligent question-answering and user experience.

[0065] 2. Word and sentence error correction:

[0066] The content in the knowledge base is corrected based on dictionaries and rules. Typos are inevitable in professional materials uploaded by the application. Through Transformer's general error correction model, keywords are matched with dictionaries to eliminate this phenomenon.

[0067] Word and sentence error correction is a key step in knowledge base preprocessing. Its purpose is to correct text errors that may exist in the knowledge base, including typos, grammatical errors, etc., to ensure the accuracy and reliability of the knowledge base content.

[0068] The specific processing methods are as follows: Dictionary matching, using a predefined dictionary that contains correct words and phrases; by matching the text in the knowledge base with the dictionary, words that do not meet the dictionary standards can be identified. According to the grammatical rules of the language, a set of error correction rules are designed; these rules can be simple, such as checking whether the spelling of a word is correct, or complex, such as checking whether the grammatical structure of a sentence is reasonable. For context analysis, contextual information needs to be considered during the error correction process; some words may be correct in a specific context, but may be incorrect in other contexts; context analysis helps to improve the accuracy of error correction.

[0069] Machine learning models can be used for word and sentence error correction to improve the accuracy and rationality of error correction. Transformer-based machine learning models identify and correct errors. By training large amounts of text data, they can learn language patterns and rules, thereby effectively identifying errors and making correction suggestions.

[0070] The Transformer model is a deep learning model used to process sequence data, especially in the field of natural language processing (NLP). The core of the Transformer model is the self-attention mechanism, which allows the model to consider all other elements in the sequence when processing each element of the sequence, thereby capturing the dependencies within the sequence. Compared with the recurrent neural network (RNN), the Transformer model can process all elements in the sequence in parallel, which greatly improves the training efficiency of the model. Adopting an encoder-decoder architecture: The Transformer model usually consists of an encoder and a decoder, where the encoder is used to understand the input sequence and the decoder is used to generate the output sequence. The Transformer model uses a multi-head attention mechanism, which can perform multiple attention operations in parallel, each operation learning different aspects of the sequence. Since the Transformer model is acyclic, it uses positional encoding to provide the position information of the words in the sequence. Layer normalization and residual connection: The Transformer model uses layer normalization and residual connection in each sublayer, which helps to avoid the gradient vanishing problem in deep network training.

[0071] The working principle of Transformer is to convert the input sequence (such as text) into a series of word embeddings and add position encoding. The encoder consists of multiple identical layers (usually 6 layers), each of which contains two main sublayers: multi-head self-attention mechanism and feedforward neural network. The self-attention layer allows the model to consider all positions in the sequence in the output of each position. The feedforward neural network performs further nonlinear transformation on the output of the self-attention layer.

[0072] The decoder is also composed of multiple identical layers, each containing three sublayers: masked multi-head self-attention, encoder-decoder attention, and feed-forward neural network. Masked self-attention ensures that positions can only pay attention to previous outputs, not future outputs, which is very important in sequence generation tasks. The encoder-decoder attention layer allows the decoder layer to access the encoder output. The output of the last layer of the decoder is converted to the final sequence, which can be, for example, the target language sequence in a translation task.

[0073] In actual scenarios, automatic error correction may not be able to determine the best correction solution. In this case, an interactive correction option can be provided to allow knowledge base maintainers or users to participate in the correction process to ensure the accuracy and rationality of the final correction. At the same time, continuous optimization of words and sentences is carried out; for example, as time goes by, the use and expression of language will change, and the word and sentence error correction processing system needs to be continuously updated and optimized to adapt to language changes and new expressions.

[0074] Word and sentence error correction can significantly improve the quality of the knowledge base and reduce misunderstandings or confusions caused by text errors, thereby improving the performance of the intelligent question-answering system and user satisfaction.

[0075] 3. Reference resolution:

[0076] Co-reference resolution is a technology in natural language processing. Co-reference resolution not only answers single questions, but also uses the Entity-Mention model to cluster according to the conversation context. Mentions in the same class are resolved into the same entity, referring to or omitting context information, enabling continuous interaction with users and forming a complete question-answering system.

[0077] The Entity-Mention model is an entity recognition and mention recognition model that involves recognizing entities mentioned in text (Entity Recognition) and specific occurrences of these entities in the text (Mention Recognition).

[0078] Entity Recognition:

[0079] Definition: Entity recognition is the process of identifying words or phrases in text that have a specific meaning, which usually refers to a real-world object, place, person, organization, or concept.

[0080] Type: Entities are usually divided into different categories, such as person name (PER), place name (LOC), organization name (ORG), etc.

[0081] Technology: Entity recognition can be achieved through rule-based methods, machine learning, or deep learning methods, among which deep learning methods, such as using BiLSTM-CRF (Bidirectional Long Short-Term Memory Network with Conditional Random Field) or Transformer architecture, have been shown to be very effective.

[0082] Mention Recognition:

[0083] Definition: Mention identification refers to identifying mentions or referential expressions pointing to a specific entity in a text.

[0084] Purpose: This helps understand referential relationships in text, for example, identifying the specific entities to which pronouns and demonstratives such as "he," "she," "it," or "this place" refer.

[0085] Technology: Mention identification usually involves more complex NLP techniques such as dependency parsing, coreference resolution, and context analysis.

[0086] The Entity-Mention model automatically extracts structured information from text, such as people, places, events, etc., through information extraction. It builds a knowledge graph, identifies entities and mentions in text, and builds a knowledge graph to convert unstructured data into structured knowledge. It helps machines understand text content more deeply, especially when dealing with complex narratives or dialogues. In question-answering systems, the Entity-Mention model can help the system understand entities and mentions in questions, thereby providing more accurate answers.

[0087] Co-reference resolution is used to determine the specific object or entity referred to by a pronoun or demonstrative in a text. In intelligent question-answering systems, co-reference resolution is crucial for understanding user questions and providing accurate answers.

[0088] Specifically, pronouns and demonstratives may lead to semantic deviations. For example, the pronouns "he", "she", "it", "they", etc. need to determine which person or thing they refer to in the text; demonstratives "this", "that", "here", "there", etc. also need to determine the specific objects they point to. Therefore, it is necessary to identify and optimize the pronouns and demonstratives in the sentence through reference elimination.

[0089] The specific method is as follows: Identify the text and identify all the named entities (NEs) and pronouns in the text. Create a co-reference chain to link the pronouns and noun phrases in the text to indicate the referential relationship between them. Context analysis: Analyze the context of the pronoun, including the preceding and following text, to determine the most appropriate referent. Extract features related to reference resolution, such as the gender of the pronoun, singular or plural, and noun phrases in the context.

[0090] In the process of reference elimination, a machine learning model can be used to train the model based on the extracted features and co-reference chains to obtain a reference elimination model. Reference elimination is performed through the reference elimination model. In the question-answering system, when a user asks a question, the system will perform reference elimination to understand the specific object referred to by the pronoun or demonstrative in the question. The results of reference elimination are integrated into the question-answering process to ensure that the answers provided are closely related to the user's questions.

[0091] Co-reference resolution is important in question-answering, text understanding, and information retrieval. For example, it can help question-answering systems understand pronouns in user questions and provide more accurate answers. It can improve the overall understanding of text by machines, especially when dealing with complex narratives or dialogues. It can improve search engines and recommendation systems so that they can better understand the user's query intent. Co-reference resolution can interact with users more naturally and provide more humane and accurate services.

[0092] In one embodiment, for S103, user question data is collected, and according to the user question data, whether to trigger a knowledge base query is inquired;

[0093] If a knowledge base query is triggered, the optimized knowledge base is used to query multiple answers corresponding to the user question data according to the indexing information and the question and answer information, and the first answer is selected from the multiple answers, and the first answer is fed back to the questioner; if the first answer is not confirmed by the questioner, a new work order is created; if the first answer is confirmed by the questioner, the question and answer information is recorded;

[0094] If the knowledge base query is not triggered, create a new work order.

[0095] Specifically, according to the optimized knowledge base, multiple nearest neighbor answers are searched from the established semantic vector index; wherein, a tree-like data structure is established, each vector in the vector space corresponding to the semantic vector index is mapped to a binary tree, and after splitting, the child nodes under the same parent node have characteristics whose similarity reaches a preset similarity threshold; according to the semantic vector corresponding to the user's question data, multiple vectors with the highest similarity are searched in the tree-like data structure corresponding to the optimized knowledge base;

[0096] The answers corresponding to multiple vectors are deduplicated and sorted, and the answer with the highest similarity ranking is selected as the first answer and sent to the questioner.

[0097] In one embodiment, after preprocessing the knowledge base, it is necessary to search for the nearest N answers from the established semantic vector index. Specifically, the Annoy retrieval algorithm can be used to search for answers. By establishing a tree-like data structure, it maps each vector in the vector space to a binary tree. After splitting, the child nodes under the same parent node have similar features, and the N vectors most similar to the given vector can be quickly found. The present invention uses multiple trees to establish the same batch of data, merge and sort after retrieving the answers, and select the one with the highest similarity as the result set.

[0098] Annoy is a library for fast approximate nearest neighbor search. It is particularly suitable for vector similarity search in high-dimensional space, such as in large-scale text or image datasets. Annoy uses a tree structure to organize data points, and each node is a node of a binary tree, which divides the data space into two parts. By selecting a vector in the dataset as a node, and dividing other vectors into two parts based on this vector, one part is smaller than the vector and the other part is larger than it. When searching, Annoy quickly narrows the search range through the tree structure to find the vector most similar to the query vector, but this search is approximate, not exact. Annoy is scalable and can handle very large datasets, and its search speed is generally independent of the size of the dataset. The algorithm is very efficient in memory usage and does not require additional memory to store the tree structure.

[0099] In one embodiment, the specific processing mechanism of Annoy is: by randomly selecting a data point as the root node of the tree, and then recursively selecting other nodes until all data points are included in the tree. Each node divides the space into two parts according to its data points, and the vectors of all child nodes are either in the "left" part or in the "right" part of the parent node. When searching, starting from the root node, according to the comparison result between the query vector and the current node vector, choose to search the left or right subtree. During the search process, Annoy maintains a candidate set containing the most similar vectors found so far. As the search progresses, the candidate set is continuously updated. The search can set a maximum search depth or the size of the candidate set, and the search terminates when these conditions are met.

[0100] In intelligent question-answering scenarios, the Annoy algorithm can be used to quickly retrieve the information most relevant to the user's question from the knowledge base, thereby improving the response speed and accuracy of the question-answering system. By establishing a semantic vector index, Annoy can quickly find the answer that best matches the user's question, which is crucial to improving user experience and system efficiency.

[0101] After obtaining multiple results through index retrieval, you can sort the questions and answers and select the best one or more answers to send to the user. For example, you can use the DRMM+PACRR algorithm to deduplicate multiple results. After convolution, it will perform two layers of pooling, and then splice the two layers through the fully connected layer. Use the same MLP network to independently calculate the score of each matrix, and finally calculate the score through a linear layer.

[0102] The following is an overview of the DRMM+PACRR algorithm: DRMM (Deep Relevance Matching Model) is a deep learning model used to calculate the relevance score between questions and candidate answers. PACRR (Pairwise Answer comparison with convolutional neural networks and recurrent neural networks) is a model for pairwise comparison of answers, using convolutional neural networks (CNN) and recurrent neural networks (RNN) to evaluate the relative quality between answer pairs. The processing process is: Question representation, converting the user's question into a vector representation, which is usually achieved through word embeddings and sentence encoders (such as BERT). Candidate answer representation, each retrieved candidate answer is also converted into a vector representation. The DRMM model is used to calculate the relevance score between the question vector and each candidate answer vector.

[0103] PACRR pairwise comparison:

[0104] Convolutional layer: Use CNN to extract local features between question and answer pairs.

[0105] Recurrent Layer: Use RNN to capture the sequence information and long-distance dependencies between questions and answers.

[0106] Pairwise comparison: By comparing the features between the question and two candidate answers, their relative relevance to the question is assessed.

[0107] Before sorting, the retrieved answers are deduplicated to avoid multiple appearances of the same or very similar answers. The relevance score from DRMM and the pairwise comparison results from PACRR are combined to calculate a comprehensive score for each candidate answer. All candidate answers are sorted according to the comprehensive score, with the highest-scoring answer at the top. The top answer in the sorted list is selected as the response to the user's query.

[0108] Specifically, the overall process of knowledge base optimization and answer calculation is as follows: first pre-process the knowledge base, analyze the long and difficult sentences in the knowledge base, correct the wrong words and sentences, and eliminate references in context; then use the Annoy knowledge base retrieval algorithm to obtain the result set of answers; finally, the result set is calculated by the question-answer ranking algorithm to obtain the best answer, further improving the accuracy of knowledge base retrieval.

[0109] In one embodiment, for S104, a large language model question is triggered based on a newly created work order, and the large language model knowledge retrieval interface is called to analyze the user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner; if the questioner determines that the retrieval results do not solve the question, manual question and answer processing is performed.

[0110] Specifically, refer to Figure 2 , is a schematic diagram of a question-answering process flow of a specific embodiment of the present invention. Figure 2 As shown, the specific process also includes:

[0111] S201, if the search result is confirmed by the questioner, the question and answer information is recorded;

[0112] S202, if the answer is not confirmed by the questioner, asking the questioner whether to call the large language model knowledge retrieval interface again;

[0113] S203: If yes, call the large language model knowledge retrieval interface again to query the retrieval result corresponding to the work order, and feed back the retrieval result to the questioner;

[0114] S204: If not, forward the work order to manual processing.

[0115] In actual application scenarios, if the questioner is not satisfied with the search results, he or she can initiate a query search again, or forward it to manual processing, and the question-and-answer system will push it to relevant technical personnel for answering the question.

[0116] In one embodiment, reference Figure 3 , (S103) after triggering the knowledge base query and obtaining the first answer, before feeding back the first answer to the questioner, or (S104) after calling the large language model knowledge retrieval interface to obtain the retrieval result, before feeding back the retrieval result to the questioner, further comprising:

[0117] S301, forwarding the first answer to a manual processing interface for manual review;

[0118] S302, forwarding the search results to the manual processing interface for manual review;

[0119] S303, obtaining a modified answer based on the manual review result, and sending the modified answer to the questioner.

[0120] Before feeding back answers or search results, manual review can be added to revise the answers to improve the rationality and accuracy of the answers; the specific answers or search results selected for manual review can be randomly selected or screened according to percentage.

[0121] The present invention sends the first answer automatically generated by the question-answering system and the search results to a manual processing interface. The manual processing interface is a system part that allows manual intervention and review, and is usually operated by technical experts. The purpose of this step is to ensure that the automatically generated answers are accurate and appropriate before they are sent to users.

[0122] After manual review, if it is found that the automatically generated answer needs to be improved or corrected, the manual reviewer will make the necessary changes. The revised answer will be reorganized and sent back to the questioner. This process ensures that the answer the user receives is not only based on machine intelligence, but also incorporates human judgment and expertise, thereby improving the quality of the answer and user satisfaction.

[0123] By improving accuracy through the above manual work, manual review can correct possible errors or inaccuracies in automatically generated answers, while enhancing the user experience. Through manual intervention, more personalized and humanized services can be provided. Feedback from manual review can be used to train and optimize the question-answering system, making it smarter over time. In actual application scenarios, manual review can also serve as an important risk management method when dealing with complex or sensitive issues, improve the security of knowledge base data, and prevent unsafe data (such as illegal answers, dirty data, etc.) from entering the knowledge base.

[0124] In one embodiment, reference Figure 4 After recording the question and answer information (S103 or S104), the method further includes:

[0125] S401, forwarding the question and answer information to a manual reviewer, who modifies and edits the question and answer information to obtain a revised question and answer information;

[0126] S402, determining corresponding indexing information according to the corrected question and answer information, and storing the indexing information and the question and answer information in a knowledge base.

[0127] Question and answer information can be added to the knowledge base as sample data for subsequent questions and answers; however, although these question and answer information have been approved by the questioner, the format and content may be non-standard and inaccurate. Therefore, the answers to this question and answer need to be further corrected manually and stored in the knowledge base after correction.

[0128] The question-and-answer information generated by the question-and-answer system (including user questions and system answers) is sent to human reviewers. Human reviewers usually have professional knowledge and judgment, and can evaluate and modify the accuracy, completeness and appropriateness of the question-and-answer content; manual review can ensure the quality of the question-and-answer information in the knowledge base, correct possible errors or inaccuracies in the automatically generated questions and answers, and improve the question-and-answer content to make it more in line with user needs and expectations.

[0129] After manually reviewing and modifying the question and answer information, the indexing information can be determined based on the revised question and answer information. Indexing information is a keyword or phrase used for knowledge base indexing, which helps the system quickly locate and retrieve relevant information in future questions and answers. Specifically, the most relevant keywords or phrases to the question and answer content can be selected to determine the indexing information, which can accurately reflect the core content and context of the question and answer.

[0130] The above processing can enrich the knowledge base content to include more question-answering scenarios and solutions, improve the retrieval efficiency and accuracy of the knowledge base through indexing information, and provide reference and support for future question-answering, thereby improving the overall performance of the system.

[0131] Furthermore, with the addition of new question and answer information, the knowledge base content may become redundant or have long and difficult sentences, which need to be optimized. Figure 5 , the method further comprises:

[0132] S501, when a preset period is reached or when the newly added question and answer information in the knowledge base exceeds a preset amount, the knowledge base is optimized.

[0133] In actual application scenarios, as the number of question and answer information increases, the knowledge base needs to be optimized regularly, and the optimization process can adopt the process of step S102. For example, the knowledge base is optimized at a set period or when the number of new question and answer information added to the knowledge base exceeds a preset amount.

[0134] In intelligent question-answering systems, regular optimization of the knowledge base is an important maintenance task, which helps ensure that the system can provide accurate, timely and relevant answers. The following are the general steps for optimizing the knowledge base, and how to optimize it when the preset cycle is reached or when the new question and answer information in the knowledge base exceeds the preset amount:

[0135] In actual application scenarios, when optimizing the knowledge base, you can process long and difficult sentences, perform error correction analysis, and eliminate references. At the same time, you can use machine learning models to train question-answering models, and use the answers obtained by the question-answering model to optimize the answers in the knowledge base. For knowledge base performance, you can conduct performance evaluations regularly to evaluate the impact of the optimized knowledge base on the performance of the question-answering system to ensure that the optimization measures are effective. After optimization, continue to monitor system performance and user satisfaction to ensure that the optimization effect is maintained. In this way, the intelligent question-answering system can continuously learn and adapt to provide more accurate and personalized services. Regular and conditionally triggered knowledge base optimization helps to maintain the vitality of the system and ensure that it can continue to improve over time.

[0136] The following is a specific example of a method for processing intelligent question-answering work orders based on a large language model with an optimized knowledge base. First, the user logs in to the distributed work order system to ask a question. Before creating a new work order, the user can enter the large language model question function, enter the question, call the large language model knowledge retrieval interface, and return the search content. This process can be repeated multiple times until a satisfactory answer is obtained.

[0137] If the large language model retrieval content does not solve the user's problem, a work order can be created. When supporting manual replies to the work order, you can click to automatically generate a reply. This function will automatically obtain the work order content, call the large language model knowledge retrieval interface to generate a reply, and automatically fill it in the work order reply box. Support manual inspection to see whether the reply content is reasonable and whether it can solve the user's work order question. If the reply content is unreasonable, after sorting and modifying the content, you can choose whether to add it to the knowledge base to enrich the knowledge base content. After adding it to the knowledge base, you can regularly import the model knowledge retrieval library, and perform model tuning for inaccurate replies to improve the accuracy of question and answer.

[0138] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0139] After introducing the method of the exemplary embodiment of the present invention, next, refer to Figure 6 A large language model intelligent question and answer work order processing device based on an optimized knowledge base according to an exemplary embodiment of the present invention is introduced.

[0140] The implementation of the large language model intelligent question-answering work order processing device based on the optimized knowledge base can refer to the implementation of the above method, and the repeated parts will not be repeated. The terms "module" or "unit" used below can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0141] Based on the same inventive concept, the present invention also proposes a large language model intelligent question-answering work order processing device based on an optimized knowledge base, such as Figure 6 As shown, the device comprises:

[0142] A construction module 610 is used to construct a knowledge base, wherein the knowledge base includes indexing information and question-answer information;

[0143] An optimization module 620 is used to optimize the knowledge base, wherein the sentences in the knowledge base are processed using natural language processing technology, keywords are extracted and sentences are compressed for sentences whose length is greater than a preset length threshold and whose semantics belong to a preset semantic range, and error correction and reference resolution are performed on the knowledge base sentences to obtain an optimized knowledge base;

[0144] The question collection module 630 is used to collect user question data and, based on the user question data, ask whether to trigger a knowledge base query;

[0145] The knowledge base query module 640 is used to, if a knowledge base query is triggered, use the optimized knowledge base to query multiple answers corresponding to the user question data according to the indexing information and the question and answer information, and select a first answer from the multiple answers, and feed back the first answer to the questioner; if the first answer is not confirmed by the questioner, create a new work order; if the first answer is confirmed by the questioner, record the question and answer information; if the knowledge base query is not triggered, create a new work order;

[0146] The large language model questioning module 650 is used to trigger the large language model questioning according to the newly created work order, call the large language model knowledge retrieval interface to analyze the user question data, determine the question category and question content, perform content retrieval according to the question category and question content, and feedback the retrieval results to the questioner; if the questioner determines that the retrieval results do not solve the question, the question and answer processing will be transferred to manual.

[0147] In one embodiment, the large language model questioning module 650 is specifically used to:

[0148] If the search result is confirmed by the questioner, the question and answer information is recorded; if the answer is not confirmed by the questioner, the questioner is asked whether to call the large language model knowledge search interface again;

[0149] If so, the large language model knowledge retrieval interface is called again to query the retrieval result corresponding to the work order, and the retrieval result is fed back to the questioner; if not, the work order is forwarded to manual processing.

[0150] In one embodiment, the optimization module 620 is specifically used for:

[0151] Using syntactic analysis in natural language processing technology to construct a grammatical tree of the sentence, wherein the grammatical tree is used to represent the relationship between each component in the sentence;

[0152] For sentences whose length is greater than a preset length threshold and whose semantics fall within a preset semantic range, keywords are extracted according to word frequency, word meaning, and professional terminology database, and the sentences are compressed according to the keywords;

[0153] Using predefined dictionaries, match the text in the knowledge base with the dictionary and identify words that do not meet the dictionary criteria;

[0154] Using a text error correction model to identify text errors and propose correction methods; wherein the text error correction model is built based on the Transformer model, a machine learning model obtained by training with text data;

[0155] The pronouns and demonstrative words in the text are transformed, and the optimized knowledge base is obtained through the above optimization process.

[0156] In one embodiment, the knowledge base query module 640 is specifically used to:

[0157] According to the optimized knowledge base, multiple nearest neighbor answers are searched from the established semantic vector index; wherein, a tree-like data structure is established, each vector in the vector space corresponding to the semantic vector index is mapped to a binary tree, and after splitting, the child nodes under the same parent node have characteristics whose similarity reaches a preset similarity threshold; according to the semantic vector corresponding to the user's question data, multiple vectors with the highest similarity are searched in the tree-like data structure corresponding to the optimized knowledge base;

[0158] The answers corresponding to multiple vectors are deduplicated and sorted, and the answer with the highest similarity ranking is selected as the first answer and sent to the questioner.

[0159] In one embodiment, after the knowledge base query module 640 triggers a knowledge base query and obtains a first answer, before feeding back the first answer to the questioner, or after the large language model questioning module 650 calls a large language model knowledge retrieval interface to obtain a retrieval result, before feeding back the retrieval result to the questioner, the method further includes:

[0160] forwarding the first answer or search result to a manual processing interface for manual review;

[0161] A modified answer is obtained based on the manual review result, and the modified answer is sent to the questioner.

[0162] In one embodiment, reference Figure 7 , the device further includes: an audit module 710;

[0163] The review module 710 is used to forward the question and answer information to a manual review after recording the question and answer information, and the manual review will modify and edit the question and answer information to obtain the revised question and answer information;

[0164] Corresponding indexing information is determined according to the corrected question and answer information, and the indexing information and the question and answer information are stored in a knowledge base.

[0165] In one embodiment, the optimization module 620 is specifically used for:

[0166] When a preset period is reached or when the newly added question and answer information in the knowledge base exceeds a preset amount, the knowledge base is optimized.

[0167] It should be noted that although several modules of the large language model intelligent question-answering work order processing device based on the optimized knowledge base are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be concretized in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules for concretization.

[0168] Based on the above invention concept, Figure 8 As shown, the present invention also proposes a computer device 800, including a memory 810, a processor 820, and a computer program 830 stored in the memory 810 and executable on the processor 820, wherein the processor 820 implements the aforementioned large language model intelligent question and answer work order processing method based on an optimized knowledge base when executing the computer program 830.

[0169] Based on the aforementioned inventive concept, the present invention proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the aforementioned large language model intelligent question and answer work order processing method based on an optimized knowledge base.

[0170] Based on the aforementioned inventive concept, the present invention proposes a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements a large language model intelligent question and answer work order processing method based on an optimized knowledge base.

[0171] The large language model intelligent question-and-answer work order processing method and device based on the optimized knowledge base proposed in the present invention constructs a knowledge base, optimizes the knowledge base, collects user question data, and inquires whether to trigger a knowledge base query based on the user question data; if the knowledge base query is triggered, the optimized knowledge base is used to query multiple answers corresponding to the user question data according to the indexing information and question-and-answer information, and a first answer is screened out from the multiple answers, and the first answer is fed back to the questioner; if the first answer is not confirmed by the questioner, a new work order is created; if the first answer is confirmed by the questioner, the question and answer information is recorded; if the knowledge base query is not triggered, a new work order is created; and a large work order is triggered according to the newly created work order. Language model questions call the large language model knowledge retrieval interface to analyze user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner; if the questioner determines that the retrieval result does not solve the question, manual question and answer processing will be performed. The overall solution uses the knowledge base to query answers before creating a new work order, which is convenient for users to solve problems by themselves, improves problem solving efficiency, reduces the number of work orders to a certain extent, and reduces the support burden of support personnel; the present invention optimizes the knowledge base to improve the accuracy of large language model question and answer, and records inaccurate answers to facilitate subsequent improvements and optimizations, providing strong technical support for large language model question and answer scenarios.

[0172] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of laws and regulations.

[0173] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0174] The present invention is described with reference to flowcharts and / or block diagrams of methods and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0175] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0176] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0177] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for processing intelligent question-answering work orders using a large language model based on an optimized knowledge base. It is characterized in that include: Building a knowledge base, the knowledge base including indexing information and question-answering information; Optimizing the knowledge base, wherein natural language processing technology is used to process sentences in the knowledge base, keywords are extracted and sentences are compressed for sentences whose length is greater than a preset length threshold and whose semantics belong to a preset semantic range, and error correction and reference resolution are performed on the knowledge base sentences to obtain an optimized knowledge base; Collect user question data, and ask whether to trigger a knowledge base query based on the user question data; If a knowledge base query is triggered, the optimized knowledge base is used to query multiple answers corresponding to the user question data according to the indexing information and the question and answer information, and the first answer is selected from the multiple answers, and the first answer is fed back to the questioner; if the first answer is not confirmed by the questioner, a new work order is created; if the first answer is confirmed by the questioner, the question and answer information is recorded; If the knowledge base query is not triggered, create a new work order; Trigger the large language model to ask questions based on the newly created work order, call the large language model knowledge retrieval interface to analyze the user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner; if the questioner determines that the retrieval results do not solve the question, the question and answer process will be manually performed.

2. The method according to claim 1, It is characterized in that Triggering a large language model question based on a newly created work order, calling the large language model knowledge retrieval interface to analyze user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner, further comprising: If the search result is confirmed by the questioner, the question and answer information is recorded; if the answer is not confirmed by the questioner, the questioner is asked whether to call the large language model knowledge search interface again; If so, the large language model knowledge retrieval interface is called again to query the retrieval result corresponding to the work order, and the retrieval result is fed back to the questioner; if not, the work order is forwarded to manual processing.

3. The method according to claim 1, It is characterized in that The knowledge base is optimized, wherein the sentences in the knowledge base are processed using natural language processing technology, keywords are extracted and sentences are compressed for sentences whose length is greater than a preset length threshold and whose semantics belong to a preset semantic range, and error correction and reference resolution are performed on the knowledge base sentences to obtain an optimized knowledge base, including: Using syntactic analysis in natural language processing technology to construct a grammatical tree of the sentence, wherein the grammatical tree is used to represent the relationship between each component in the sentence; For sentences whose length is greater than a preset length threshold and whose semantics fall within a preset semantic range, keywords are extracted according to word frequency, word meaning, and professional terminology database, and the sentences are compressed according to the keywords; Using predefined dictionaries, match the text in the knowledge base with the dictionary and identify words that do not meet the dictionary criteria; Using a text error correction model to identify text errors and propose correction methods; wherein the text error correction model is built based on the Transformer model, a machine learning model obtained by training with text data; The pronouns and demonstrative words in the text are transformed, and the optimized knowledge base is obtained through the above optimization process.

4. The method according to claim 1, It is characterized in that If a knowledge base query is triggered, the optimized knowledge base is used to query multiple answers corresponding to the user question data according to the indexing information and the question-answer information, and a first answer is selected from the multiple answers, and the first answer is fed back to the questioner, including: According to the optimized knowledge base, multiple nearest neighbor answers are searched from the established semantic vector index; wherein, a tree-like data structure is established, each vector in the vector space corresponding to the semantic vector index is mapped to a binary tree, and after splitting, the child nodes under the same parent node have characteristics whose similarity reaches a preset similarity threshold; according to the semantic vector corresponding to the user's question data, multiple vectors with the highest similarity are searched in the tree-like data structure corresponding to the optimized knowledge base; The answers corresponding to multiple vectors are deduplicated and sorted, and the answer with the highest similarity ranking is selected as the first answer and sent to the questioner.

5. The method according to claim 1, It is characterized in that After triggering the knowledge base query and obtaining the first answer, before feeding back the first answer to the questioner, or after calling the large language model knowledge retrieval interface to obtain the retrieval result, before feeding back the retrieval result to the questioner, the method further includes: forwarding the first answer or search result to a manual processing interface for manual review; A modified answer is obtained based on the manual review result, and the modified answer is sent to the questioner.

6. The method according to claim 1 or 2, It is characterized in that After recording this question and answer information, it also includes: The question and answer information is forwarded to manual review, and the manual review modifies and edits the question and answer information to obtain the revised question and answer information; Corresponding indexing information is determined according to the corrected question and answer information, and the indexing information and the question and answer information are stored in a knowledge base.

7. The method according to claim 6, It is characterized in that Also includes: When a preset period is reached or when the newly added question and answer information in the knowledge base exceeds a preset amount, the knowledge base is optimized.

8. A large language model intelligent question-answering work order processing device based on an optimized knowledge base, It is characterized in that include: A construction module, used to construct a knowledge base, wherein the knowledge base includes indexing information and question-answering information; An optimization module is used to optimize the knowledge base, wherein the sentences in the knowledge base are processed using natural language processing technology, keywords are extracted and sentences are compressed for sentences whose length is greater than a preset length threshold and whose semantics belong to a preset semantic range, and error correction and reference resolution are performed on the knowledge base sentences to obtain an optimized knowledge base; A question collection module is used to collect user question data and, based on the user question data, ask whether to trigger a knowledge base query; The knowledge base query module is used to, if a knowledge base query is triggered, use the optimized knowledge base to query multiple answers corresponding to the user question data according to the indexing information and the question and answer information, and select a first answer from the multiple answers, and feed back the first answer to the questioner; if the first answer is not confirmed by the questioner, create a new work order; if the first answer is confirmed by the questioner, record the question and answer information; if the knowledge base query is not triggered, create a new work order; The large language model questioning module is used to trigger large language model questions based on newly created work orders, call the large language model knowledge retrieval interface to analyze user question data, determine the question category and question content, perform content retrieval based on the question category and question content, and feed back the retrieval results to the questioner; if the questioner determines that the retrieval results do not solve the question, the question will be manually answered.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Method for converting structured data into unstructured text based on AI to realize knowledge base

    CN118733711A

  • Knowledge point checking method and system based on binary tree structure

    CN118964584A

  • A knowledge point search method and system based on binary tree structure

    CN118964584B

  • Knowledge base retrieval method and system based on large model

    CN119202215A

  • Large model-based campus intelligent customer service system and processing method

    CN119357363A