Display device, question and answer method and medium

By receiving questions in intelligent customer service and using large models to process text and non-text data in product instructions, reply information containing non-text data is directly generated, which solves the problem of low non-text data processing efficiency in the existing technology and improves Q&A. efficiency and user experience.

CN118760743APending Publication Date: 2024-10-11HISENSE GRP HLDG CO LTD

Patent Information

Application Number
CN202410702709.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In the existing technology, product intelligent customer service based on the RAG model requires pre-extraction and pre-processing when processing non-text data, resulting in a heavy workload and low question and answer efficiency.

Method used

With the cooperation of the processor and the display screen, the questions to be answered are received, the target text block and page number information are determined based on the pre-saved product manual content, and the questions to be answered, the target text block, page number information and prompt text are input into the large model to generate Contains summary text and response information from the target text, displaying non-textual data directly.

Benefits of technology

There is no need to pre-process non-text data, which improves the efficiency of question and answer, provides users with more comprehensive reference information, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760743A_ABST
    Figure CN118760743A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, in particular to display equipment, a question and answer method and a medium. The method comprises the following steps: determining a target product specification matched with a to-be-replied question, determining a part of matched contents in the target product specification as a target text block, and then determining page information of the target text block, so that the to-be-replied question, the target text block, the page information and a prompt text are input into a large model to obtain reply information; the summary text included in the reply information is the text obtained after the large model summarizes the target text block, the target original text is the original text corresponding to the page number information in the target product specification, reference information is provided for a user in multiple aspects, the user can know the product more conveniently, the large model obtains the content corresponding to the page number information, and the user experience is improved. Therefore, under the condition that the non-text data exists in the corresponding content, the non-text data can be directly displayed in the reply information, the non-text data in the specification does not need to be processed in advance, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a display device, a question-and-answer method, and a medium. Background Art

[0002] With the development of artificial intelligence, the application of product intelligent customer service is becoming more and more extensive. Product intelligent customer service generally responds based on product manual documents.

[0003] In the related art, intelligent customer service of products is generally implemented based on the Retrieval-Augmented Generation (RAG) model. For product manuals, pictures and table explanations are indispensable. In a manual, the proportion of pictures and tables may be greater than the proportion of text explanations, and the RAG model is generally unable to retrieve and process non-text data such as pictures and tables. If non-text data such as pictures and tables need to be displayed in the reply information, the related art needs to pre-extract the non-text data in the product manual when conducting questions and answers based on the RAG model, and pre-process the extracted non-text data and save them separately to facilitate subsequent retrieval and display operations, but this method has a large workload and low question and answer efficiency.

[0004] Therefore, how to display non-text data such as pictures and tables in the reply information without pre-processing the non-text data such as pictures and tables separately becomes an urgent problem to be solved. Summary of the invention

[0005] The embodiments of the present application provide a display device, a question-and-answer method, and a medium to solve the problems in the prior art of large workload for preprocessing non-text data and low question-and-answer efficiency.

[0006] In a first aspect, the present application provides a display device, including a processor and a display screen;

[0007] The processor is configured to execute: receiving a question to be answered, determining a target text block matching the question to be answered based on the content recorded in each pre-saved product manual, wherein the target text block is part of the content in the matching target product manual; determining the page number information of the target text block in the target product manual; inputting the question to be answered, the target text block, the page number information and the prompt text into the large model according to a set format to obtain answer information, wherein the answer information includes an overview text and a target original text, wherein the overview text is a text obtained by the large model summarizing the target text block according to the question to be answered, and the target original text is the content corresponding to the page number information in the target product manual, and the target original text includes text data and / or non-text data;

[0008] The display screen is configured to execute: displaying the reply information.

[0009] In a second aspect, the present application provides a question-answering method, the method comprising:

[0010] Receive the question to be answered, and determine a target text block matching the question to be answered based on the content recorded in each pre-saved product manual, where the target text block is part of the content in the matching target product manual;

[0011] Determine the page number information of the target text block in the target product manual;

[0012] The question to be answered, the target text block, the page number information and the prompt text are input into the big model according to the set format to obtain the answer information, wherein the answer information includes the summary text and the target original text. The summary text is the text obtained by the big model after summarizing the target text block according to the question to be answered, and the target original text is the content corresponding to the page number information in the target product manual, and the target original text includes text data and / or non-text data.

[0013] In a third aspect, the present application further provides an electronic device, comprising a processor, wherein the processor is configured to implement the steps of any of the above-described question-and-answer methods when executing a computer program stored in a memory.

[0014] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned question-and-answer methods.

[0015] Because in the embodiment of the present application, when question and answer is conducted based on the big model, the target product manual matching the question to be answered is determined according to the content recorded in each product manual saved in advance, the matching part of the content in the target product manual is determined as the target text block, and then the page number information of the target text block in the target product manual is determined, so that the question to be answered, the target text block, the page number information and the prompt text are input into the big model according to the set format to obtain the reply information, the summary text included in the reply information is the text obtained after the big model summarizes the target text block, and the target original text is the original text corresponding to the page number information in the target product manual, which provides reference information for users in many aspects and makes it more convenient for users to understand the product, and by inputting the page number information of the target text block matching the question to be answered into the big model, the big model obtains the content corresponding to the page number information, so that when there is non-text data in the corresponding content, the non-text data can also be directly displayed in the reply information, without the need to process the non-text data in the manual in advance, thereby improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solution 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 only 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.

[0017] Figure 1 A schematic diagram of a question-and-answer application scenario provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of another question-and-answer application scenario provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of the structure of a display device provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of a process for determining page number information provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a question-answering process based on a large model provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of a reply information effect provided in an embodiment of the present application;

[0023] Figure 7 A flowchart of a question-and-answer process provided in an embodiment of the present application;

[0024] Figure 8A schematic diagram of the structure of a question-and-answer device provided in an embodiment of the present application;

[0025] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the embodiment of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.

[0027] A product manual is a detailed document that introduces and explains the functions, performance, usage, safety precautions, maintenance and other information of a specific product. A product manual usually includes product specifications, a list of accessories, instructions for use, precautions, warranty terms, etc., to help users understand how to properly use and maintain the product. Product manuals provide important reference information for consumers when purchasing and using products. The characteristics of a product manual mainly include the following parts:

[0028] Cover: instruction manual title, product model, etc.

[0029] Introduction: Important information statement, such as copyright, notices, etc.

[0030] Contents: Page information.

[0031] Headings: Hierarchical headings, where the largest heading has an index.

[0032] Content: The content under each title, including pictures and text explanations.

[0033] Product manuals generally include a lot of content. For example, a car manual may include dozens or even hundreds of pages of content. If a user manually flips through the product manual to find a solution to a problem, it may take a lot of time, resulting in a poor user experience. Therefore, in order to improve the user experience, the embodiment of the present application provides a display device. When a user enters a solution to a problem that needs to be queried for a product, the user can send a question to be answered to the display device and wait for the display device to display the answer information. Specifically, in a display device, a question-and-answer method, and a medium provided by an embodiment of the present application, the display device includes a processor and a display screen; the processor is configured to execute: receiving a question to be answered, and determining a target text block that matches the question to be answered based on the content recorded in each product manual saved in advance, wherein the target text block is part of the content in the matching target product manual; determining the page number information of the target text block in the target product manual; inputting the question to be answered, the target text block, the page number information, and the prompt text into the large model according to the set format to obtain reply information, wherein the reply information includes an overview text and a target original text, wherein the overview text is the text obtained after the large model summarizes the target text block according to the question to be answered, and the target original text is the content corresponding to the page number information in the target product manual, and the target original text includes text data and / or non-text data; the display screen is configured to execute: displaying the reply information.

[0034] Generally speaking, users' questions about products involve their own knowledge of product usage, features, etc. Therefore, by searching for target text blocks in the product manual that match the questions to be answered, relevant knowledge of the product is injected into the large model, allowing the large model to summarize the target text blocks with its own powerful language analysis capabilities to generate more accurate answers. In addition, non-text data, such as picture explanations, are indispensable for product manuals. In a product manual, the proportion of non-text data such as pictures and tables may be greater than the proportion of text explanations. In order to enhance the user experience, the embodiment of the present application uses the instruction document knowledge base and directory retrieval to provide users with the location information of the document where the question is located, which facilitates users to locate and view the original text. The following describes a display device, question-and-answer method, and medium provided in the embodiment of the present application in combination with each embodiment.

[0035] During the question-and-answer process, the user may send a question to be answered to the display device. For example, the question to be answered may be sent by the user in text or voice. Figure 1 A schematic diagram of a question-and-answer application scenario provided in an embodiment of the present application is shown in FIG. Figure 1As shown, the display device 100 may be a smart phone, and the user may directly input the question to be answered into the display device 100. After receiving the question to be answered, the display device 100 may display the received question to be answered on the display screen of the display device 100 for the convenience of the user to view, as shown in FIG. Figure 1 As shown, the question “Why is my speaker not making any sound?” displayed on the display screen is the question to be answered input by the user. After receiving the question to be answered, the display device 100 performs some question-answering processing based on the processor, obtains the answer information of the question to be answered, and displays it on the display screen of the display device 100. How the processor determines the answer information of the question to be answered will be described in conjunction with the following embodiments. Figure 1 As shown, the display screen displays "Please check whether the speaker is powered on normally? Please check whether the speaker is connected to the Internet normally? If the above content cannot solve your problem, you can refer to the content recorded on page 58 of the manual..." which is the reply message.

[0036] Figure 2 Another question-and-answer application scenario diagram provided in the embodiment of the present application is as follows: Figure 2 As shown, the display device 100 may be a television, and the user may control the display device through the control device 200, and the control device 200 may be a remote controller, and the communication between the remote controller and the display device 200 may include infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 100 may be controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.

[0037] It should be noted that the display device provided in the present application is not limited to the above examples, and technicians in this field can configure the type of display device and the application scenario of the display device as needed.

[0038] The process of determining the answer information of the question to be answered will be described below in conjunction with various embodiments. Figure 3 This is a schematic diagram of the structure of a display device provided in an embodiment of the present application. The display device 100 includes a processor 101 and a display screen 102.

[0039] The processor 101 is configured to execute: receiving a question to be answered, determining a target text block matching the question to be answered based on the content recorded in each product manual saved in advance, wherein the target text block is part of the content in the matching target product manual; determining the page number information of the target text block in the target product manual; inputting the question to be answered, the target text block, the page number information and the prompt text into the large model according to a set format to obtain answer information, wherein the answer information includes an overview text and a target original text, wherein the overview text is a text obtained after the large model summarizes the target text block according to the question to be answered, and the target original text is the content corresponding to the page number information in the target product manual, and the target original text includes text data and / or non-text data;

[0040] The display screen 102 is configured to execute: displaying the reply information.

[0041] In order to better understand the performance of the product, the user can send questions to be answered to the display device 100 when the user needs to determine the solution to some problems of the product. After receiving the questions to be answered, the processor 101 of the display device 100 can generate answer information for the questions to be answered using the large model.

[0042] In order to enable the big model to accurately determine the answer information corresponding to the question to be answered, in an embodiment of the present application, when conducting questions and answers, the content related to the question to be answered can be retrieved from each pre-saved product manual, and these related contents can be used as input for the big model.

[0043] In an embodiment of the present application, a target text block that matches the question to be answered can be determined based on the content recorded in each pre-saved product manual, and the target text block is part of the content in the matching target product manual. Among them, "matching" can be understood as text with a high degree of similarity to the question to be answered. Among them, the question to be answered is the question raised by the user, and the question to be answered can be input in the form of text, audio, picture, etc. If it is input in the form of a picture, the acquired picture can be image processed to obtain the text included in the picture, and the text is determined as the question to be answered. It should be noted that the question to be answered can be directly input by the user of the display device, or it can be input by the user of other electronic devices to other display devices held by the user, and then sent to the display device by the other electronic devices. The embodiment of the present application does not limit the method of obtaining the question to be answered, and technicians in this field can configure it as needed.

[0044] In one possible implementation, the similarity between the question to be answered and each paragraph or chapter in each product manual may be determined respectively, and the paragraph or chapter with the highest similarity may be determined as the target text block matching the question to be answered.

[0045] Since product manuals are long and include many natural paragraphs or chapters, it is inefficient to determine the similarity one by one. Therefore, in one possible implementation, the similarity between the question to be answered and the document title of each product manual can be determined, and a portion of the candidate product manuals that may be involved in the question to be answered can be first screened out, and then the similarity between each natural paragraph or chapter in the candidate product manual and the question to be answered can be determined separately. The one or several natural paragraphs or chapters with the highest similarity are determined as the target text blocks that match the question to be answered.

[0046] Large models are generally unable to process non-text data such as pictures and tables in documents. Of course, the non-text data can also be audio or video, etc. However, the proportion of non-text data in product manuals is generally large and relatively intuitive, and it is impossible to achieve a friendly effect by relying solely on text questions and answers. The embodiment of the present application adopts a method of locating the original document to present the original document where the question is located to the user. The purpose of directory retrieval is to be able to recall the page number information where the relevant text block is located in the product manual, which is convenient for post-processing of the original document location. In the embodiment of the present application, the processor 101 can determine the page number information of the target text block in the target product manual. Since the page of the target text block in the target product manual is known, and the page number information is generally located at the header or footer of the page, therefore, after determining the target text block, the header and footer of the page where the target text block is located can be identified to determine the page number information.

[0047] Of course, those skilled in the art may also use other methods for determining page number information to determine the page information of the target text block in the target product specification.

[0048] After obtaining the page number information, the processor 101 can determine the answer information of the question to be answered based on the powerful analysis ability of the large model. In an embodiment of the present application, the information to be answered, the target text block, the page number information and the prompt text can be input into the large model according to the set format to obtain the answer information output by the large model. The prompt text is input into the large model to prompt the large model to summarize and analyze the target text block according to the question to be answered to obtain the overview text, and display the content corresponding to the page number information in the target product manual. In other words, the answer information output by the large model includes the overview text and the target original text. When the page corresponding to the page number information includes non-text data, the target original text includes non-text data. Among them, the large model can be any large model with semantic analysis capabilities, and the large model can be a large language model, a multimodal large model, etc.

[0049] After determining the answer information of the question to be answered, the processor 101 can control the display screen 102 to display the answer information.

[0050] Because in the embodiment of the present application, when question and answer is conducted based on the big model, the target product manual matching the question to be answered is determined according to the content recorded in each product manual saved in advance, the matching part of the content in the target product manual is determined as the target text block, and then the page number information of the target text block in the target product manual is determined, so that the question to be answered, the target text block, the page number information and the prompt text are input into the big model according to the set format to obtain the reply information, the summary text included in the reply information is the text obtained after the big model summarizes the target text block, and the target original text is the original text corresponding to the page number information in the target product manual, which provides reference information for users in many aspects and makes it more convenient for users to understand the product, and by inputting the page number information of the target text block matching the question to be answered into the big model, the big model obtains the content corresponding to the page number information, so that when there is non-text data in the corresponding content, the non-text data can also be directly displayed in the reply information, without the need to process the non-text data in the manual in advance, thereby improving efficiency.

[0051] In order to further improve the question-answering efficiency, based on the above embodiment, in the embodiment of the present application, the processor 101 is specifically configured to execute:

[0052] Determine a target product specification that matches the question to be answered based on the similarity between the key information of each pre-saved product specification and the question to be answered;

[0053] According to the content recorded in the target product manual, a target text block matching the question to be answered is determined.

[0054] In order to improve the efficiency of determining the target text block and reduce the amount of calculation, in the embodiment of the present application, when determining the target text block matching the question to be answered, the target product specification matching the question to be answered can be determined based on the similarity between the key information of each product specification saved in advance and the question to be answered. In other words, the target product specifications related to the question to be answered are first screened out.

[0055] The key information of each product manual is predetermined. After obtaining any product manual, the product manual may be preprocessed. The processor 101 is further configured to perform, determining the key information of any product manual in the following manner:

[0056] Keyword extraction is performed on the product manual to obtain key information, where the key information includes at least one of a document title, a product name, and a product model.

[0057] Generally, product manual documents are in PDF or Word format. In order to facilitate subsequent retrieval, the obtained product manual document can be converted into a set format, such as markdown format or txt format, to ensure that the catalog, title, subtitle, etc. of the product manual are presented in a regular form. In an embodiment of the present application, keywords can be extracted from the product manual after format conversion to obtain key information. The key information may include at least one of the document title, product name, and product model. The key information can be stored as metadata. In order to facilitate the subsequent determination of similarity, the feature vector of the key information can be determined using an embedding model and then saved.

[0058] When searching, the title, product name, product model and other data of the product manual document can be used to assist text search, help filter out irrelevant product manuals, and improve search efficiency and accuracy. In the vector database, some keywords can be used as metadata for auxiliary search.

[0059] After the target product specification is determined, the target text block matching the question to be answered can be determined based on the content recorded in the target product specification. In other words, the target text block related to the question to be answered is determined in the screened target product specification.

[0060] Specifically, the similarity between each natural paragraph in the target product manual and the question to be answered may be determined respectively, and one or more target natural paragraphs with the highest similarity may be determined as the target text block.

[0061] In order to improve the accuracy of question and answer, based on the above embodiments, in the embodiment of the present application, the processor 101 is specifically configured to execute:

[0062] Obtain each text block pre-saved for the target product specification;

[0063] Determining the target relevance score of the question to be answered and each text block respectively;

[0064] According to each of the target relevance scores, a target text block matching the question to be answered is determined.

[0065] Since the display device can directly process feature vectors instead of text, the subsequent determination of similarity is generally based on feature vectors. The embedding model used to determine feature vectors has a fixed input sequence length. Even if the input context window is large, the vectors of a sentence or several sentences can better represent their semantic meaning than the vectors of several pages of text. Therefore, in the embodiment of the present application, when preprocessing each product manual, each product manual can be divided into blocks, that is, the product manual is split into text blocks of a certain size, and each text block will not lose its meaning.

[0066] In the embodiment of the present application, when segmenting the product manual, firstly, the input (Token) restriction of the embedding model may be considered, and secondly, the influence of semantic integrity on the overall retrieval effect may be considered.

[0067] In a possible implementation, the product manual may be segmented into individual sentences, that is, segmented at the granularity of a sentence to retain the complete semantics of a sentence.

[0068] In one possible implementation, the product manual can be segmented according to a fixed length. The text can be segmented into fixed lengths, such as 256 or 512 tokens, according to the token length limit of the embedding model. Segmentation according to a fixed length will lose semantic information. For example, the answer to a question has 1-5 steps. If steps 1-3 are distributed in one text block, and steps 4-5 are distributed in the next text block, that is, the 5 steps are divided into two parts, when searching and recalling, only the text blocks where steps 1-3 are located may be recalled, and the content of steps 4-5 will be lost. To solve this problem, in an embodiment of the present application, a certain amount of redundancy is added to each text block to alleviate it. For example, a product manual is segmented according to 512 tokens. Except for the first text block, each text block has an overlap of 250 tokens with the previous text block. In this way, adding overlapping semantic information between text blocks can facilitate the retrieval and recall of two consecutive text blocks and ensure semantic integrity.

[0069] In the embodiment of the present application, in order to ensure good semantics and question-answering effects, when preprocessing the product manual, it can be segmented according to the title in the directory, which is convenient for subsequent determination of page number information, and it is necessary to ensure that the segmented text block does not exceed the Token limit of the embedding model, that is, it does not exceed the length threshold. Therefore, when segmenting the target product manual to obtain a text block, it can be segmented based on the directory title of the product manual to be segmented. After obtaining each candidate text block, it is determined whether each candidate text block exceeds the Token limit, that is, whether each candidate text block exceeds the length threshold. If not, the candidate text block is saved corresponding to the product manual to be segmented. If so, the candidate text block is further segmented, and the candidate text block is segmented according to a fixed length and saved corresponding to the product manual to be segmented. The fixed length is less than the length threshold. In order to facilitate subsequent retrieval and management, when saving each text block, the title of this block can be added to each text block, that is, the title of the chapter to which the text block belongs is saved synchronously.

[0070] When determining the target text block that matches the question to be answered based on the content recorded in the target product manual, each text block pre-saved for the target product manual can be obtained. Taking into account the characteristics of product Q&A, when a user asks a question, for example, the question to be answered is "How can a conference screen be connected to multiple screens at the same time for projection?" The question to be answered can first be embedded in a model to generate a feature vector of the question to be answered, and then the feature vector of the metadata can be indexed based on the feature vector of the question to be answered, the top-k metadata can be recalled, and then the product manual corresponding to the metadata can be obtained, and the product manual can be determined as the target product manual. Subsequently, the various text blocks saved for the target product manual can be obtained. This retrieval method helps to reduce the retrieval space and improve retrieval efficiency.

[0071] After obtaining each text block, the target relevance score between the question to be answered and each text block can be calculated respectively. In the embodiment of the present application, the similarity between the question to be answered and each text block can be calculated, and the similarity is used as the target relevance score.

[0072] After obtaining each target relevance score, the target text block that matches the question to be answered can be determined based on each target relevance score. Specifically, the text block with the highest target relevance score can be determined as the target text block, and the text block with a target relevance score greater than a set threshold can be determined as the target text block. In other words, the target text block can be one or more.

[0073] In order to improve the efficiency of target text block retrieval, based on the above embodiments, in the embodiment of the present application, each text block can be converted into a feature vector and saved. In the embodiment of the present application, an embedding model can be used to convert text into a feature vector. Exemplarily, the embedding model can be a pre-trained language model, such as bge-large or E5 embedding series, so that it can be effectively recognized and retrieved in the vector space. Finally, these feature vectors are stored in a specially designed vector database, such as FAISS or Chroma.

[0074] In the embodiment of the present application, in order to facilitate the subsequent search for source files, the source files of the product manual can be stored in a file database. Specifically, they can be stored in the following format:

[0075]

[0076] The following describes the process of determining the page number information in conjunction with a specific embodiment. Figure 4 A schematic diagram of a process for determining page number information provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, after the target text block is determined, the metadata corresponding to the target product manual to which the target text block belongs is obtained, and the document title is obtained from the metadata, that is, the document name of the target product manual is obtained. And the document directory is found in the file database according to the document name. Get the title saved in advance for the target text block. Input the prompt text, document name, document directory and title corresponding to the target text block into the big model, and the big model determines the page number information corresponding to the target text block. It should be noted that the big model used to determine the page number information can be the same as or different from the big model used for question and answer. Exemplarily, the input of the big model can be in the following format:

[0077] Please find the page number corresponding to the title in the document based on the following title.

[0078] Document name: *** model conference screen user manual

[0079] Directory: {document directory}

[0080] Title: 2.1.1 Multi-screen projection

[0081] Answer format: {Document name:

[0082] page number:}

[0083] For example, after receiving the above input content, the large model can output the following page number information:

[0084] {

[0085] Document name: *** model conference screen manual

[0086] Page number: 12 pages

[0087] }

[0088] In order to further improve the accuracy of question and answer, based on the above embodiments, in the embodiment of the present application, the processor 101 is specifically configured to execute:

[0089] For each text block, determine the title of the chapter to which the text block belongs, and a first correlation score between the question to be answered and the title; determine a second correlation score between the question to be answered and the content included in the text block; and determine the target correlation score based on the first correlation score and the second correlation score.

[0090] Although each text block in the retrieved target product manual is a context related to the question to be answered, the semantic relevance of these contexts to the question to be answered may be different. Therefore, in order to further improve the accuracy of question answering, when determining the target relevance score between the question to be answered and each text block, the relevance can be determined more accurately by combining the title of the question to be answered and each text block, as well as the specific content of the text block.

[0091] Assume that when the user asks "How to project the conference screen to multiple screens?", the title of a recalled text block is "2.1 Joint projection of multiple screens", then the text block is likely to describe the method of multi-screen projection. The title of the manual is generally short and highly summarizes the central content of the title. In an embodiment of the present application, the title of the chapter to which the text block belongs can be determined for each text block of the target product manual. The title of the chapter to which the text block belongs can be pre-saved or determined by identifying the original text when conducting a question and answer session. After determining the title of the chapter to which the text block belongs, the first correlation score between the question to be answered and the title of the text block can be determined. Optionally, the first correlation score can be accurately calculated using cosine similarity. The cosine similarity calculation between the question to be answered and the title of the text block is more representative. The larger the value, the more relevant the question to be answered is to the title. Specifically, the first correlation score can be calculated based on the following formula:

[0092]

[0093] Among them, A represents the feature vector of the question to be answered; B represents the feature vector of the title; cos(A,B) represents the first correlation score between the question to be answered and the title.

[0094] While determining the first relevance score, a second relevance score between the question to be answered and the content included in the text block can also be determined, that is, the similarity between the question to be answered and the content described in the text block is determined.

[0095] After the first correlation score and the second correlation score are determined, a target correlation score may be determined according to the first correlation score and the second correlation score.

[0096] Specifically, the sum of the first correlation score and the second correlation score may be determined as the target correlation score. Alternatively, the first correlation score and the second correlation score may be weighted and summed to determine the target correlation score.

[0097] In order to further improve the accuracy of question and answer, based on the above embodiments, in the embodiment of the present application, the processor 101 is specifically configured to execute:

[0098] Performing morpheme analysis on the question to be answered to obtain each morpheme included in the question to be answered;

[0099] For each morpheme, a first number of text blocks pre-saved for the product manual to which the text block belongs and a second number of text blocks in the product manual to which the text block belongs that contain the morpheme are counted, and a weight of the morpheme is determined according to the first number and the second number; an occurrence frequency of the morpheme in the text block of the product manual to which the text block belongs is counted; and a third relevance score is determined according to the occurrence frequency, the length of the content of the text block, the average length of the content of the text block of the product manual to which the text block belongs, and a preset adjustment factor;

[0100] The second relevance score is determined according to the weight of each morpheme and the corresponding third relevance score.

[0101] In the embodiment of the present application, when determining the second relevance score, the question to be answered may be subjected to morpheme analysis to obtain each morpheme included in the question to be answered. It should be noted that how to perform morpheme analysis is a prior art, and the embodiment of the present application will not be described in detail.

[0102] After obtaining each morpheme included in the question to be answered, the second correlation score between the question to be answered and the text block can be determined according to the weight of each morpheme and the third correlation score between each morpheme and the text block.

[0103] In an embodiment of the present application, a first number of text blocks pre-stored for the product manual to which the text block belongs can be counted. And for any morpheme, a second number of text blocks containing the morpheme in the product manual to which the text block belongs can be counted, so as to determine the weight of the morpheme based on the first number and the second number. Specifically, the weight of any morpheme can be determined based on the following formula:

[0104]

[0105] Among them, W i represents the weight of the i-th morpheme in the question to be answered; N represents the first quantity; n(q i ) represents the second quantity.

[0106] In the embodiment of the present application, when determining the third relevance score of any morpheme, the frequency of occurrence of the morpheme in the text block of the product manual to which the text block belongs can be counted. The third relevance score is determined based on the frequency of occurrence, the length of the content of the text block, the average length of the content of the text block of the product manual to which the text block belongs, and a preset adjustment factor. Specifically, the third relevance score can be determined based on the following formula:

[0107]

[0108] Among them, q i represents the i-th morpheme in the question to be answered; d represents a document block; R(q i ,d) represents the third correlation score between the i-th morpheme in the question to be answered and the text block d; f i represents the frequency of occurrence of the i-th morpheme in the question to be answered in the text block of the product manual to which the text block d belongs; k 1 and b represent the adjustment factor, k 1 The values ​​of k and b are usually set empirically, for example, 1 =1, b = 0.75, k 1 The value range of can be [1.2, 2], the value range of b can be [0, 1]; dl represents the length of the content of text block d; avgdl represents the average length of the content of all text blocks of the product manual to which text block d belongs.

[0109] In the embodiment of the present application, after the weight of each morpheme and the third relevance score corresponding to each morpheme are determined, the second relevance score can be determined according to the weight of each morpheme and the corresponding third relevance score.

[0110] Specifically, the third relevance score corresponding to each morpheme may be weighted and summed to obtain a target relevance score between the question to be answered and the text block.

[0111] In order to further improve the accuracy of question and answer, based on the above embodiments, in the embodiment of the present application, the processor 101 is specifically configured to execute:

[0112] For each morpheme, determine a first product value of the weight of the morpheme and the corresponding third relevance score; determine a fourth relevance score of the morpheme according to the first product value, the first relevance score and a preset weight;

[0113] The target relevance score is determined based on the fourth relevance score of each morpheme.

[0114] In the embodiment of the present application, when determining the target relevance score, for each morpheme in the question to be answered, a first product value of the morpheme weight and the corresponding third relevance score can be determined. Then, based on the first product value, the first relevance score and the preset weight, the fourth relevance score of the morpheme is determined.

[0115] After the fourth relevance score corresponding to each morpheme is obtained, the target relevance score can be determined according to the fourth relevance score of each morpheme.

[0116] Specifically, the target relevance score can be determined based on the following formula:

[0117]

[0118] Where Q represents the question to be answered; d represents the text block d; Score(Q, d) represents the target relevance score between the question to be answered and the text block d; n represents the number of morphemes included in the question to be answered; α represents the preset weight; cos(A, B) represents the first relevance score between the question to be answered and the title of the chapter to which the text block d belongs; W i R(q i ,d) represents the third relevance score between the i-th morpheme in the question to be answered and the text block d.

[0119] The following is a specific example to illustrate the question-answering process based on a large model. Figure 5 A schematic diagram of a question-answering process based on a large model provided in an embodiment of the present application is shown in FIG. Figure 5As shown, after receiving the user's question input question, the question to be answered question is input into the embedding model to obtain a question vector, which is the feature vector of the question to be answered. Determine the similarity between the feature vector of the question to be answered and the feature vector of the metadata of each product manual saved in advance, and select the top-k metadata as the retrieval recall according to each determined similarity, and determine the product manual corresponding to the top-k metadata as the target product manual. Obtain m text blocks saved for the target product manual. Calculate the similarity between the content of the records in the m text blocks and the question to be answered respectively, and use the top-N text blocks as retrieval recall according to the similarity. Use the retrieval evaluator to calculate the target relevance score between the N text blocks and the question to be answered, so as to determine whether each text block is relevant to the question to be answered according to the target relevance score. If not relevant, the irrelevant text block is discarded. For example, if it is determined that text block m is irrelevant to the question to be answered, the text block m is deleted. If relevant, the relevant text blocks are determined as target text blocks. For example, if it is determined that text block 1 and text block 2 are relevant to the question to be answered, then text block 1 and text block 2 can be determined as target text blocks.

[0120] In order to display the specific content of the page in the reply information, after determining the target text block, the page number information of the target text block and the connection to the storage location of the target product manual where the target text block is located are searched through the directory index. How to determine the page number information and the storage location of the target product manual have been described in detail in the above embodiment, and will not be repeated in the embodiment of this application.

[0121] The prompt text, context knowledge (ie, target text block), question (ie, question to be answered) and page number information are input into the Large Language Model (LLM) according to a preset format.

[0122] For example, the input of LLM may include the following:

[0123] Please answer based on the following content. If you cannot answer, do not make it up, just answer "I don't know".

[0124] Context: {Knowledge}

[0125] Question: How can the conference screen connect to multiple screens for projection at the same time?

[0126] Position: {Document Name:

[0127] Document Link:

[0128] page number:}

[0129] Answer:

[0130] After receiving the above input, LLM can generate answer information for the questions to be answered. The combination of the retrieval mechanism and the big model can enhance the big model's ability to respond to professional knowledge by generating appropriate answers using the big model. Figure 6 A schematic diagram of a reply information effect provided in an embodiment of the present application, such as Figure 6 As shown, the question to be answered input by the user is "How to project the conference screen to multiple screens?", and the answer information output by the large model is: Through a projector and multiple screens: You can use a main screen (such as a computer, smartphone or tablet) to connect to the projector, and then project the content to other screens through an HDMI cable or wireless projection technology (such as Miracast, AirPlay, Chromecast, etc.). For details, please refer to pages 10 and 11 of the "XXX Conference Screen Manual", as shown on the right. In the above reply information, the relevant content "Through a projector and multiple screens: You can use a main screen (such as a computer, smartphone or tablet) to connect to the projector, and then project the content to other screens through an HDMI cable or wireless projection technology (such as Miracast, AirPlay, Chromecast, etc.)" can be understood as the summary text, that is, the summary text is the text obtained by the large model after summarizing the target text block based on its own powerful analysis capabilities. Figure 6 The right side (left and right in the figure) is the target original text. The reply message "Please refer to page 10 and 11 of the "XXX Conference Screen Manual" as shown on the right" can be understood as a friendly reply made by the model through analysis, making the entire reply message look smoother and easier to understand. Figure 6 It can be seen that when the large model responds to questions to be answered, it not only gives an overview text description, but also displays the content on the specific pages involved in the instructions, which improves the friendliness of the interaction.

[0131] The display device provided in the embodiment of the present application can utilize additional domain knowledge during the question-and-answer process to enhance the professionalism of the large model in answering questions about product functions, and can support locating the position of questions in the product manual based on the characteristics of the product manual, thereby improving the product's question-and-answer effect.

[0132] Based on the same inventive concept, the embodiment of the present application also provides a question-answering method. Figure 7 A flowchart of a question-and-answer process provided in an embodiment of the present application, the process includes the following steps:

[0133] S701: Receive a question to be answered, and determine a target text block that matches the question to be answered based on the content recorded in each pre-saved product manual, where the target text block is part of the content in the matching target product manual.

[0134] The question-and-answer method provided in this application is applied to an electronic device, which may be a server, a PC, a mobile terminal, etc.

[0135] S702: Determine the page number information of the target text block in the target product specification.

[0136] S703: Input the question to be answered, the target text block, the page number information and the prompt text into the big model according to the set format to obtain the answer information, wherein the answer information includes the summary text and the target original text. The summary text is the text obtained by the big model after summarizing the target text block according to the question to be answered, and the target original text is the content corresponding to the page number information in the target product manual, and the target original text includes text data and / or non-text data.

[0137] In a possible implementation manner, determining the target text block matching the question to be answered based on the content recorded in each pre-saved product manual includes:

[0138] Determine a target product specification that matches the question to be answered based on the similarity between the key information of each pre-saved product specification and the question to be answered;

[0139] According to the content recorded in the target product manual, a target text block matching the question to be answered is determined.

[0140] In a possible implementation, the process of determining the key information of any product specification includes:

[0141] Keyword extraction is performed on the product manual to obtain key information, where the key information includes at least one of a document title, a product name, and a product model.

[0142] In a possible implementation manner, determining the target text block matching the question to be answered based on the content recorded in the target product specification includes:

[0143] Obtain each text block pre-saved for the target product specification;

[0144] Determining the target relevance score of the question to be answered and each text block respectively;

[0145] According to each of the target relevance scores, a target text block matching the question to be answered is determined.

[0146] In a possible implementation, respectively determining the target relevance score of the question to be answered and each text block includes:

[0147] For each text block, determine the title of the chapter to which the text block belongs, and a first correlation score between the question to be answered and the title; determine a second correlation score between the question to be answered and the content included in the text block; and determine the target correlation score based on the first correlation score and the second correlation score.

[0148] In a possible implementation, determining a second relevance score between the question to be answered and the content included in the text block includes:

[0149] Performing morpheme analysis on the question to be answered to obtain each morpheme included in the question to be answered;

[0150] For each morpheme, a first number of text blocks pre-saved for the product manual to which the text block belongs and a second number of text blocks in the product manual to which the text block belongs that contain the morpheme are counted, and a weight of the morpheme is determined according to the first number and the second number; an occurrence frequency of the morpheme in the text block of the product manual to which the text block belongs is counted; and a third relevance score is determined according to the occurrence frequency, the length of the content of the text block, the average length of the content of the text block of the product manual to which the text block belongs, and a preset adjustment factor;

[0151] The second relevance score is determined according to the weight of each morpheme and the corresponding third relevance score.

[0152] In a possible implementation, determining the target relevance score according to the first relevance score and the second relevance score includes:

[0153] For each morpheme, determine a first product value of the weight of the morpheme and the corresponding third relevance score; determine a fourth relevance score of the morpheme according to the first product value, the first relevance score and a preset weight;

[0154] The target relevance score is determined based on the fourth relevance score of each morpheme.

[0155] Since the principle of the above-mentioned question-and-answer method is similar to the principle of the processor of the display device determining the reply information, the implementation of the above-mentioned question-and-answer method can refer to the embodiment of the processor processing, and the repeated parts will not be repeated.

[0156] Based on the same inventive concept, the embodiment of the present application also provides a question-answering device, Figure 8 A schematic diagram of the structure of a question-answering device provided in an embodiment of the present application, the device comprising:

[0157] A receiving module 801 is used to receive questions to be answered;

[0158] The determination module 802 is used to determine the target text block matching the question to be answered based on the content recorded in each pre-saved product manual, wherein the target text block is a portion of the content in the matching target product manual; and determine the page number information of the target text block in the target product manual;

[0159] The question-and-answer module 803 is used to input the question to be answered, the target text block, the page number information and the prompt text into the large model according to a set format to obtain answer information, wherein the answer information includes an overview text and a target original text. The overview text is the text obtained by the large model after summarizing the target text block according to the question to be answered, and the target original text is the content corresponding to the page number information in the target product manual, and the target original text includes text data and / or non-text data.

[0160] In a possible implementation, the determination module 802 is specifically used to determine the target product specification that matches the question to be answered based on the similarity between the key information of each pre-saved product specification and the question to be answered; and determine the target text block that matches the question to be answered based on the content recorded in the target product specification.

[0161] In a possible implementation, the determination module 802 is further configured to extract keywords from the product manual to obtain key information, where the key information includes at least one of a document title, a product name, and a product model.

[0162] In a possible implementation, the determination module 802 is specifically used to obtain each text block pre-saved for the target product manual; respectively determine the target relevance score of the question to be answered and each text block; and determine the target text block that matches the question to be answered based on each of the target relevance scores.

[0163] In one possible implementation, the determination module 802 is specifically used to determine, for each text block, the title of the chapter to which the text block belongs, and a first correlation score between the question to be answered and the title; determine a second correlation score between the question to be answered and the content included in the text block; and determine the target correlation score based on the first correlation score and the second correlation score.

[0164] In a possible implementation, the determination module 802 is specifically used to perform morpheme analysis on the question to be answered to obtain each morpheme included in the question to be answered; for each morpheme, count a first number of text blocks pre-saved for the product manual to which the text block belongs, and a second number of text blocks containing the morpheme in the product manual to which the text block belongs, and determine the weight of the morpheme based on the first number and the second number; count the frequency of occurrence of the morpheme in the text block of the product manual to which the text block belongs; determine a third relevance score based on the frequency of occurrence, the length of the content of the text block, the average length of the content of the text block of the product manual to which the text block belongs, and a preset adjustment factor; determine the second relevance score based on the weight of each morpheme and the corresponding third relevance score.

[0165] In a possible implementation, the determination module 802 is specifically used to determine, for each morpheme, a first product value of the weight of the morpheme and the corresponding third relevance score; determine the fourth relevance score of the morpheme based on the first product value, the first relevance score and the preset weight; and determine the target relevance score based on the fourth relevance score of each morpheme.

[0166] Based on the same inventive concept, an embodiment of the present application further provides an electronic device, Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, it includes: a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904;

[0167] The memory 903 stores a computer program. When the program is executed by the processor 901, the processor 901 performs the following steps:

[0168] Determine a target text block that matches the question to be answered based on the content recorded in each pre-saved product manual, wherein the target text block is a portion of the content in the matching target product manual;

[0169] Determine the page number information of the target text block in the target product manual;

[0170] The question to be answered, the target text block, the page number information and the prompt text are input into the big model according to the set format to obtain the answer information. The prompt text is used to prompt the big model to analyze the target text block according to the question to be answered and display the content corresponding to the page number information in the target product manual.

[0171] In a possible implementation manner, the processor 901 is further configured to: determine a target product specification matching the question to be answered based on the similarity between the key information of each pre-stored product specification and the question to be answered;

[0172] According to the content recorded in the target product manual, a target text block matching the question to be answered is determined.

[0173] In a possible implementation, the processor 901 is further configured to: extract keywords from the product manual to obtain key information, where the key information includes at least one of a document title, a product name, and a product model.

[0174] In a possible implementation manner, the processor 901 is further configured to: obtain each text block pre-saved for the target product manual;

[0175] Determining the target relevance score of the question to be answered and each text block respectively;

[0176] According to each of the target relevance scores, a target text block matching the question to be answered is determined.

[0177] In a possible implementation, the processor 901 is also used to: determine, for each text block, the title of the chapter to which the text block belongs, and a first correlation score between the question to be answered and the title; determine a second correlation score between the question to be answered and the content included in the text block; and determine the target correlation score based on the first correlation score and the second correlation score.

[0178] In a possible implementation manner, the processor 901 is further configured to: perform morpheme analysis on the question to be answered to obtain each morpheme included in the question to be answered;

[0179] For each morpheme, a first number of text blocks pre-saved for the product manual to which the text block belongs and a second number of text blocks in the product manual to which the text block belongs that contain the morpheme are counted, and a weight of the morpheme is determined according to the first number and the second number; an occurrence frequency of the morpheme in the text block of the product manual to which the text block belongs is counted; and a third relevance score is determined according to the occurrence frequency, the length of the content of the text block, the average length of the content of the text block of the product manual to which the text block belongs, and a preset adjustment factor;

[0180] The second relevance score is determined according to the weight of each morpheme and the corresponding third relevance score.

[0181] In a possible implementation manner, the processor 901 is further configured to: determine, for each morpheme, a first product value of the weight of the morpheme and a corresponding third relevance score; determine a fourth relevance score of the morpheme according to the first product value, the first relevance score, and a preset weight;

[0182] The target relevance score is determined based on the fourth relevance score of each morpheme.

[0183] The communication bus mentioned in the above display device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface 902 is used for communication between the above display device and other devices. The memory may include a random access memory (RAM) and may also include a non-volatile memory (NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0184] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0185] On the basis of the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored. When the program runs on the processor, the processor implements the following steps when executing:

[0186] Determine a target text block that matches the question to be answered based on the content recorded in each pre-saved product manual, wherein the target text block is a portion of the content in the matching target product manual;

[0187] Determine the page number information of the target text block in the target product manual;

[0188] The question to be answered, the target text block, the page number information and the prompt text are input into the big model according to the set format to obtain the answer information. The prompt text is used to prompt the big model to analyze the target text block according to the question to be answered and display the content corresponding to the page number information in the target product manual.

[0189] In a possible implementation, determining the target text block matching the question to be answered based on the content recorded in each pre-saved product manual includes:

[0190] Determine a target product specification that matches the question to be answered based on the similarity between the key information of each pre-saved product specification and the question to be answered;

[0191] According to the content recorded in the target product manual, a target text block matching the question to be answered is determined.

[0192] In a possible implementation, the process of determining the key information of any product specification includes:

[0193] Keyword extraction is performed on the product manual to obtain key information, where the key information includes at least one of a document title, a product name, and a product model.

[0194] In a possible implementation manner, determining the target text block matching the question to be answered based on the content recorded in the target product specification includes:

[0195] Obtain each text block pre-saved for the target product specification;

[0196] Determining the target relevance score of the question to be answered and each text block respectively;

[0197] According to each of the target relevance scores, a target text block matching the question to be answered is determined.

[0198] In a possible implementation, respectively determining the target relevance score of the question to be answered and each text block includes:

[0199] For each text block, determine the title of the chapter to which the text block belongs, and a first correlation score between the question to be answered and the title; determine a second correlation score between the question to be answered and the content included in the text block; and determine the target correlation score based on the first correlation score and the second correlation score.

[0200] In a possible implementation, determining a second relevance score between the question to be answered and the content included in the text block includes:

[0201] Performing morpheme analysis on the question to be answered to obtain each morpheme included in the question to be answered;

[0202] For each morpheme, a first number of text blocks pre-saved for the product manual to which the text block belongs and a second number of text blocks in the product manual to which the text block belongs that contain the morpheme are counted, and a weight of the morpheme is determined according to the first number and the second number; an occurrence frequency of the morpheme in the text block of the product manual to which the text block belongs is counted; and a third relevance score is determined according to the occurrence frequency, the length of the content of the text block, the average length of the content of the text block of the product manual to which the text block belongs, and a preset adjustment factor;

[0203] The second relevance score is determined according to the weight of each morpheme and the corresponding third relevance score.

[0204] In a possible implementation, determining the target relevance score according to the first relevance score and the second relevance score includes:

[0205] For each morpheme, determine a first product value of the weight of the morpheme and the corresponding third relevance score; determine a fourth relevance score of the morpheme according to the first product value, the first relevance score and a preset weight;

[0206] The target relevance score is determined based on the fourth relevance score of each morpheme.

[0207] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0208] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 produce 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.

[0209] 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.

[0210] 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.

[0211] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A display device, characterized in that: Includes processor and display; The processor is configured to execute: receiving a question to be answered, and determining a target text block matching the question to be answered based on the content recorded in each pre-stored product manual, wherein the target text block is a portion of the content in the matching target product manual; Determine the page number information of the target text block in the target product manual; input the question to be answered, the target text block, the page number information and the prompt text into the macro model according to the set format to obtain answer information, wherein the answer information includes an overview text and a target original text, wherein the overview text is a text obtained by the macro model summarizing the target text block according to the question to be answered, and the target original text is the content corresponding to the page number information in the target product manual, and the target original text includes text data and / or non-text data; The display screen is configured to execute: displaying the reply information.

2. The display device according to claim 1, characterized in that The processor is specifically configured to execute: Determine a target product specification that matches the question to be answered based on the similarity between the key information of each pre-saved product specification and the question to be answered; According to the content recorded in the target product manual, a target text block matching the question to be answered is determined.

3. The display device according to claim 2, characterized in that The processor is further configured to determine key information of any product manual in the following manner: Keyword extraction is performed on the product manual to obtain key information, where the key information includes at least one of a document title, a product name, and a product model.

4. The display device according to claim 2, characterized in that The processor is specifically configured to execute: Obtain each text block pre-saved for the target product specification; Determining the target relevance score of the question to be answered and each text block respectively; According to each of the target relevance scores, a target text block matching the question to be answered is determined.

5. The display device according to claim 4, characterized in that The processor is specifically configured to execute: For each text block, determine the title of the chapter to which the text block belongs, and a first relevance score between the question to be answered and the title; Determine a second relevance score between the question to be answered and the content included in the text block; and determine the target relevance score based on the first relevance score and the second relevance score.

6. The display device according to claim 5, characterized in that The processor is specifically configured to execute: Performing morpheme analysis on the question to be answered to obtain each morpheme included in the question to be answered; For each morpheme, counting a first number of text blocks that are pre-stored for the product manual to which the text block belongs, and a second number of text blocks that contain the morpheme in the product manual to which the text block belongs, and determining a weight of the morpheme according to the first number and the second number; Counting the occurrence frequency of the morpheme in the text block of the product manual to which the text block belongs; determining a third relevance score according to the occurrence frequency, the length of the content of the text block, the average length of the content of the text block of the product manual to which the text block belongs, and a preset adjustment factor; The second relevance score is determined according to the weight of each morpheme and the corresponding third relevance score.

7. The display device according to claim 6, characterized in that The processor is specifically configured to execute: For each morpheme, determine a first product value of the weight of the morpheme and the corresponding third relevance score; determine a fourth relevance score of the morpheme according to the first product value, the first relevance score and a preset weight; The target relevance score is determined based on the fourth relevance score of each morpheme.

8. A question-answering method, characterized in that: The method comprises: Receive the question to be answered, and determine a target text block matching the question to be answered based on the content recorded in each pre-saved product manual, where the target text block is part of the content in the matching target product manual; Determine the page number information of the target text block in the target product manual; The question to be answered, the target text block, the page number information and the prompt text are input into the big model according to the set format to obtain the answer information, wherein the answer information includes the summary text and the target original text. The summary text is the text obtained by the big model after summarizing the target text block according to the question to be answered, and the target original text is the content corresponding to the page number information in the target product manual, and the target original text includes text data and / or non-text data.

9. The method according to claim 8, characterized in that The step of determining a target text block matching the question to be answered based on the content recorded in each pre-saved product manual includes: Determine a target product specification that matches the question to be answered based on the similarity between the key information of each pre-saved product specification and the question to be answered; According to the content recorded in the target product manual, a target text block matching the question to be answered is determined.

10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the steps of the question-answering method as claimed in claim 8.

Citation Information

Patent Citations

  • Question and answer method and device based on product use manual and computing equipment

    CN110532362A

  • Problem screening method and device based on FAQ database, computer equipment and medium

    CN111797214A

  • Bert model-based intelligent questioning and answering method and system for electric power safety regulations

    CN117407511A

  • Question and answer method, device and equipment based on large language model and storage medium

    CN117573836A

  • Dialogue method and system based on document retrieval enhanced machine language model

    CN117807199A

Cited By

  • Question and answer method and device, equipment and medium

    CN120256559A