Large-model-based intelligent question and answer method and system based on rule and number fusion
By integrating the rule-number fusion intelligent question and answer method on the large language model, the problem of poor knowledge question and answer effect in the power vertical field is solved, and more accurate intelligent answers are achieved.
Patent Information
- Application Number
- CN202410631031.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-21
AI Technical Summary
The large language model has poor performance in question and answer in professional vertical knowledge fields and electric power indicators, and cannot effectively solve the knowledge question and answer problems in the electric power vertical field.
Using a large model-based intelligent question and answer method based on rule-number fusion, by obtaining the question information and materials input by the user, preprocessing and word segmentation are performed, keywords are extracted, and matched with the preset data index library and knowledge base, and combined with user feedback information. Validate and revise, adjusting models to improve answer accuracy.
It eliminates the illusion of large models, realizes the fusion of rules and numbers, improves the accuracy of intelligent answers, and is suitable for knowledge question and answer in the electric power field.
Smart Images

Figure CN118734962A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent question answering technology, and more specifically, to a large-model-based rule-number fusion intelligent question answering method and system. Background Art
[0002] Although large language models have strong advantages in natural language understanding and text generation, they are less effective in professional vertical knowledge fields and power indicator question and answer. Although knowledge base retrieval methods based on large models and vector retrieval have appeared on the market, due to the strong generalization ability of large models, they have not been well solved in the field of power indicators and power vertical knowledge question and answer.
[0003] Therefore, the prior art has defects and needs to be improved urgently. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a large-model-based rule-and-number fusion intelligent question-answering method and system, which can improve the accuracy of intelligent answers.
[0005] The first aspect of the present invention provides an improved intelligent question-answering method based on large-model rule-number fusion, comprising:
[0006] Obtaining question information and user profile information input by the user;
[0007] Preprocess the question and answer information input by the user to obtain standard question information;
[0008] Send the standard question information to the preset word segmentation module to obtain the question information output in the specified format;
[0009] Extract keywords from the question information output in the specified format;
[0010] If the keywords in the question information output in the specified format are the same as the preset keywords, the corresponding identical keywords are extracted;
[0011] Input the same keyword and the corresponding user terminal data into the preset data indicator module to obtain the indicator corresponding to the same keyword;
[0012] Sending indicators of the same keyword to the user end for display;
[0013] The preset word segmentation module stores a large model with word segmentation capabilities.
[0014] This plan also includes:
[0015] If the keywords in the question information output in the specified format are not the same as the preset keywords, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain a first similarity matching value set;
[0016] If there is a first similarity matching value in the first similarity matching value set that is greater than or equal to a preset first similarity matching threshold, sorting the first similarity matching values to obtain the largest first similarity matching value;
[0017] The knowledge corresponding to the largest first similarity matching value is sent to the user terminal for display;
[0018] If the first similarity matching value in the first similarity matching value set is less than a preset first similarity matching threshold, a preset output statement is obtained;
[0019] The preset output statement is sent to the user terminal for display.
[0020] In this solution, the step of preprocessing the question and answer information input by the user to obtain standard question information specifically includes:
[0021] Determine the input format of the corresponding question and answer information based on the input format selected by the user;
[0022] Determine whether the input format of the question and answer information is the same as the preset format, and if so, set the corresponding question and answer information as standard question information;
[0023] If not, the corresponding question and answer information is input into a preset format conversion module to obtain standard question information having the same preset format.
[0024] In this solution, the step of inputting the same keyword and the corresponding user terminal data into the preset data indicator module to obtain the indicator corresponding to the same keyword specifically includes:
[0025] Determine the number value of the corresponding user terminal according to the corresponding user terminal information;
[0026] According to the number value of the corresponding user end, match the data indicator sub-library corresponding to the number value;
[0027] Match the same keyword with the keyword in the corresponding data indicator sub-library to obtain a second similar matching value set;
[0028] If there is a second similarity matching value in the second similarity matching value set that is greater than or equal to a preset second similarity matching threshold, sorting the second similarity matching values to obtain the largest second similarity matching value;
[0029] The index corresponding to the keyword in the data index character library corresponding to the largest second similar matching value is set as the index of the same keyword;
[0030] The preset data indicator module includes a data indicator library, and the data indicator library is composed of multiple data indicator sub-libraries.
[0031] This plan also includes:
[0032] If the second similarity matching value in the second similarity matching value set is less than the preset second similarity matching threshold, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain the knowledge or preset output sentence corresponding to the largest first similarity matching value, and perform authenticity verification to the user end;
[0033] If the authenticity verification of the user's answer to the question is no, then extract the real feedback information given by the user;
[0034] Based on a preset first time period, obtaining a number of true feedback information given by the user terminal in the same question;
[0035] If the number of times the user terminal gives the true feedback information in the same question is greater than the preset first number threshold, the corresponding true feedback information is sent to the preset management terminal for processing.
[0036] This plan also includes:
[0037] When the authenticity verification of the knowledge corresponding to the largest first similarity matching value is negative, recording a matching error between the keywords in the question information output in the specified format corresponding to the largest first similarity matching value and the keywords in the preset knowledge base once;
[0038] Get the total number of matching errors;
[0039] If the total number of matches is greater than the preset second number threshold, the total number of matching errors is multiplied by the preset first similarity matching threshold to obtain a first similarity matching revision value of the keywords in the question information output in the specified format and the keywords in the preset knowledge base corresponding to the largest first similarity matching value;
[0040] The first similarity matching revision value is subtracted from the corresponding maximum first similarity matching value to obtain the first similarity matching value after revision of the keywords in the question information output in the specified format and the keywords in the preset knowledge base corresponding to the maximum first similarity matching value.
[0041] This plan also includes:
[0042] Obtain historical power index information;
[0043] Preprocess the historical power index information to obtain a historical power index training set;
[0044] Freeze the preset trained model weight parameters based on the preset ql ora, and add a new network layer to the preset trained large model;
[0045] Based on the historical power index training set, the new network layer is trained to obtain the new network layer parameters, and the preset trained model weight parameters are unfrozen to obtain the adjusted large model;
[0046] Obtain historical question and answer information and accurate indicator answer information corresponding to the historical question and answer information;
[0047] Input historical question and answer information into the adjusted large model, output the index answer, and determine the accuracy rate based on the accurate index answer information corresponding to the historical answer information;
[0048] When the accuracy is greater than or equal to the preset accuracy threshold, stop training the new network layer;
[0049] When the accuracy is less than the preset accuracy threshold, the preset trained model weight parameters are frozen through the preset QL Oracle, and the new network layer is continued to be trained through the historical power indicator training set.
[0050] A second aspect of the present invention provides a large-model-based rule-number fusion intelligent question-answering system, comprising a memory and a processor, wherein the memory stores a large-model-based rule-number fusion intelligent question-answering method program, and when the large-model-based rule-number fusion intelligent question-answering method program is executed by the processor, the following steps are implemented:
[0051] Obtaining question information and user profile information input by the user;
[0052] Preprocess the question and answer information input by the user to obtain standard question information;
[0053] Send the standard question information to the preset word segmentation module to obtain the question information output in the specified format;
[0054] Extract keywords from the question information output in the specified format;
[0055] If the keywords in the question information output in the specified format are the same as the preset keywords, the corresponding identical keywords are extracted;
[0056] Input the same keyword and the corresponding user terminal data into the preset data indicator module to obtain the indicator corresponding to the same keyword;
[0057] Sending indicators of the same keyword to the user end for display;
[0058] The preset word segmentation module stores a large model with word segmentation capabilities.
[0059] This plan also includes:
[0060] If the keywords in the question information output in the specified format are not the same as the preset keywords, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain a first similarity matching value set;
[0061] If there is a first similarity matching value in the first similarity matching value set that is greater than or equal to a preset first similarity matching threshold, sorting the first similarity matching values to obtain the largest first similarity matching value;
[0062] The knowledge corresponding to the largest first similarity matching value is sent to the user terminal for display;
[0063] If the first similarity matching value in the first similarity matching value set is less than a preset first similarity matching threshold, a preset output statement is obtained;
[0064] The preset output statement is sent to the user terminal for display.
[0065] In this solution, the step of preprocessing the question and answer information input by the user to obtain standard question information specifically includes:
[0066] Determine the input format of the corresponding question and answer information based on the input format selected by the user;
[0067] Determine whether the input format of the question and answer information is the same as the preset format, and if so, set the corresponding question and answer information as standard question information;
[0068] If not, the corresponding question and answer information is input into a preset format conversion module to obtain standard question information having the same preset format.
[0069] The present invention discloses a large-model-based rule-number fusion intelligent question-answering method and system, which eliminates the large-model illusion, realizes rule-number fusion, and improves the accuracy of intelligent answers. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 A flow chart of a large-model-based intelligent question-answering method for rule-number fusion is shown in the present invention;
[0071] Figure 2 A block diagram of a large-model-based rule-number fusion intelligent answering system of the present invention is shown. DETAILED DESCRIPTION
[0072] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0073] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0074] Figure 1 A flow chart of a large-model-based rule-number fusion intelligent question-answering method of the present invention is shown.
[0075] like Figure 1 As shown, the present invention discloses a large model-based rule-number fusion intelligent question answering method, comprising:
[0076] S101, obtaining question information input by the user and user profile information;
[0077] S102, pre-processing the question and answer information input by the user to obtain standard question information;
[0078] S103, sending the standard question information to a preset word segmentation module to obtain the question information output in a specified format;
[0079] S104, extracting keywords from the question information output in a specified format;
[0080] S105, if the keywords in the question information output in the specified format are the same as the preset keywords, extract the corresponding same keywords;
[0081] S106, inputting the same keyword and the corresponding user terminal data into a preset data indicator module to obtain an indicator corresponding to the same keyword;
[0082] S107, sending the index of the same keyword to the user terminal for display;
[0083] According to an embodiment of the present invention, a large model with word segmentation capabilities is stored in the preset word segmentation module; the standard specifications of the standard question information are set according to the field to which the question and answer belong. For example, if it is in the power field, the corresponding standard question information contains keywords such as time, address, and electricity sales volume. The keywords in the question information output in the specified format are matched with the preset keywords to find the indicator corresponding to the threshold. For example, if it is in the power field, the corresponding indicator is the power indicator. The preset data indicator module stores a data indicator library for storing data indicators on the user side.
[0084] According to an embodiment of the present invention, it also includes:
[0085] If the keywords in the question information output in the specified format are not the same as the preset keywords, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain a first similarity matching value set;
[0086] If there is a first similarity matching value in the first similarity matching value set that is greater than or equal to a preset first similarity matching threshold, sorting the first similarity matching values to obtain the largest first similarity matching value;
[0087] The knowledge corresponding to the largest first similarity matching value is sent to the user terminal for display;
[0088] If the first similarity matching value in the first similarity matching value set is less than a preset first similarity matching threshold, a preset output statement is obtained;
[0089] The preset output statement is sent to the user terminal for display.
[0090] It should be noted that when the first similarity matching values are all less than the preset first similarity matching threshold, it means that the question information input by the current user terminal does not involve the indicator or the input question information is vague and unclear, and the user terminal is prompted through a preset output statement. For example, the preset output statement is "Hello, the indicator question and answer assistant is still learning, please wait patiently."
[0091] It should be noted that by answering the question information output in a specified format using the data indicators in the preset data indicator library and the knowledge in the preset knowledge library, the data and rules are integrated to improve the accuracy of the answer to the question.
[0092] According to an embodiment of the present invention, the step of preprocessing the question and answer information input by the user terminal to obtain standard question information specifically includes:
[0093] Determine the input format of the corresponding question and answer information based on the input format selected by the user;
[0094] Determine whether the input format of the question and answer information is the same as the preset format, and if so, set the corresponding question and answer information as standard question information;
[0095] If not, the corresponding question and answer information is input into a preset format conversion module to obtain standard question information having the same preset format.
[0096] It should be noted that the user end can choose the input format of the question according to its own needs, such as voice format, text format, etc. If the preset format is text format, and the format of the question information input by the corresponding user end is voice format, the question information in voice format needs to be adjusted to text format through the voice recognition system.
[0097] According to an embodiment of the present invention, the step of inputting the same keyword and the corresponding user terminal data into the preset data indicator module to obtain the indicator corresponding to the same keyword specifically includes:
[0098] Determine the number value of the corresponding user terminal according to the corresponding user terminal information;
[0099] According to the number value of the corresponding user end, match the data indicator sub-library corresponding to the number value;
[0100] Match the same keyword with the keyword in the corresponding data indicator sub-library to obtain a second similar matching value set;
[0101] If there is a second similarity matching value in the second similarity matching value set that is greater than or equal to a preset second similarity matching threshold, sorting the second similarity matching values to obtain the largest second similarity matching value;
[0102] The index corresponding to the keyword in the data index character library corresponding to the largest second similar matching value is set as the index of the same keyword;
[0103] The preset data indicator module includes a data indicator library, and the data indicator library is composed of multiple data indicator sub-libraries.
[0104] It should be noted that the number value of a user end corresponds to a data indicator sub-library, and each data indicator sub-library contains data indicators of one or more user ends.
[0105] According to an embodiment of the present invention, it also includes:
[0106] If the second similarity matching value in the second similarity matching value set is less than the preset second similarity matching threshold, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain the knowledge or preset output sentence corresponding to the largest first similarity matching value, and perform authenticity verification to the user end;
[0107] If the authenticity verification of the user's answer to the question is no, then extract the real feedback information given by the user;
[0108] Based on a preset first time period, obtaining a number of true feedback information given by the user terminal in the same question;
[0109] If the number of times the user terminal gives the real feedback information in the same question is greater than the preset first number threshold, the corresponding real feedback information will be sent to the preset management terminal for processing.
[0110] It should be noted that when the second similarity matching value in the second similarity matching value set is less than the preset second similarity matching threshold, it means that the current data indicator library does not involve the data indicator answer to the user's question information. Therefore, the answer is given through the knowledge in the preset knowledge base, and the knowledge or preset output statement corresponding to the largest first similarity matching value is verified through the feedback from the user. When the real verification is no, it means that the user is not satisfied with the knowledge or preset output statement corresponding to the largest first similarity matching value. By setting the preset first number threshold, when the number of real feedback information given by the user in the same question is greater than the preset first number threshold, the corresponding real feedback information will be sent to the preset management end, and the knowledge with feedback from the user will be processed by the preset management end, such as deletion, addition, etc.
[0111] According to an embodiment of the present invention, it also includes:
[0112] When the authenticity verification of the knowledge corresponding to the largest first similarity matching value is negative, recording a matching error between the keywords in the question information output in the specified format corresponding to the largest first similarity matching value and the keywords in the preset knowledge base once;
[0113] Get the total number of matching errors;
[0114] If the total number of matches is greater than the preset second number threshold, the total number of matching errors is multiplied by the preset first similarity matching threshold to obtain a first similarity matching revision value of the keywords in the question information output in the specified format and the keywords in the preset knowledge base corresponding to the largest first similarity matching value;
[0115] The first similarity matching revision value is subtracted from the corresponding maximum first similarity matching value to obtain the first similarity matching value after revision of the keywords in the question information output in the specified format and the keywords in the preset knowledge base corresponding to the maximum first similarity matching value.
[0116] It should be noted that, for example, if the first similarity matching value between keyword a and keyword A in the preset knowledge base is the largest, and the feedback given by the user end at that time is negative, then the matching error between the current keyword a and keyword A in the preset knowledge base is recorded once. When there are multiple matching errors between the previous keyword a and keyword A in the preset knowledge base, and the total number of corresponding matching errors is greater than the preset second number threshold, the first similarity matching value between keyword a and keyword A in the preset knowledge base is revised according to the first similarity matching revision value to improve the accuracy of the first similarity matching value between the keywords in the question information output in the specified format and the keywords in the preset knowledge base.
[0117] According to an embodiment of the present invention, it also includes:
[0118] Obtain historical power index information;
[0119] Preprocess the historical power index information to obtain a historical power index training set;
[0120] Freeze the preset trained model weight parameters based on the preset ql ora, and add a new network layer to the preset trained large model;
[0121] Based on the historical power index training set, the new network layer is trained to obtain the new network layer parameters, and the preset trained model weight parameters are unfrozen to obtain the adjusted large model;
[0122] Obtain historical question and answer information and accurate indicator answer information corresponding to the historical question and answer information;
[0123] Input historical question and answer information into the adjusted large model, output the index answer, and determine the accuracy rate based on the accurate index answer information corresponding to the historical answer information;
[0124] When the accuracy is greater than or equal to the preset accuracy threshold, stop training the new network layer;
[0125] When the accuracy is less than the preset accuracy threshold, the preset trained model weight parameters are frozen through the preset QL Oracle, and the new network layer is continued to be trained through the historical power indicator training set.
[0126] It should be noted that the big model is a data set of indicators at a certain time node. For example, if it is an electricity indicator, it is an electricity data set at a certain time node. By fine-tuning Ql Oracle with the big model, each sentence is recognized as a specified mode output.
[0127] Figure 2 A block diagram of a large-model-based rule-number fusion intelligent answering system of the present invention is shown.
[0128] like Figure 2 As shown, the second aspect of the present invention provides a large model-based rule-number fusion intelligent question-answering system 2, including a memory 21 and a processor 22, wherein the memory stores a large model-based rule-number fusion intelligent question-answering method program, and when the large model-based rule-number fusion intelligent question-answering method program is executed by the processor, the following steps are implemented:
[0129] Obtaining question information and user profile information input by the user;
[0130] Preprocess the question and answer information input by the user to obtain standard question information;
[0131] Send the standard question information to the preset word segmentation module to obtain the question information output in the specified format;
[0132] Extract keywords from the question information output in the specified format;
[0133] If the keywords in the question information output in the specified format are the same as the preset keywords, the corresponding identical keywords are extracted;
[0134] Input the same keyword and the corresponding user terminal data into the preset data indicator module to obtain the indicator corresponding to the same keyword;
[0135] Sending indicators of the same keyword to the user end for display;
[0136] The preset word segmentation module stores a large model with word segmentation capabilities.
[0137] This plan also includes:
[0138] If the keywords in the question information output in the specified format are not the same as the preset keywords, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain a first similarity matching value set;
[0139] If there is a first similarity matching value in the first similarity matching value set that is greater than or equal to a preset first similarity matching threshold, sorting the first similarity matching values to obtain the largest first similarity matching value;
[0140] The knowledge corresponding to the largest first similarity matching value is sent to the user terminal for display;
[0141] If the first similarity matching value in the first similarity matching value set is less than a preset first similarity matching threshold, a preset output statement is obtained;
[0142] The preset output statement is sent to the user terminal for display.
[0143] In this solution, the step of preprocessing the question and answer information input by the user to obtain standard question information specifically includes:
[0144] Determine the input format of the corresponding question and answer information based on the input format selected by the user;
[0145] Determine whether the input format of the question and answer information is the same as the preset format, and if so, set the corresponding question and answer information as standard question information;
[0146] If not, the corresponding question and answer information is input into a preset format conversion module to obtain standard question information having the same preset format.
[0147] The present invention discloses a method and system for intelligent question-answering based on large model and fusion of rules and numbers, wherein the method includes: obtaining question information and user-side data information input by the user end; preprocessing the question-answering information input by the user end to obtain standard question information; sending the standard question information to a preset word segmentation module to obtain question information output in a specified format; extracting keywords from the question information output in the specified format; if the keywords in the question information output in the specified format are the same as the preset keywords, extracting the corresponding same keywords; inputting the same keywords and the corresponding user-side data into a preset data indicator module to obtain the indicators corresponding to the same keywords; sending the indicators of the same keywords to the user end for display. The present invention eliminates the illusion of large model, realizes the fusion of rules and numbers, and improves the accuracy of intelligent answers.
[0148] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0149] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0150] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0151] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical disks, and other media that can store program codes.
[0152] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A large-model-based rule-number fusion intelligent question-answering method, characterized in that: include: Obtaining question information and user profile information input by the user; Preprocess the question and answer information input by the user to obtain standard question information; Send the standard question information to the preset word segmentation module to obtain the question information output in the specified format; Extract keywords from the question information output in the specified format; If the keywords in the question information output in the specified format are the same as the preset keywords, the corresponding identical keywords are extracted; Input the same keyword and the corresponding user terminal data into the preset data indicator module to obtain the indicator corresponding to the same keyword; Sending indicators of the same keyword to the user end for display; The preset word segmentation module stores a large model with word segmentation capabilities.
2. According to claim 1, a large model-based rule-number fusion intelligent question-answering method is characterized in that: Also includes: If the keywords in the question information output in the specified format are not the same as the preset keywords, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain a first similarity matching value set; If there is a first similarity matching value in the first similarity matching value set that is greater than or equal to a preset first similarity matching threshold, sorting the first similarity matching values to obtain the largest first similarity matching value; The knowledge corresponding to the largest first similarity matching value is sent to the user terminal for display; If the first similarity matching value in the first similarity matching value set is less than a preset first similarity matching threshold, a preset output statement is obtained; The preset output statement is sent to the user terminal for display.
3. According to claim 1, a large model-based rule-number fusion intelligent question-answering method is characterized in that: The step of preprocessing the question and answer information input by the user end to obtain standard question information specifically includes: Determine the input format of the corresponding question and answer information based on the input format selected by the user; Determine whether the input format of the question and answer information is the same as the preset format, and if so, set the corresponding question and answer information as standard question information; If not, the corresponding question and answer information is input into a preset format conversion module to obtain standard question information having the same preset format.
4. According to claim 1, a large model-based rule-number fusion intelligent question-answering method is characterized in that: The step of inputting the same keyword and the corresponding user terminal data into the preset data indicator module to obtain the indicator corresponding to the same keyword specifically includes: Determine the number value of the corresponding user terminal according to the corresponding user terminal information; According to the number value of the corresponding user end, match the data indicator sub-library corresponding to the number value; Match the same keyword with the keyword in the corresponding data indicator sub-library to obtain a second similar matching value set; If there is a second similarity matching value in the second similarity matching value set that is greater than or equal to a preset second similarity matching threshold, sorting the second similarity matching values to obtain the largest second similarity matching value; The index corresponding to the keyword in the data index character library corresponding to the largest second similar matching value is set as the index of the same keyword; The preset data indicator module includes a data indicator library, and the data indicator library is composed of multiple data indicator sub-libraries.
5. The intelligent question-answering method based on large model and rule-number fusion according to claim 4 is characterized in that: Also includes: If the second similarity matching value in the second similarity matching value set is less than the preset second similarity matching threshold, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain the knowledge or preset output sentence corresponding to the largest first similarity matching value, and perform authenticity verification to the user end; If the authenticity verification of the user's answer to the question is no, then extract the real feedback information given by the user; Based on a preset first time period, obtaining a number of true feedback information given by the user terminal in the same question; If the number of times the user terminal gives the true feedback information in the same question is greater than the preset first number threshold, the corresponding true feedback information is sent to the preset management terminal for processing.
6. The method for intelligent question answering based on large model and rule-number fusion according to claim 5 further comprises: When the authenticity verification of the knowledge corresponding to the largest first similarity matching value is negative, recording a matching error between the keywords in the question information output in the specified format corresponding to the largest first similarity matching value and the keywords in the preset knowledge base once; Get the total number of matching errors; If the total number of matches is greater than the preset second number threshold, the total number of matching errors is multiplied by the preset first similarity matching threshold to obtain a first similarity matching revision value of the keywords in the question information output in the specified format and the keywords in the preset knowledge base corresponding to the largest first similarity matching value; The first similarity matching revision value is subtracted from the corresponding maximum first similarity matching value to obtain the first similarity matching value after revision of the keywords in the question information output in the specified format and the keywords in the preset knowledge base corresponding to the maximum first similarity matching value.
7. The method for intelligent question answering based on large model and rule-number fusion according to claim 1 further comprises: Obtain historical power index information; Preprocess the historical power index information to obtain a historical power index training set; Freeze the preset trained model weight parameters based on the preset qlora, and add a new network layer to the preset trained large model; Based on the historical power index training set, the new network layer is trained to obtain the new network layer parameters, and the preset trained model weight parameters are unfrozen to obtain the adjusted large model; Obtain historical question and answer information and accurate indicator answer information corresponding to the historical question and answer information; Input historical question and answer information into the adjusted large model, output the index answer, and determine the accuracy rate based on the accurate index answer information corresponding to the historical answer information; When the accuracy is greater than or equal to the preset accuracy threshold, stop training the new network layer; When the accuracy is less than the preset accuracy threshold, the preset trained model weight parameters are frozen through the preset qlora, and the new network layer is continued to be trained through the historical power indicator training set.
8. A large-model-based rule-number fusion intelligent question-answering system, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a large model-based rule-number fusion intelligent question-answering method program, and when the large model-based rule-number fusion intelligent question-answering method program is executed by the processor, the following steps are implemented: Obtaining question information and user profile information input by the user; Preprocess the question and answer information input by the user to obtain standard question information; Send the standard question information to the preset word segmentation module to obtain the question information output in the specified format; Extract keywords from the question information output in the specified format; If the keywords in the question information output in the specified format are the same as the preset keywords, the corresponding identical keywords are extracted; Input the same keyword and the corresponding user terminal data into the preset data indicator module to obtain the indicator corresponding to the same keyword; Sending indicators of the same keyword to the user end for display; The preset word segmentation module stores a large model with word segmentation capabilities.
9. The large-model-based rule-number fusion intelligent question-answering system according to claim 8, characterized in that: Also includes: If the keywords in the question information output in the specified format are not the same as the preset keywords, the keywords in the question information output in the specified format are matched with the keywords in the preset knowledge base to obtain a first similarity matching value set; If there is a first similarity matching value in the first similarity matching value set that is greater than or equal to a preset first similarity matching threshold, sorting the first similarity matching values to obtain the largest first similarity matching value; The knowledge corresponding to the largest first similarity matching value is sent to the user terminal for display; If the first similarity matching value in the first similarity matching value set is less than a preset first similarity matching threshold, a preset output statement is obtained; The preset output statement is sent to the user terminal for display.
10. The intelligent question-answering system based on large model and fusion of rules and numbers according to claim 8 is characterized in that: The step of preprocessing the question and answer information input by the user end to obtain standard question information specifically includes: Determine the input format of the corresponding question and answer information based on the input format selected by the user; Determine whether the input format of the question and answer information is the same as the preset format, and if so, set the corresponding question and answer information as standard question information; If not, the corresponding question and answer information is input into a preset format conversion module to obtain standard question information having the same preset format.
Citation Information
Patent Citations
Knowledge question and answer method and system and computer storage medium
CN117056480A
Intelligent question and answer method, device and equipment and storage medium
CN117591658A
Question and answer method and device based on large language model, equipment and medium
CN117972032A
Method, apparatus and computer-readable medium for operating chatbot
KR102047385B1
Techniques for verifying a veracity of machine learning outputs
US11966704B1
