Professional knowledge interaction method and system based on large model, and refrigeration equipment
By using large model technology in the refrigerator intelligent system to extract subject keywords in the user interaction text and generate professional terms, it solves the problem of the refrigerator intelligent question and answer system having difficulty understanding users' non-professional terms, achieves efficient and accurate user interaction, and improves Improve user experience and system intelligence.
Patent Information
- Application Number
- CN202411096630.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-18
AI Technical Summary
The existing refrigerator intelligent question and answer system is difficult to understand and respond to functional questions expressed by users using non-professional terms, resulting in poor user experience. In addition, knowledge graph construction and question and answer pair matching suffer from high labor costs, difficulty in update and maintenance, and single knowledge and coverage. limitations and other shortcomings.
Adopt a professional knowledge interaction method based on large models, extract topic keywords from user interaction text through topic models and keyword extraction models, generate professional domain terms, and use generative large models to generate corresponding reply text data, combined with text matching models And prompt engineering words optimize answers, providing multiple responses for users to choose and confirm.
It achieves accurate understanding and efficient response to users' colloquial interactive content, provides an efficient, accurate and user-friendly professional knowledge interaction system, can respond to users' diverse inquiries, and reduces labor costs and maintenance difficulty.
Smart Images

Figure CN118798341A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a professional knowledge interaction method, system and refrigeration equipment based on a large model. Background Art
[0002] Refrigerators have become an indispensable part of modern families. They are not only used to refrigerate food and keep it fresh, but also interact with users through smart devices to enrich family life. However, when faced with users who are not familiar with professional terms, existing refrigerator intelligent question-and-answer systems often find it difficult to accurately understand and answer users' questions. For example, a user may ask about a specific function of a refrigerator in a non-professional way, but due to the lack of accurate expression of professional terms, it is difficult for the question-and-answer system to provide a satisfactory answer.
[0003] To address this problem, the current methods such as knowledge graph construction and question-answer pair matching have some effects, but they have disadvantages such as high labor costs, difficulty in updating and maintenance, single knowledge and limited coverage. These methods rely on pre-defined knowledge structures or manually organized question-answer pairs, which are difficult to cope with the diversity and changes in user inquiry methods, thus affecting user experience. Summary of the invention
[0004] The purpose of the present invention is to provide a professional knowledge interaction method, system and refrigeration equipment based on a large model.
[0005] The present invention provides a professional knowledge interaction method based on a large model, comprising the steps of:
[0006] Get user interaction text data;
[0007] Extracting topic keywords from the user interaction text data through a topic model;
[0008] When it is detected that the number of the subject keywords is less than the preset number, extracting the subject keywords of the user interaction text data through a keyword extraction model, and replenishing the number of the subject keywords to the preset number;
[0009] Generate professional field terms based on the subject keywords;
[0010] Reply text data corresponding to the user interaction text data is generated according to the professional field terms through a generative large model and outputted.
[0011] As a further improvement of the present invention, the extracting the topic keywords of the user interaction text data by the topic model further includes:
[0012] Detecting the length of the user interaction text data;
[0013] When the length of the user interaction text data is less than a preset length, extracting topic keywords of the user interaction text data by using the topic model;
[0014] When the length of the user interaction text data is less than a preset length, the main text data of the user interaction text data is first extracted by the summary extraction model, and the topic keywords of the main text data are extracted by the topic model.
[0015] As a further improvement of the present invention, before generating professional field terms based on the subject keywords, it also includes:
[0016] The topic keywords extracted by the topic model and the topic keywords extracted by the keyword extraction model are deduplicated.
[0017] As a further improvement of the present invention, the generating of professional field terms based on the subject keywords specifically includes:
[0018] The professional field terms with the highest matching degree with the subject keywords are calculated through the text matching model.
[0019] As a further improvement of the present invention, the generating of professional field terms based on the subject keywords specifically includes:
[0020] Combining the subject keywords with the user interaction text data to construct prompt engineering words;
[0021] The prompt engineering words are input into the big model, and the big model outputs professional field terms according to the prompt engineering words.
[0022] As a further improvement of the present invention, generating reply text data corresponding to the user interaction text data through a generative large model according to the professional field terminology specifically includes:
[0023] Combining the professional domain terms and the user interaction text data as input to a generative large model;
[0024] generating a plurality of reply text data related to the user interaction text data;
[0025] The reply text data are sorted according to the similarity, and several reply text data with the highest similarity are selected for output for selection and confirmation by the user.
[0026] As a further improvement of the present invention, the step of generating reply text data corresponding to the user interaction text data through a generative large model according to the professional field terms further includes:
[0027] Record each time the user selects and confirms, and statistically output the accuracy of the reply text data based on the user's selection and confirmation. When the accuracy reaches a preset standard, directly output the reply text data with the highest similarity.
[0028] As a further improvement of the present invention, the obtaining of user interaction text data specifically includes:
[0029] Collect user interaction text and voice data in real time;
[0030] The user interaction text voice data is transcribed into the user interaction text data.
[0031] The present invention also provides a professional knowledge interaction system, which includes:
[0032] A data acquisition module, which is configured to acquire user interaction text data;
[0033] A keyword acquisition module is configured to extract topic keywords of the user interaction text data through a topic model; when it is detected that the number of the topic keywords is less than a preset number, extract the topic keywords of the user interaction text data through a keyword extraction model, and supplement the number of the topic keywords to the preset number;
[0034] A professional field term generation module, which is configured to generate professional field terms based on the subject keywords;
[0035] A reply output module is configured to generate reply text data corresponding to the user interaction text data according to the professional field terms through a generative large model, and output the reply text data.
[0036] As a further improvement of the present invention, the keyword acquisition module is configured to detect the length of the user interaction text data; when the length of the user interaction text data is less than a preset length, the topic keywords of the user interaction text data are extracted through the topic model; when the length of the user interaction text data is less than a preset length, the main text data of the user interaction text data is first extracted through the summary extraction model, and the topic keywords of the main text data are extracted through the topic model.
[0037] The present invention also provides a refrigeration device, comprising:
[0038] at least one processor;
[0039] A memory storing a computer program executable on the processor, wherein the processor executes the steps of the above-mentioned large model-based professional knowledge interaction method when executing the program.
[0040] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned large model-based professional knowledge interaction method are performed.
[0041] The beneficial effect of the present invention is: this embodiment provides a professional knowledge interaction method based on a large model. By combining the use of a topic model and a keyword extraction model, it can effectively extract a sufficient number of topic keywords from a shorter user interaction text, and generate relevant professional field terms based on the topic keywords, so as to accurately understand and answer various colloquial interaction contents used in the user interaction process through professional field terms, and generate corresponding highly relevant reply contents according to professional field terms, thereby providing users with an efficient, accurate and user-friendly professional knowledge interaction system. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic diagram of the steps of a professional knowledge interaction method based on a large model in one embodiment of the present invention.
[0043] Figure 2 It is a system block diagram of a professional knowledge interaction method based on a large model in one embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in combination with the specific implementation methods of the present invention and the corresponding drawings. Obviously, the described implementation methods are only part of the implementation methods of the present invention, not all implementation methods. Based on the implementation methods of the present invention, all other implementation methods obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0045] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0046] This embodiment provides a professional knowledge interaction method based on a large model. By combining the use of a topic model and a keyword extraction model, this method can effectively extract a sufficient number of topic keywords from a shorter user interaction text, and generate relevant professional field terms based on the topic keywords, thereby accurately understanding and answering various spoken interaction contents used in the user interaction process through professional field terms, providing users with an efficient, accurate and user-friendly professional knowledge interaction system.
[0047] In this embodiment, the professional knowledge interaction method based on the large model is applied to the intelligent interaction system of the refrigerator. In other embodiments, the method can also be applied to other electronic devices.
[0048] like Figure 1 As shown, the professional knowledge interaction method based on the big model provided in this embodiment includes the steps of:
[0049] S1: Obtain user interaction text data.
[0050] S2: Extracting topic keywords of the user interaction text data through a topic model.
[0051] S3: When it is detected that the number of the subject keywords is less than the preset number, the subject keywords of the user interaction text data are extracted by a keyword extraction model, and the number of the subject keywords is supplemented to the preset number.
[0052] S4: Generate professional field terms based on the subject keywords.
[0053] S5: Generate reply text data corresponding to the user interaction text data through a generative big model according to the professional field terms, and output it.
[0054] In step S1, it specifically includes:
[0055] Collect user interaction text and voice data in real time; and transcribe the user interaction text and voice data into the user interaction text data.
[0056] Collecting user interactive text and voice data can be done through multiple channels, such as voice receivers, pickups, microphones, etc. installed in smart refrigerators, or real-time voice information can be collected through various devices such as mobile phones.
[0057] After acquiring the voice data, the user command voice data is processed, including noise reduction, echo removal, and reverberation. The collected real-time voice is subjected to noise reduction, background noise removal, and then echo removal and reverberation removal to improve the quality and clarity of the voice, thereby improving the accuracy of subsequent voice-to-text conversion. After completing the preprocessing of the user command voice data, the voice data is transcribed using a voice-to-text tool or model. Existing voice transcription tools and models can be used here.
[0058] In this embodiment, the user interaction content is mainly questions asked by users to the refrigerator. For example, a certain refrigerator has an "AI Smart Space" function, which can display all items stored in the refrigerator. If the user wants to know how to use this function, he may ask: "How do I use the smart space?" or "How do I use the function that can see everything?" etc. The user's questions are often expressed in a non-professional or colloquial way, and the system needs to accurately understand these inquiries and provide useful answers.
[0059] In step S2, it also includes:
[0060] S21: Detect the length of the user interaction text data.
[0061] S22: When the length of the user interaction text data is less than a preset length, extracting topic keywords of the user interaction text data through the topic model.
[0062] S23: When the length of the user interaction text data is less than a preset length, firstly extract the main text data of the user interaction text data through the summary extraction model, and then extract the topic keywords of the main text data through the topic model.
[0063] The length of the user interaction text is determined by quantitative analysis. When the length of the text data is less than the preset length, its content is relatively small. In this case, the short text may directly and compactly express the user's query or command, so the topic model can be directly applied to identify the core content of the text. For texts whose length exceeds the preset threshold, it means that the user's interaction content is relatively detailed and may contain some non-core information. In this case, the text is first reduced through the summary extraction model to extract the main text content, and then the topic model is applied to extract the topic keywords of the main text data. Redundant or irrelevant information can be filtered out first to ensure that the core and key information is accurately extracted from longer user input. Through the above steps, user interaction texts of different lengths can be flexibly processed to ensure the accuracy and efficiency of information extraction.
[0064] The summary extraction model can adopt models such as TextRank, Seq2Seq, and Transformer-based models.
[0065] When the text provided by the user is short or the information is insufficient, relying solely on the topic model may not be able to extract a sufficient number of topic keywords to accurately respond to user needs. Step S3 ensures that there is enough information to generate or retrieve accurate answers.
[0066] In step S3, after the topic keywords are extracted through the topic model, the number of extracted topic keywords will be calculated. If the number of topic keywords is lower than the preset threshold, it means that the extracted information may not be sufficient to fully understand the user's inquiry. At this time, the keyword extraction model will be further used to extract topic keywords from the text. The topic keywords supplemented by the keyword extraction model, together with the topic keywords originally extracted by the topic model, constitute a more complete set of topic keywords. The strategy of dynamically supplementing topic keywords effectively makes up for the shortcomings of a single model in topic keyword extraction and increases the accuracy of the system in capturing user intent. The topic model can understand the implicit topics of the text at a higher level, while the keyword extraction model can capture specific key information and concepts at a more detailed level.
[0067] For example, a user asks "How to use a smart space". First, the topic model is used to process this query, and the topic keyword "use" is extracted from it, which reflects that the user's intention is to understand how to use a certain function or space, but this topic keyword does not specify which specific function or space it is. Therefore, more information is needed to accurately understand the user's query. The preset number is set to 2, and then the keyword extraction model is used to further analyze the user's query, extract "smart space", and clarify the object of the user's query.
[0068] The topic model can use the LDA model or the NMF model, and the keyword extraction model can use the KeyBERT, TF-IDF model, etc.
[0069] Furthermore, after step S3, the method further includes:
[0070] The topic keywords extracted by the topic model and the keywords extracted by the keyword extraction model are deduplicated.
[0071] The deduplication method can be based on the text content of the subject keyword, that is, if the text of two subject keywords is exactly the same, only one is retained. When deduplicating, the weight or importance of the subject keyword can also be considered, and the subject keywords with high weights are retained first. The weight can be determined based on the frequency and position of the subject keyword in the original text, or its score in the subject keyword extraction model. Removing duplicate subject keywords can reduce the amount of calculation in subsequent processing steps and improve the system response speed.
[0072] In this embodiment, RAG Slot Extractor is used to parse the input text to extract relevant slots and keywords such as device features, user intent, and interaction scenarios. In addition to keywords, this class can also identify slot information related to specific fields in the text, such as device models, function names, etc. These slot information helps to accurately identify the specific needs of users. When the initial extracted keywords are insufficient, RAG Slot Extractor can further use the keyword extraction model to supplement the keywords to meet the preset quantity and quality standards. After the extraction is completed, RAG Slot Extractor outputs structured slot and keyword information, which is used for subsequent knowledge retrieval and response generation.
[0073] In step S4, it specifically includes:
[0074] The professional field terms with the highest matching degree with the subject keywords are calculated through the text matching model.
[0075] Match the topic keywords in the user's colloquial query with the pre-defined refrigerator professional vocabulary to accurately understand the user's intention. Convert the extracted topic keywords and refrigerator professional vocabulary into vectors, and calculate the cosine similarity between the topic keyword vector and each professional field term vector through the text matching model. Based on the similarity calculation results, select several professional terms that are most similar to the topic keywords in the user's query as professional field terms. The text similarity matching model is relatively simple and efficient, and can quickly find terms that match the user's query in a large-scale professional vocabulary library.
[0076] For example, "smart space" may have a high similarity with "intelligent space" and "constant temperature space".
[0077] Text matching models can use Word2Vec, GloVe, BERT and other models. Methods such as JaccardSimilarity and Euclidean Distance can also be used to calculate the similarity between topic keywords and professional field terms.
[0078] Furthermore, step S4 also includes: optimizing and updating the text matching model and the professional terminology library as more user interaction data is continuously accumulated, so as to improve the adaptability to the user's personal language habits and thus improve the accuracy of understanding.
[0079] In step S4, in addition to using the text matching model, a large model can also be used, which specifically includes:
[0080] The subject keywords and the user interaction text data are combined to construct prompt engineering words; the prompt engineering words are input into the big model, and the big model outputs professional field terms according to the prompt engineering words.
[0081] Combining the user interaction text and the extracted topic keywords to build a detailed prompt engineering word, the topic keywords and user interaction text can be formatted into a specific structure, for example: "Please generate refrigerator professional vocabulary based on the following text, the topic keywords or phrases according to the text semantics, the text format is {'text1':'text2'}", where "text1" represents the topic keywords in the user's question, and "text2" is expected to be the corresponding refrigerator professional vocabulary. Combine the above information into a detailed prompt to clearly guide the model's task.
[0082] The constructed prompt engineering words are input into a large language model pre-trained with relevant domain knowledge. The large model infers according to the instructions in the prompt engineering words and outputs refrigerator professional vocabulary that matches the input topic keywords semantically. By combining the user's original text and topic keywords to construct prompt engineering words, the large model can more accurately capture the user's query intent and generate more relevant professional terms or answers.
[0083] For example, the big model may infer professional terms such as "smart space" based on the context of "smart space" and "usage".
[0084] Through step S4, the user's non-professional expressions can be effectively bridged with relevant professional field terms, so as to accurately respond to various inquiries of the user.
[0085] In step S5, it specifically includes:
[0086] S51: Combining the professional domain terms and the user interaction text data as input of the generative large model.
[0087] S52: Generate a plurality of reply text data related to the user interaction text data.
[0088] S53: Sort the reply text data according to similarity, select several reply text data with the highest similarity and output them for the user to select and confirm.
[0089] First, the professional domain terms and the user interaction text data are combined to form a new input text. The knowledge text in the refrigerator field is retrieved using the retrieval enhancement generation technology. The retrieval enhancement generation technology combines the powerful language generation ability of the generative big model and the precise information matching ability of the retrieval technology. By retrieving relevant text information before answering, the generative big model can refer to these specific knowledge points when generating answers, thereby improving the accuracy and relevance of the answers.
[0090] During the search process, different knowledge base sets can be loaded according to the configuration file, such as detailed refrigerator model manuals, FAQ libraries, etc. The cross-domain search capability can find the most matching information in multiple knowledge fields based on the user's input, thus ensuring that the system can respond to the user's diverse inquiries.
[0091] After generating multiple possible reply text data, the question that best matches the user's intention is selected by calculating the similarity with the user's interactive text data. For example, the similarity between the interactive text data and the text vector of each generated reply text data can be calculated by using cosine similarity.
[0092] Before providing the final reply text to the user, an additional confirmation step is provided to ensure the accuracy of the system's understanding of the user's intention. If the user confirms that it is relevant content, the system will continue to provide the corresponding answer; if the user indicates that it is not, the system can choose to provide the second most similar question and answer, or re-ask the user for clearer instructions. The user does not only get the answer automatically generated by the machine, but also customized information that has been accurately matched and personally confirmed. This interactive process makes the user feel that the system is more intelligent, thereby improving the overall user experience.
[0093] In this embodiment, the user interaction text is a question posed to the smart refrigerator, so the reply text will include the corresponding standard question and its answer.
[0094] Furthermore, this embodiment also includes the steps of:
[0095] Record each time the user selects and confirms, and statistically output the accuracy of the reply text data based on the user's selection and confirmation. When the accuracy reaches a preset standard, directly output the reply text data with the highest similarity.
[0096] The above steps are used to monitor and analyze user feedback to improve the accuracy of interaction. Whenever the system presents interactive content to the user, the user's choice is recorded. The user's confirmation or negative feedback is recorded by the system and associated with the specific reply content. These records are used to calculate the accuracy of the answer, that is, the proportion of replies confirmed by users as correct to all replies provided. By tracking and analyzing this data over a long period of time, it is possible to identify which types of replies receive more user confirmation. A preset standard for accuracy is set. When the answer accuracy reaches this standard, it indicates that the system's response to user interaction is accurate enough. At this point, the system can choose to reduce or omit the user confirmation step in future interactions and directly provide the most similar reply to make the operation smoother and more natural, reducing the user's operating burden.
[0097] When the content is finally output, it can be directly output as text or converted into voice for output.
[0098] In this embodiment, the knowledge retriever is instantiated through the Knowledge Retriever class, the specified knowledge base is loaded and the embedding model is activated. This module can convert the natural language text input by the user into a vector representation and find the most similar knowledge fragment in the knowledge base. The knowledge retrieval module loads different knowledge base sets according to the configuration file, such as refrigerator model manuals or FAQs, to support cross-domain knowledge retrieval. The QAFilter class is used to filter the knowledge retrieval results to exclude irrelevant or low-quality content. The filtering mechanism includes regular expression-based text filtering and vector distance-based difference filtering.
[0099] Response generation is achieved through the RAG Responder class, which is responsible for coordinating the interaction between keyword extraction, knowledge retrieval, and the generative large model. The fastapi framework and Event Source Response are used to provide streaming and non-streaming response output to meet different user interaction requirements.
[0100] This embodiment provides a professional knowledge interaction method based on a large model. By combining the use of a topic model and a keyword extraction model, a sufficient number of topic keywords can be effectively extracted from a shorter user interaction text, and related professional field terms are generated based on the topic keywords, so that various colloquial interaction contents used in the user interaction process can be accurately understood and answered through professional field terms, and corresponding highly relevant reply contents are generated according to professional field terms, providing users with an efficient, accurate and user-friendly professional knowledge interaction system. This embodiment provides a professional knowledge interaction system, which includes:
[0101] The data acquisition module 1 is configured to acquire user interaction text data.
[0102] The keyword acquisition module 2 is configured to extract the topic keywords of the user interaction text data through the topic model; when it is detected that the number of the topic keywords is less than the preset number, the topic keywords of the user interaction text data are extracted through the keyword extraction model to supplement the number of the topic keywords to the preset number.
[0103] The professional field term generation module 3 is configured to generate professional field terms based on the subject keywords.
[0104] The reply output module 4 is configured to generate reply text data corresponding to the user interaction text data according to the professional field terms through a generative large model, and output the reply text data.
[0105] Furthermore, the keyword acquisition module 2 is configured to detect the length of the user interaction text data; when the length of the user interaction text data is less than a preset length, the topic keywords of the user interaction text data are extracted through the topic model; when the length of the user interaction text data is less than a preset length, the main text data of the user interaction text data is first extracted through the summary extraction model, and the topic keywords of the main text data are extracted through the topic model.
[0106] This embodiment also provides a refrigeration device, which includes:
[0107] at least one processor;
[0108] A memory storing a computer program executable on the processor, wherein the processor executes the steps of the above-mentioned large model-based professional knowledge interaction method when executing the program.
[0109] Exemplarily, the computer device may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned methods. It is understood that the memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache.By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The memory described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.
[0110] This embodiment also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device mentioned above. When the processor executes the computer program, it can execute the description of the above-mentioned large model-based professional knowledge interaction method, so it will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0111] In summary, this implementation achieves highly personalized processing of user-customized item label printing through multimodal information fusion and deep learning model. By extracting key information from the user's instructions and combining the user's geographic location and multimodal information, intelligent recognition and personalized printing of item label content are achieved, significantly improving the intelligence level of the system.
[0112] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
[0113] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. All equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.
Claims
1. A professional knowledge interaction method based on a large model, characterized in that: Includes steps: Get user interaction text data; Extracting topic keywords from the user interaction text data through a topic model; When it is detected that the number of the subject keywords is less than the preset number, extracting the subject keywords of the user interaction text data through a keyword extraction model, and replenishing the number of the subject keywords to the preset number; Generate professional field terms based on the subject keywords; Reply text data corresponding to the user interaction text data is generated according to the professional field terms through a generative large model and outputted.
2. The method for interactive professional knowledge based on a large model according to claim 1, characterized in that: The extracting of topic keywords from the user interaction text data by using a topic model also includes: Detecting the length of the user interaction text data; When the length of the user interaction text data is less than a preset length, extracting topic keywords of the user interaction text data by using the topic model; When the length of the user interaction text data is less than a preset length, the main text data of the user interaction text data is first extracted by the summary extraction model, and the topic keywords of the main text data are extracted by the topic model.
3. The method for interactive professional knowledge based on a large model according to claim 1, characterized in that: Before generating professional domain terms based on the keywords, it also includes: The topic keywords extracted by the topic model and the topic keywords extracted by the keyword extraction model are deduplicated.
4. The method for interactive professional knowledge based on a large model according to claim 1, characterized in that: The generating of professional field terms based on the subject keywords specifically includes: The professional field terms with the highest matching degree with the subject keywords are calculated through the text matching model.
5. The method for interactive professional knowledge based on a large model according to claim 1, characterized in that: The generating of professional field terms based on the subject keywords specifically includes: Combining the subject keywords with the user interaction text data to construct prompt engineering words; The prompt engineering words are input into the big model, and the big model outputs professional field terms according to the prompt engineering words.
6. The method for interactive professional knowledge based on a large model according to claim 1, characterized in that: The step of generating reply text data corresponding to the user interaction text data by using a generative large model according to the professional field terminology specifically includes: Combining the professional domain terms and the user interaction text data as input to a generative large model; generating a plurality of reply text data related to the user interaction text data; The reply text data are sorted according to the similarity, and a plurality of reply text data with the highest similarity are selected for output for selection and confirmation by the user.
7. The method for interactive professional knowledge based on a large model according to claim 6, characterized in that: The step of generating reply text data corresponding to the user interaction text data by using a generative large model according to the professional field terminology also includes: Record each time the user selects and confirms, and statistically output the accuracy of the reply text data based on the user's selection and confirmation. When the accuracy reaches a preset standard, directly output the reply text data with the highest similarity.
8. The method for interactive professional knowledge based on a large model according to claim 1, characterized in that: The obtaining of user interaction text data specifically includes: Collect user interaction text and voice data in real time; The user interaction text voice data is transcribed into the user interaction text data.
9. A professional knowledge interactive system, characterized in that: include: A data acquisition module, which is configured to acquire user interaction text data; A keyword acquisition module is configured to extract topic keywords of the user interaction text data through a topic model; when it is detected that the number of the topic keywords is less than a preset number, extract the topic keywords of the user interaction text data through a keyword extraction model, and supplement the number of the topic keywords to the preset number; A professional field term generation module, which is configured to generate professional field terms based on the subject keywords; A reply output module is configured to generate reply text data corresponding to the user interaction text data according to the professional field terms through a generative large model, and output the reply text data.
10. The professional knowledge interactive system according to claim 9, characterized in that: The keyword acquisition module is configured to detect the length of the user interaction text data; when the length of the user interaction text data is less than a preset length, the topic keywords of the user interaction text data are extracted through the topic model; when the length of the user interaction text data is less than a preset length, the main text data of the user interaction text data is first extracted through the summary extraction model, and the topic keywords of the main text data are extracted through the topic model.
11. A refrigeration device comprising: at least one processor; A memory storing a computer program executable on the processor, wherein the processor executes the steps of the large model-based professional knowledge interaction method as described in any one of claims 1 to 8 when executing the program.
Citation Information
Cited By
Medical term data alignment method and device, electronic equipment and storage medium
CN119670697A
