Question and answer searching method and corresponding device

By sending user historical information to the cloud in the search question and answer system, we guide the generation of personalized answers, and solve the problem of lack of personalized answers in the existing system, improving the matching degree and user experience between answers and users.

CN119513238APending Publication Date: 2025-02-25HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311044309.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-17
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing search question and answer system generates the same answers for the same query of all users, and lacks personalization and user matching improvement.

Method used

By sending the first query request and corresponding historical information to the cloud, the cloud guides the generation of the first answer based on historical information, so that the generated answer is more in line with the characteristics and preferences of the user.

Benefits of technology

Improve the matching degree between answers and users, and the generated answers are more quality and personalized, enhancing user experience and stickiness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119513238A_ABST
    Figure CN119513238A_ABST
Patent Text Reader

Abstract

A method for searching questions and answers can be applied to a scene of end-cloud collaboration, and comprises the following steps: a client sends a query and historical information to a cloud, and the cloud guides the generation of answers of the query according to the historical information so as to obtain answers associated with the historical information. Since the historical information can refract the characteristics of the user using the client, the generated answer better conforms to the perception of the user, and the matching degree of the answer and the user can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method for searching questions and answers and a corresponding device. Background Art

[0002] Search generally refers to a retrieval technology that uses specific strategies to retrieve specified information from the Internet and feed it back to users based on user needs and certain algorithms. Its key feature is to find some web pages / documents that are most relevant to user queries from massive web page libraries / document libraries.

[0003] Question answering (QA) is a form of search that can answer questions raised by users in natural language in accurate and concise natural language to meet people's needs for fast and accurate information acquisition. Different from search, QA directly gives answers rather than some related web pages or documents.

[0004] In current search question-answering systems, the answers generated for the same query are basically the same for all users. Summary of the invention

[0005] The present application provides a method for searching questions and answers, which is used to improve the matching degree between answers and users. The present application also provides a corresponding device, a computer-readable storage medium, and a computer program product.

[0006] In a first aspect, the present application provides a method for searching questions and answers, comprising: sending a first query request (query) and corresponding historical information to the cloud, the historical information including at least one of the historical query requests and corresponding answers associated with the first query request; receiving a first answer from the cloud, the content of the first answer being associated with the historical information; and presenting the first answer.

[0007] In this application, search question and answer is a search process based on giving accurate answers to questions.

[0008] In this application, the cloud can be software or services of a cloud platform, or software or services deployed on a node in a network such as an edge node. The cloud can run on an independent physical machine or on virtualized resources.

[0009] In this application, the client can be a terminal device or an application, for example, the application runs on the terminal device for the user to use. The application can be a search engine, a smart voice assistant, an intelligent agent social network, and other question-and-answer or dialogue applications.

[0010] In the present application, historical information may be historical query requests sent by users through the same terminal device or the same user account, and at least one of the answers corresponding to each of these historical query requests. In other words, historical information may be only historical query requests, or only answers corresponding to historical query requests, or both historical query requests and corresponding answers.

[0011] In this application, the first answer is generated in the cloud under the guidance of historical information from the client. The historical information can reflect the characteristics of the user using the client. The first answer generated in this way is more in line with the user's perception and is a high-quality answer that conforms to the user's personality, which can improve the matching degree between the answer and the user.

[0012] In one possible implementation, before sending the first query request and the corresponding historical information to the cloud, the method also includes: parsing the first query request to retrieve historical information from multiple historical query requests and corresponding answers stored in the client, and the similarity between the historical information and the first query request is greater than a first threshold.

[0013] In this possible implementation, it is considered that a lot of historical information may be stored on the client, and a lot of historical information may be irrelevant to the first query request and have no reference value. Therefore, the client will filter the historical information stored locally in combination with the first query request. The principle of filtering can also be to use cosine similarity or other distance calculation methods to determine the historical information related to the first query request. In this way, the accuracy of the historical information in guiding the first answer can be improved, and the screening performed on the client can also enhance the privacy of user data and reduce the amount of historical information transmitted to the cloud.

[0014] In a possible implementation, the first answer is determined by the cloud based on the second query request, and the second query request is obtained by rewriting the first query request based on historical information by the cloud.

[0015] In this possible implementation, the first query request may not fully comply with the specification and is difficult for the machine to recognize. The cloud can rewrite the first query request based on historical information so that the machine can well understand the content that the user wants to search for when entering the first query request. In this way, the efficiency and quality of search questions and answers can be improved.

[0016] In a possible implementation, the first query request also includes a first style selected by the user, and the first style is used to indicate a presentation form of the first answer; the above step: presenting the first answer includes: presenting the content of the first answer in the first style.

[0017] In a possible implementation, the first style is selected by the user from multiple styles through a style button on the search question and answer interface, and multiple styles are displayed after the style button is triggered.

[0018] In the above possible implementations, the client may include a setting for a style button, under which a variety of styles may be associated, for example, rigorous, heartwarming, and two-dimensional styles. The user can select the style of answer presentation from the style options displayed for the various styles. In this way, the client will carry the first style when sending the first query request, and the cloud will combine the first style with the content of the first answer to obtain the first answer, and then after receiving the first answer, the client will present the content of the first answer in the first style. Optionally, after the user selects the first style, the client may not carry the first style in the first query request, but after receiving the content of the first answer, adjust the content of the first answer according to the first style and then present it.

[0019] In this application, presenting the content of the answer in the style selected by the user can improve the matching degree between the answer presentation format and the user's preferences, thereby increasing user stickiness.

[0020] In a possible implementation, the first answer includes a second style, and the second style is a presentation form of the first answer determined by the cloud based on historical information; the above step: presenting the first answer includes: presenting the content of the first answer in the second style.

[0021] In this possible implementation, the cloud can also summarize user preferences based on historical information, and then determine the presentation style of the answer based on the user preferences, such as: a rigorous style or a two-dimensional style, etc. When the user does not specify the presentation style of the answer, the first answer will be generated based on the second style determined by the historical information. This can improve the match between the answer presentation format and the user's preferences, thereby increasing user stickiness.

[0022] In one possible implementation, if the first query request conflicts with at least one of the historical query requests, a clarification response is sent to the cloud, where the clarification response is used to instruct the cloud to ignore the conflicting historical query requests, or the clarification response is used to instruct the cloud not to ignore the conflicting historical query requests.

[0023] In this possible implementation, the conflict judgment can be notified to the client in the form of a query clarification request after the cloud makes a judgment, or it can be judged by the client itself, and this application does not limit this. The query clarification request refers to the conflict between the content requested by the first query request this time and one or more requested contents in the historical query request. For example, a historical query request requests content about rheumatoid arthritis, and the first query request this time requests content about swimming. Because swimming is likely to cause rheumatoid arthritis, the two query requests conflict with each other. The cloud can inform the user of the conflict by sending a query clarification request to the client, and ask whether to ignore the historical query request. This solution can ask the user in the form of query clarification when there is a conflict between the current query request and the historical query request, rather than making overly intelligent decisions, which can improve the user experience.

[0024] In a possible implementation, if the clarification response is used to instruct the cloud to ignore the conflicting historical query request, the first answer does not include information associated with the conflicting historical query request.

[0025] In this possible implementation, if the user confirms to ignore, the first answer generated in the cloud will only be the content corresponding to the first query request, and will not include information associated with the conflicting historical query request. For example, when the first query request is about swimming, the first answer will only be content related to swimming and will not include content related to rheumatoid arthritis.

[0026] In a possible implementation, if the clarification response is used to instruct the cloud not to ignore conflicting historical query requests, the first answer includes conflict prompt information, and the conflict prompt information is based on information determined by the conflicting historical query request and the first query request.

[0027] In this possible implementation, if the user confirms not to ignore it, the first answer generated in the cloud will include information determined based on the conflicting historical query request and the first query request. For example, when the first query request is about swimming, the generated first answer will include relevant content about paying attention to rheumatoid arthritis that may be induced when swimming.

[0028] In one possible implementation, the method further includes: responding to a user's selection of a memory mode, determining corresponding historical information for the first query request, and presenting the memory mode in the form of a button on the search question-and-answer interface.

[0029] In this possible implementation, the search question and answer interface of the client can be configured with "memory mode" and "amnesia mode". If the user selects amnesia mode, the client will not send historical information, and the cloud only needs to determine the corresponding answer based on the first query request. If the user selects memory mode, the client will determine the corresponding historical information for the first query request. In this way, the accuracy of the historical information in guiding the first answer can be improved.

[0030] A second aspect of the present application provides a method for searching questions and answers, comprising: receiving a first query request and corresponding historical information from a client, the historical information including at least one of historical query requests and corresponding answers associated with the first query request; generating a first answer based on the first query request and the historical information, the content of the first answer being associated with the historical information; and sending the first answer to the client.

[0031] In the present application, the cloud generates a first answer to the first query request guided by historical information from the client. The historical information can reflect the characteristics of the user using the client, so that the first answer generated is more in line with the user's perception and can improve the matching degree between the answer and the user.

[0032] In a possible implementation, generating a first answer according to a first query request and historical information includes: rewriting the first query request according to the historical information to obtain a second query request; and generating the first answer according to the second query request and historical information.

[0033] In this possible implementation, the first query request may not fully comply with the specification and is difficult for the machine to recognize. The cloud can rewrite the first query request based on historical information so that the machine can well understand the content that the user wants to search for when entering the first query request. In this way, the efficiency and quality of search questions and answers can be improved.

[0034] In one possible implementation, the first query request also includes a first style selected by the user, and the first style is used to indicate the presentation form of the first answer; the above step: generating the first answer according to the second query request and historical information includes: determining the content of the first answer according to the second query request and historical information, and integrating the first style with the content of the first answer to obtain the first answer.

[0035] In this possible implementation, the cloud will combine the first style with the content of the first answer to obtain the first answer, and then after receiving the first answer, the client will present the content of the first answer in the first style. In this way, presenting the content of the answer in the style selected by the user can improve the matching degree between the answer presentation form and the user's preferences, thereby increasing user stickiness.

[0036] In one possible implementation, the above step of generating a first answer based on a second query request and historical information includes: determining a user's style preference based on the historical information, and determining a second style based on the style preference, the second style being used to indicate a presentation form of the first answer; determining the content of the first answer based on the second query request and historical information, and integrating the second style with the content of the first answer to obtain the first answer.

[0037] In this possible implementation, the cloud can also summarize user preferences based on historical information, and then determine the presentation style of the answer based on the user preferences, such as: a rigorous style or a two-dimensional style, etc. When the user does not specify the presentation style of the answer, the first answer will be generated based on the second style determined by the historical information. This can improve the match between the answer presentation format and the user's preferences, thereby increasing user stickiness.

[0038] In one possible implementation, the method also includes: determining whether there is a conflict between the first query request and the historical query request; if there is a conflict, sending a query clarification request to the client, the query clarification request is used to indicate that there is a conflict between the first query request and at least one of the historical query requests, and is used to inquire whether to ignore the conflicting historical query requests; receiving a clarification response from the client, the clarification response is used to indicate to ignore the conflicting historical query requests, or not to ignore the conflicting historical query requests.

[0039] In this possible implementation, when a current query request conflicts with a historical query request, the user may be asked for query clarification instead of making an overly intelligent decision, thereby improving the user experience.

[0040] In one possible implementation, if the clarification response is used to instruct the cloud to ignore conflicting historical query requests, then before generating a first answer based on the first query request and historical information, the conflicting historical query requests and the corresponding answers are deleted from the historical information; correspondingly, the first answer does not include information associated with the conflicting historical query requests.

[0041] In a possible implementation, if the clarification response is used to instruct the cloud not to ignore conflicting historical query requests, then correspondingly, the first answer includes conflict prompt information, and the conflict prompt information is based on information determined by the conflicting historical query request and the first query request.

[0042] In a third aspect of the present application, a client is provided for executing the method in the first aspect or any possible implementation of the first aspect. Specifically, the client includes a module or unit for executing the method in the first aspect or any possible implementation of the first aspect, such as a receiving unit, a display unit, and a sending unit.

[0043] In a fourth aspect of the present application, a cloud device is provided for executing the method in the second aspect or any possible implementation of the second aspect. Specifically, the cloud device includes a module or unit for executing the method in the second aspect or any possible implementation of the second aspect, such as a processing unit, a sending unit, and a receiving unit.

[0044] In a fifth aspect, the present application provides a client, including a transceiver, a processor and a memory, wherein the transceiver and the processor are coupled to the memory, and the memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the cloud device executes the method in the aforementioned first aspect or any possible implementation of the first aspect.

[0045] In a sixth aspect of the present application, a cloud device is provided. The cloud device may include at least one processor, a memory, and a communication interface. The processor is coupled to the memory and the communication interface. The memory is used to store instructions, the processor is used to execute the instructions, and the communication interface is used to communicate with other network elements under the control of the processor. When the instruction is executed by the processor, the processor executes the method in the second aspect or any possible implementation of the second aspect.

[0046] In the seventh aspect of the present application, a chip system is provided, which includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected by lines; the interface circuit is used to receive signals from the client's memory and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the client executes the method in the aforementioned first aspect or any possible implementation of the first aspect.

[0047] In an eighth aspect of the present application, a chip system is provided, which includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected by lines; the interface circuit is used to receive signals from the memory of a cloud device and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the cloud device executes the method in the aforementioned second aspect or any possible implementation of the second aspect.

[0048] The ninth aspect of the present application provides a computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed on a computer device, the computer device executes the method in the aforementioned first aspect or any possible implementation of the first aspect.

[0049] The tenth aspect of the present application provides a computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed on a computer device, the computer device executes the method in the aforementioned second aspect or any possible implementation of the second aspect.

[0050] In an eleventh aspect of the present application, there is provided a computer device program product, which includes a computer device program code. When the computer device program code is executed on a computer device, the computer device executes the method in the aforementioned first aspect or any possible implementation of the first aspect.

[0051] The twelfth aspect of the present application provides a computer device program product, which includes a computer device program code. When the computer device program code is executed on a computer device, the computer device executes the method in the aforementioned second aspect or any possible implementation of the second aspect.

[0052] In a thirteenth aspect, the present application provides a search question and answer system, which includes a cloud device and a client, the client is used to execute the method in the aforementioned first aspect or any possible implementation of the first aspect, and the cloud device is used to execute the method in the aforementioned second aspect or any possible implementation of the second aspect.

[0053] Among them, the technical effects brought about by the third to thirteenth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the first aspect or different possible implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1A It is a schematic diagram of the architecture of the search question-answering system provided in an embodiment of the present application;

[0055] Figure 1B It is a schematic diagram of the architecture of the search question-answering system provided in an embodiment of the present application;

[0056] Figure 2A is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0057] Figure 2B is a schematic diagram of a structure of a cloud device provided in an embodiment of the present application;

[0058] Figure 3 It is a schematic diagram of an embodiment of the method for searching questions and answers provided in an embodiment of the present application;

[0059] Figure 4 This is an example schematic diagram of a question and answer search page of a client provided in an embodiment of the present application;

[0060] Figure 5 This is a schematic diagram of an architecture of search question and answer provided in an embodiment of the present application;

[0061] Figure 6 is another schematic diagram of the search question and answer architecture provided in an embodiment of the present application;

[0062] Figure 7 This is another example schematic diagram of a question and answer search page of a client provided in an embodiment of the present application;

[0063] Figure 8 is another schematic diagram of the search question and answer architecture provided in an embodiment of the present application;

[0064] Fig. 9 is another schematic diagram of the search question and answer architecture provided in an embodiment of the present application;

[0065] Fig.10 This is another example schematic diagram of a question and answer search page of a client provided in an embodiment of the present application;

[0066] Fig.11 It is a schematic diagram of the structure of a client provided in an embodiment of the present application;

[0067] Fig.12 It is a structural diagram of a cloud device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0069] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0070] The embodiment of the present application provides a method for searching questions and answers, which is used to improve the matching degree between answers and users. The present application also provides corresponding devices, computer-readable storage media, and computer program products, etc. The following are detailed descriptions.

[0071] For ease of understanding, the following briefly introduces the technical terms involved in the embodiments of the present application:

[0072] 1. Query request: The query term entered by the user in the search box.

[0073] 2. Information retrieval: Select the candidate set of documents that are most relevant to the query request from a large-scale web document library (the document library can be a library of hundreds of billions of documents).

[0074] 3. Search question-answering system: generally refers to a system that searches for relevant documents and then answers user questions based on understanding of the document information.

[0075] 4. Conversational search question-answering system: A system that adds multi-round conversation capabilities to the search question-answering system and can understand the context, thereby realizing multi-round continuous question-answering functions.

[0076] 5. Answer generation: Generate answers to user questions through certain methods or models.

[0077] 6. Retrieval-based answer generation: By searching the already constructed question-answer database, use the query request to match the most relevant question or answer in the question-answer database to obtain the answer.

[0078] 7. Reading comprehension-style answer generation: by retrieving relevant web pages or documents, understanding the document content, and integrating it into answers, this can generally be divided into extractive and generative types. Among them, the characteristic of the extractive type is that the answer comes from web page fragments, while the generative type does not necessarily come entirely from web page document fragments, and has further processing and polishing.

[0079] 8. Big model generation: After training, the big model internalizes knowledge into model parameters, and the big model can directly generate answers corresponding to user queries. When using the big model to generate answers, you can use the mainstream methods of the big model's capabilities to guide the big model to generate corresponding content by giving it prompts.

[0080] 9. Historical information: query requests sent by a client in history and / or the answers corresponding to the query requests.

[0081] 10. Compressed perception of historical information: Highly compress the user's historical information, save key information and enable the model to have the ability to perceive this information.

[0082] 11. User preference: The rational and biased choices made by users when considering goods and services are the comprehensive result of user cognition, psychological feelings and rational economic trade-offs.

[0083] 12. Query clarification: Query clarification asks relevant questions based on the query given by the user, interacts with the user in the form of clarification or counter-questions, so as to better understand the user's intention.

[0084] Figure 1AIt is a schematic diagram of the architecture of the search question and answer system provided in an embodiment of the present application.

[0085] like Figure 1A As shown, the search question-and-answer system provided in the embodiment of the present application includes a cloud and multiple clients, and the cloud can communicate with multiple clients through a network. Among them, the cloud can be software or services of a cloud platform, or software or services deployed on nodes in the network such as edge nodes. The cloud can run on an independent physical machine or on virtualized resources. The client can be a terminal device or an application, for example, the application runs on a terminal device for users to use. The application can be a search engine, a smart voice assistant, an intelligent agent social network, and other multiple questions and answers, or a dialogue application.

[0086] The client can send a query request and historical information related to the query request to the cloud. The cloud-side device in the cloud can generate a corresponding answer based on the query request and historical information, and then send the answer to the client, which receives and presents the answer.

[0087] Among them, historical information can be historical query requests sent by users through the same terminal device or the same user account, and at least one of the answers corresponding to each of these historical query requests. In other words, historical information can be just historical query requests, or just answers corresponding to historical query requests, or it can include both historical query requests and corresponding answers.

[0088] Figure 1A The cloud-side device in the cloud can be a working node or a scheduling node in the cloud system. After the scheduling node receives a query request from the client, the scheduling node can execute the corresponding search question and answer process. The scheduling node can also assign the query request to one or more working nodes in the cloud system, and one or more working nodes will execute the corresponding search question and answer process.

[0089] The function of the scheduling node can be implemented by software or hardware.

[0090] As an example of a software functional unit, the scheduling node may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the above computing instance may be one or more. For example, the scheduling node may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.

[0091] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in one region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0092] As an example of a hardware functional unit, the scheduling node may include at least one computing device, such as a server, etc. Alternatively, the scheduling node may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0093] The multiple computing devices included in the scheduling node can be distributed in the same area or in different areas. The multiple computing devices included in the scheduling node can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the scheduling node can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0094] A working node can be a physical machine, or a computing instance such as a virtual machine (VM) or a container. A working node can include one or more central processing units (CPU) and graphics processing units (GPU), etc. A working node can also be a CPU or a GPU.

[0095] The client may be a terminal device. The terminal device, also known as user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is a device including a wireless communication function (providing voice / data connectivity to users), for example, a handheld device with a wireless connection function. At present, some examples of terminal devices are: mobile phones, tablet computers, laptops, PDAs, laptops, wireless routers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in the Internet of Vehicles, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, or wireless terminals in smart homes, etc. For example, the wireless terminal in the Internet of Vehicles may be a vehicle-mounted device, a vehicle-mounted device, a vehicle-mounted module, a vehicle, etc. The wireless terminal in industrial control can be a robot, etc. For example, the wireless terminal in unmanned driving can be a drone. The terminal device can be a device running an Android system, an IOS system, a Windows system, or other systems. Applications that need to render application scenes to obtain two-dimensional images, such as game applications, lock screen applications, or map applications, can be run in the terminal device.

[0096] Above Figure 1A The cloud end can be located in the cloud system. The architecture of the cloud system can be found in Figure 1B Understand. Figure 1B As shown in Figure 1, the cloud system includes a cloud platform and basic resources. The cloud platform includes a cloud platform manager. The scheduling nodes introduced above can be Figure 1B The basic resources may include multiple servers, each of which may be a working node, or each server may include multiple working nodes.

[0097] exist Figure 1BThe working node in the system may be a computing device card or a virtual machine (VM). The computing device card may be at least one of a central processing unit (CPU), a graphics processing unit (GPU) and a neural network processing unit (NPU).

[0098] The cloud platform manager will maintain or regularly collect information about each work node in the basic resources, such as the resource usage on each work node (resource usage rate or resource idle rate), etc. This information can be used as auxiliary decision-making information when allocating query requests.

[0099] The cloud platform manager can receive query requests from the client, and then execute the corresponding search question and answer process. The cloud platform manager can also assign the query request to one or more working nodes in the cloud system, and the one or more working nodes will execute the corresponding search question and answer process.

[0100] After the worker nodes complete the search question and answer, the cloud platform manager can return the answer to the client.

[0101] The above client takes the terminal device as an example. The structure of the terminal device provided in the embodiment of the present application can be referred to as follows: Figure 2A To understand, the structure of the cloud device in the cloud can be seen as follows Figure 2B To understand.

[0102] Please refer to Figure 2A , is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 2A As shown, the terminal device may include a processor 101, a transceiver 102, a memory 103, a display 104, and a bus 105. The processor 101, the transceiver 102, the memory 103, and the display 104 are interconnected via the bus 105. In an embodiment of the present application, the processor 101 is used to control and manage the actions of the terminal device 10, for example, the processor 101 is used to respond to the process of the user inputting a query request. The transceiver 102 is used to support the communication of the terminal device 10, for example: the transceiver 102 can execute the steps of sending a query request and receiving an answer. The memory 103 is used to store the program code and data of the terminal device 10, and the display 104 is used to display the answer.

[0103] Among them, the processor 101 can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents disclosed in this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. The bus 105 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2A Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0104] above Figure 2A Introduced the structure of the terminal equipment, the following Figure 2B This section describes the structure of the cloud device.

[0105] Figure 2B A possible logical structure diagram of a cloud device provided in an embodiment of the present application. Figure 2B As shown, the cloud device 20 provided in the embodiment of the present application includes: a processor 201, a communication interface 202, a memory 203 and a bus 204. The processor 201, the communication interface 202 and the memory 203 are interconnected via the bus 204. In the embodiment of the present application, the processor 201 is used to control and manage the actions of the cloud device 20. For example, the processor 201 is used to generate answers based on query requests and historical information. The communication interface 202 is used to support the cloud device 20 to communicate. For example, the communication interface 202 can execute the steps of receiving query requests and historical information, and sending answers. The memory 203 is used to store program codes and data of the cloud device 20.

[0106] Among them, the processor 201 can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents disclosed in this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. The bus 204 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2B Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0107] The following is a description of the method for searching questions and answers provided in an embodiment of the present application. The content involved in the method that is executed in the cloud can be executed by the cloud, or by a component of the cloud (such as a processor, chip, or chip system, etc.). The content involved in the client execution can be executed by the client, or by a component of the client (such as a processor, chip, or chip system, etc.).

[0108] Figure 3 A schematic diagram of an embodiment of a method for searching questions and answers provided in an embodiment of the present application.

[0109] like Figure 3 As shown, an embodiment of the method for searching questions and answers provided in an embodiment of the present application includes:

[0110] 301. The client sends a first query request and corresponding historical information to the cloud. Correspondingly, the cloud receives the first query request and corresponding historical information from the client.

[0111] The history information of the first query request includes at least one of the history query requests associated with the first query request and the corresponding answers.

[0112] 302. The cloud generates a first answer based on the first query request and historical information.

[0113] The content of the first answer is associated with the historical information of the first query request.

[0114] The process of generating the first answer in step 302 may be based on retrieval-based answer generation, reading comprehension-based answer generation, or large model generation. The introduction of these answer generation methods can be understood by referring to the introduction of the technical terminology section above. Regardless of which answer generation method is used, the historical information corresponding to the first query request will be used to guide the generation of the first answer during the answer generation process.

[0115] 303. The cloud sends the first answer to the client. Correspondingly, the client receives the first answer from the cloud.

[0116] 304. The client presents the first answer.

[0117] In this application, the first answer is generated in the cloud under the guidance of historical information from the client. The historical information can reflect the characteristics of the user using the client. The first answer generated in this way is more in line with the user's perception and is a high-quality answer that conforms to the user's personality, which can improve the matching degree between the answer and the user.

[0118] The above step 304 can present the content of the first answer in a certain style. The style of presenting the content of the first answer can be selected by the user on the client, or determined by the cloud based on historical information, which are introduced below.

[0119] 1. The user selects a style;

[0120] The first query request also includes a first style selected by the user, where the first style is used to indicate the presentation form of the first answer. In this case, the above step 304 may be to present the content of the first answer in the first style.

[0121] The client can include style buttons, such as Figure 4 As shown, a “Generate Style” button can be configured on the search question and answer page. By clicking the “Generate Style” button, you can display multiple style options on the same screen, such as rigorous, heartwarming, and two-dimensional styles. You can also only display multiple styles and no longer display the “Generate Style” button. The user can select the style in which the answer is presented on this style option. In this way, the client will carry the first style when sending the first query request, and the cloud will combine the first style with the content of the first answer to obtain the first answer. After receiving the first answer, the client will present the content of the first answer in the first style. Optionally, after the user selects the first style, the client may not carry the first style in the first query request, but after receiving the content of the first answer, adjust the content of the first answer according to the first style and then present it.

[0122] In this application, presenting the content of the answer in the style selected by the user can improve the matching degree between the answer presentation form and the user's preferences, thereby increasing user stickiness.

[0123] 2. Determine the style in the cloud;

[0124] The first answer includes a second style, and the second style is the presentation form of the first answer determined by the cloud based on historical information; in this case, the above step 304 may include presenting the content of the first answer in the second style.

[0125] The cloud can also summarize user preferences based on historical information, and then determine the presentation style of the answer based on user preferences, such as: a rigorous style or a two-dimensional style, etc. When the user does not specify the presentation style of the answer, the first answer will be generated based on the second style determined by the historical information. This can improve the match between the answer presentation form and user preferences, thereby increasing user stickiness.

[0126] The processing flow of the search question and answer in the embodiment of the present application can also be referred to Figure 5 The system architecture diagram can be understood as follows: Figure 5 As shown, the system architecture of the search question and answer includes a client and a cloud.

[0127] Among them, the client can respond to the query request (query) input by the user, and determine the corresponding historical information for the query request. Considering that the client may store more historical information, and a lot of historical information may be irrelevant to the query request and have no reference value. Therefore, the client will filter the historical information stored locally in combination with the query request. The process can be: the client parses the first query request to retrieve the historical information from the multiple historical query requests and corresponding answers stored by the client, and the similarity between the historical information and the first query request is greater than the first threshold. The principle of screening can be to use cosine similarity or other distance calculation methods to determine the historical information related to the first query request, such as: historical information with a similarity greater than the first threshold. The client then sends both the query request and the filtered historical information to the cloud.

[0128] The cloud can include a query rewriting unit, a historical information processing unit, and a search question-answering system. The cloud can also include a personalized processing unit. The query rewriting unit can rewrite the query, and can rewrite an irregular query into a query that the machine can understand. For example, the query entered by the user on the client last time was "How is the weather in city A?", and the query entered this time is "How is the weather in city B?" The query rewriting unit can rewrite the current query "How is the weather in city B?" into "How is the weather in city B" based on "How is the weather in city A" extracted from the historical information by the historical information processing unit.

[0129] The query rewriting unit transmits the rewritten query to the search question-answering system. In addition, the historical information processing unit can input information extracted from the historical information that is strongly related to the query request into the search question-answering system, and can also transmit this information to the personalization processing unit. For example, if the query this time is "What is the weather like in city B", the information that is strongly related to this query request can be things to note when traveling to city B, what tourist attractions are there in city B, and hotels in city B.

[0130] The personalization processing unit can abstract the user portrait from the historical information or the information transmitted by the historical information processing unit, determine the user preferences, and then determine the style of answer presentation based on the user preferences, and transmit the style to the search question and answer system.

[0131] When the search question answering system generates an answer for the rewritten query, it combines the information transmitted by the historical information processing unit and the style of the answer presentation transmitted by the personalization processing unit to generate the answer. Then, the cloud sends the generated answer to the client.

[0132] The client will present the received answer.

[0133] This process describes a situation where the answer presentation style is determined by the cloud. If the user sets the answer presentation style on the client, the cloud-based personalization processing unit may not transmit the determined style to the search question-answering system.

[0134] like Figure 6 As shown, the client may include a history retriever, as described above Figure 5 The historical information processing unit in may include a memory conflict identification unit and a query clarification unit.

[0135] The history retriever can retrieve information that matches the current query (first query request) from the historical information and context, and then transmit the historical information that matches the current query to the cloud.

[0136] The memory conflict identification unit can determine whether the current query (the first query request, or the rewritten second query request, the first query request is used as an example below) conflicts with the user history, and if there is a conflict, the query clarification unit is notified.

[0137] The query clarification unit may send a query clarification request to the client, the query clarification request is used to indicate that there is a conflict between the first query request and at least one of the historical query requests, and is used to ask whether to ignore the conflicting historical query request; after receiving the query clarification request, the client sends a clarification response to the cloud, the clarification response is used to indicate to ignore the conflicting historical query request, or not to ignore the conflicting historical query request. The query clarification unit will ignore the conflicting historical query request, or not to ignore the conflicting historical query request, according to the clarification response.

[0138] The query clarification unit transmits the clarification response to the search question-answering system, which then generates a corresponding answer.

[0139] A query clarification request means that the content requested by the first query request conflicts with one or more of the requested contents in the historical query requests. For example, a historical query request requests content about rheumatoid arthritis, and the first query request requests content about swimming. Since swimming is likely to cause rheumatoid arthritis, the two query requests conflict with each other.

[0140] The cloud can inform the user of the conflict by sending a query clarification request to the client and ask whether to ignore the historical query request. If the first query request conflicts with at least one of the historical query requests, the client sends a clarification response to the cloud, the clarification response is used to instruct the cloud to ignore the conflicting historical query request, or the clarification response is used to instruct the cloud not to ignore the conflicting historical query request.

[0141] If the clarification response is used to instruct the cloud to ignore the conflicting historical query request, the first answer does not include information associated with the conflicting historical query request. In other words, if the user confirms to ignore, the first answer generated by the cloud will only contain content corresponding to the first query request, and will not include information associated with the conflicting historical query request. For example, if the first query request is about swimming, the first answer will only contain content related to swimming, and will not contain content related to rheumatoid arthritis.

[0142] If the clarification response is used to instruct the cloud not to ignore the conflicting historical query request, the first answer includes conflict prompt information, and the conflict prompt information is based on the conflicting historical query request and the information determined by the first query request. In other words, if the user confirms not to ignore, the first answer generated by the cloud will include information determined based on the conflicting historical query request and the first query request. For example, if the first query request is about swimming, the generated first answer will include relevant content about being careful about rheumatoid arthritis caused by swimming.

[0143] The solution provided in the embodiment of the present application can ask the user through query clarification when there is a conflict between the current query request and the historical query request, rather than making overly intelligent decisions, which can improve the user experience.

[0144] Above Figure 6 In the content introduced, the history retriever is located on the client, and the history retriever can retrieve the history information associated with the first query request from the large amount of history information stored in the client and send it to the cloud. In another possible embodiment, the history retriever can also be located in the cloud. If the user stores all the relevant history information that has been queried in the cloud, then the history retriever located in the cloud can query the relevant history information based on the first query request, and then perform search and answer. In particular, when the user has multiple terminal devices, the user can log in to the applications on different terminal devices through the same user account, and the history information queried for these terminal devices can be stored in the cloud through the user account association. In this way, when the user uses a certain terminal device, the history retriever in the cloud can filter from the history information of multiple different terminal devices of the user to obtain the history information related to the current query request, and then perform the search and answer process.

[0145] The above-described contents are all processes for generating answers corresponding to query requests based on historical information. Whether to use historical information in the process of generating answers can be set on the client. Figure 7 As shown in the figure, a "memory setting" function item can be configured on the search question and answer page of the client. When the user clicks the "memory setting" function item, two modes, "amnesia" and "memory" will be displayed. If the user does not want historical information to participate in answer generation, the user can select the "amnesia" mode. If the user wants historical information to participate in answer generation, the user can select the "memory" mode. If the user selects the memory mode, the client will generate the corresponding historical information for the query request.

[0146] The cloud can perform gate management based on the client's "memory settings" to determine whether to use historical information to guide answer generation. The gate management mechanism can be configured on the historical information processing unit.

[0147] The historical information processing unit can have the following functions:

[0148] 1. Compressed sensing of historical information: Summarize user preferences based on user historical information, filter out representative queries as user portraits and keep them in the cloud. Representative queries (user portraits) can be used as the retrieval data source of the historical searcher, which can greatly compress the information capacity and save key information of user preferences.

[0149] Through multi-task joint learning, such as Figure 8As shown in the figure, based on historical query requests (query) and retrieval documents (doc), the encoder captures query requests and text features to generate user tags. Under the memory setting, the gating mechanism (gate) is used to determine whether to use historical information to guide answer generation. If the "memory setting" determines that historical information is not used (amnesia mode), the answer is directly generated through the search question and answer system (generator). If the "memory setting" determines that historical information is used (memory mode), the historical information is transmitted to the search question and answer system through the "gate", and the search question and answer system generates answers based on the historical information.

[0150] 2. Historical memory behavior conflict clarification: The memory conflict identification unit compares the current query with the historical image. If the current query does not match the historical memory behavior (such as someone else using it), the query can be clarified (the process of querying a city area can be found in Figure 6 part of the introduction) and avoid being overly intelligent.

[0151] 3. Explainability of historical memory: In the references, mark the references to historical memory and explain some of the reasons why the answer was generated.

[0152] In addition, the personalized processing unit in the embodiment of the present application can summarize the user's style and develop the personality of the style. In this way, the search question-answering system can generate answers based on the user's preferred style. The process can be referred to in Fig. 9 To understand, such as Fig. 9 As shown, the personalized processing unit includes a style / personality development unit and a style selection / recommendation unit. If the cloud determines through memory settings that historical information needs to be used to generate answers, the style / personality development unit can be based on a multi-style text training base model, absorb the data increment training of the user's historical information, and continuously reshape and develop the "self" style; the style / personality development unit can be a neural network model, which can summarize one or more styles based on historical information, such as Fig. 9 One or more possible styles such as the second dimension, warm-hearted, rigorous or self-centered are shown. Then the style selection / recommendation unit can transmit the user's preferred style summarized by the style / personality development unit to the search question answering system, so that the search question answering system can generate an answer based on the user's preferred style.

[0153] The above introduces the process of generating answers based on historical information in the cloud. The following is an illustrative introduction to the display page on the client side in combination with the search question and answer page on the client.

[0154] It should be noted that in order to facilitate understanding of the impact of historical information on this query, the answers to historical queries and the answers to this query are displayed on one page. In actual scenarios, these contents may not be displayed on one page. Of course, they can also be displayed on one page.

[0155] like Fig.10 As shown in the figure, on the client's question and answer search page, the user can search for "I have rheumatoid arthritis, I need to pay attention to it in my daily life" in history. If the user does not select the generated style, he will get Fig.10 The answer to part 10A is "Rheumatoid arthritis is a chronic disease. You need to pay attention to your diet, avoid eating raw or cold food, and eat mainly vegetarian food. Try to avoid sleeping in humid places. Do not take a shower immediately after sweating. Keep warm, strengthen physical exercise, and eat well. It can be slowly cured. You can go to the hospital and consult a doctor to learn more about rheumatoid arthritis."

[0156] If the user selects the "rigorous" style, they can get Fig.10 The answer to part 10B is "In daily life, patients with rheumatoid arthritis need to pay attention to observing the condition, timely check-ups, a reasonable diet, correct exercise, and rational use of medications, etc."

[0157] 1. Observe the condition: Even if the symptoms of rheumatoid arthritis have been alleviated after treatment, the condition may still relapse...( Fig.10 Not all are shown).

[0158] in addition, Fig.10 The details of timely follow-up examinations, proper diet, correct exercise, and rational use of medication are not fully displayed. More content will be displayed in the actual search and question-and-answer scenario.

[0159] The query input by the user in this search question is "What is the most suitable clothing for traveling to Xiamen in summer?" If the user selects the "Memory Loss" mode in the "Memory Settings" function item, the result will be Fig.10 The answer to part 10C is "When traveling to Xiamen in the summer, it is recommended to wear comfortable and easy-to-wash clothes, loose clothes that are not easy to wrinkle, and avoid wearing heavy clothes. Wear a thick coat when going out to prevent the weather from suddenly cooling down. If you are traveling there in August, be sure to pay more attention to local weather information, prepare a mask, wear comfortable sports shoes or travel shoes, and do not wear high heels to avoid affecting your travel."

[0160] If the user selects the "Memory" mode and selects the "2D" style, or if the user does not select the "2D" style, but the cloud uses the 2D style derived from the previous query of relevant historical information on rheumatoid arthritis, the result will be Fig.10The answer to part 10D is "Casual T-shirt + shorts Xiamen is a very comfortable city, and casual summer clothes are essential. The weather is mild, neither too cold nor too hot, and casual summer clothes paired with slippers are very convenient for going into the sea. If you have rheumatoid arthritis, you can bring cold-proof knee pads as well as a light coat and trousers." Among them, "If you have rheumatoid arthritis, you can bring cold-proof knee pads as well as a light coat and trousers" was added to the answer to this query based on the historical information of the previous query "I have rheumatoid arthritis, and I need to pay attention to it in my daily life."

[0161] The search question-and-answer process for user preferences proposed in the embodiment of the present application can customize the user's personalized style selection and historical memory selection, and can generate "heartfelt" answers and personalized answers of corresponding styles through the answer generation model perceived by historical information and the sparse activation style text generation model. By using the user's personalized style and customized personalized settings developed by the user's historical information, a personalized search question-and-answer experience for user preferences is provided.

[0162] The above introduces the search question and answer system and the search question and answer method. The following introduces the relevant devices in conjunction with the accompanying drawings.

[0163] like Fig.11 As shown, a structure of the client 110 provided in an embodiment of the present application includes:

[0164] The sending unit 1101 is used to send a first query request and corresponding historical information to the cloud, where the historical information includes at least one of historical query requests associated with the first query request and corresponding answers.

[0165] The receiving unit 1102 is used to receive a first answer from the cloud, where the content of the first answer is associated with the historical information.

[0166] The display unit 1103 is used to present the first answer.

[0167] In this application, the first answer is generated in the cloud under the guidance of historical information from the client. The historical information can reflect the characteristics of the user using the client. The first answer generated in this way is more in line with the user's perception and is a high-quality answer that conforms to the user's personality, which can improve the matching degree between the answer and the user.

[0168] Optionally, the client 110 further includes: a processing unit 1104, configured to parse the first query request to retrieve historical information from a plurality of historical query requests and corresponding answers stored in the client, wherein the similarity between the historical information and the first query request is greater than a first threshold.

[0169] Optionally, the first answer is determined by the cloud based on the second query request, and the second query request is obtained by rewriting the first query request by the cloud based on historical information.

[0170] Optionally, the first query request also includes a first style selected by the user, where the first style is used to indicate a presentation form of the first answer; the display unit 1103 is used to present the content of the first answer in the first style.

[0171] Optionally, the first style is selected by the user from multiple styles through a style button on the search question and answer interface, and multiple styles are displayed after the style button is triggered.

[0172] Optionally, the first answer includes a second style, and the second style is a presentation form of the first answer determined by the cloud based on historical information; the display unit 1103 is used to present the content of the first answer in the second style.

[0173] Optionally, the sending unit 1101 is further used to send a clarification response to the cloud when there is a conflict between the first query request and at least one of the historical query requests, and the clarification response is used to instruct the cloud to ignore the conflicting historical query requests, or the clarification response is used to instruct the cloud not to ignore the conflicting historical query requests.

[0174] Optionally, if the clarification response is used to instruct the cloud to ignore the conflicting historical query request, the first answer does not include information associated with the conflicting historical query request.

[0175] Optionally, if the clarification response is used to instruct the cloud not to ignore conflicting historical query requests, the first answer includes conflict prompt information, where the conflict prompt information is based on information determined by the conflicting historical query request and the first query request.

[0176] Optionally, the processing unit 1104 is further used to respond to the user's selection of the memory mode, determine the corresponding historical information for the first query request, and the memory mode is presented in the form of a button on the search question and answer interface.

[0177] In the embodiment of the present application, the operations performed by each unit in the client 110 are similar to those described above. Figures 3 to 10 The description in the illustrated embodiment is similar and will not be repeated here.

[0178] like Fig.12 As shown, the embodiment of the present application further provides another structure of the cloud device 120 including:

[0179] The receiving unit 1201 is configured to receive a first query request and corresponding historical information from a client, where the historical information includes at least one of historical query requests associated with the first query request and corresponding answers.

[0180] The processing unit 1202 is configured to generate a first answer according to the first query request and the historical information, wherein the content of the first answer is associated with the historical information.

[0181] The sending unit 1203 is configured to send the first answer to the client.

[0182] In the present application, the cloud generates a first answer to the first query request guided by historical information from the client. The historical information can reflect the characteristics of the user using the client, so that the first answer generated is more in line with the user's perception and can improve the matching degree between the answer and the user.

[0183] Optionally, the first query request also includes a first style selected by the user, and the first style is used to indicate the presentation form of the first answer; the processing unit 1202 is specifically used to determine the content of the first answer based on the second query request and historical information, and integrate the first style with the content of the first answer to obtain the first answer.

[0184] Optionally, processing unit 1202 is specifically used to determine the user's style preference based on historical information, and determine a second style based on the style preference, the second style is used to indicate the presentation form of the first answer; determine the content of the first answer based on the second query request and historical information, and merge the second style with the content of the first answer to obtain the first answer.

[0185] Optionally, the processing unit 1202 is further configured to determine whether there is a conflict between the first query request and the historical query request.

[0186] The sending unit 1203 is further configured to send a query clarification request to the client if there is a conflict, the query clarification request being used to indicate that there is a conflict between the first query request and at least one of the historical query requests, and to inquire whether to ignore the conflicting historical query request.

[0187] The receiving unit 1201 is further configured to receive a clarification response from the client, where the clarification response is used to indicate to ignore the conflicting historical query request or not to ignore the conflicting historical query request.

[0188] Optionally, processing unit 1202 is also used to delete the conflicting historical query request and the corresponding answer from the historical information before generating a first answer based on the first query request and the historical information if the clarification response is used to instruct the cloud to ignore the conflicting historical query request; correspondingly, the first answer does not include information associated with the conflicting historical query request.

[0189] Optionally, if the clarification response is used to instruct the cloud not to ignore conflicting historical query requests, then correspondingly, the first answer includes conflict prompt information, and the conflict prompt information is based on information determined by the conflicting historical query request and the first query request.

[0190] In the embodiment of the present application, the operations performed by each unit in the cloud device 110 are similar to those described above. Figures 3 to 10 The description in the illustrated embodiment is similar and will not be repeated here.

[0191] In another embodiment of the present application, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores computer-executable instructions. When the processor of the cloud device executes the computer-executable instructions, the cloud device executes the above Figures 3 to 10 The steps performed by the cloud.

[0192] In another embodiment of the present application, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores computer-executable instructions. When the processor of the client executes the computer-executable instructions, the client executes the above Figures 3 to 10 The steps performed by the client in .

[0193] In another embodiment of the present application, a computer program product is also provided. The computer program product includes a computer program code. When the computer program code is executed on a computer, the computer device executes the above Figures 3 to 10 Steps performed by the cloud or client.

[0194] In another embodiment of the present application, a chip system is also provided, which includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the interface circuit is used to receive a signal from the memory of the terminal and send a signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the terminal executes the above-mentioned Figures 3 to 10 The steps performed by the cloud device or the client in the process. In one possible design, the chip system may also include a memory, which is used to store program instructions and data necessary for controlling the device. The chip system may be composed of a chip or may include a chip and other discrete devices.

[0195] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0196] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0197] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.

[0198] When the integrated unit is implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

Claims

1. A method for searching questions and answers, characterized in that: include: Sending a first query request and corresponding historical information to a cloud, wherein the historical information includes at least one of a historical query request and a corresponding answer associated with the first query request; receiving a first answer from the cloud, wherein content of the first answer is associated with the historical information; The first answer is presented.

2. The method according to claim 1, characterized in that Before sending the first query request and the corresponding historical information to the cloud, the method further includes: The first query request is parsed to retrieve the historical information from a plurality of historical query requests and corresponding answers stored in the client, wherein the similarity between the historical information and the first query request is greater than a first threshold.

3. The method according to claim 1 or 2, characterized in that: The first answer is determined by the cloud based on a second query request, and the second query request is obtained by the cloud rewriting the first query request based on the historical information.

4. The method according to any one of claims 1 to 3, characterized in that: The first query request further includes a first style selected by a user, where the first style is used to indicate a presentation form of the first answer; The presenting the first answer includes: presenting the content of the first answer in the first style.

5. The method according to claim 4, characterized in that The first style is selected by the user from a plurality of styles through a style button on the search question and answer interface, and the plurality of styles are displayed after the style button is triggered.

6. The method according to any one of claims 1 to 3, characterized in that: The first answer includes a second style, where the second style is a presentation form of the first answer determined by the cloud according to the historical information; The presenting the first answer includes: presenting the content of the first answer in the second style.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: If the first query request conflicts with at least one of the historical query requests, a clarification response is sent to the cloud, wherein the clarification response is used to instruct the cloud to ignore the conflicting historical query request, or the clarification response is used to instruct the cloud not to ignore the conflicting historical query request.

8. The method according to claim 7, characterized in that If the clarification response is used to instruct the cloud to ignore the conflicting historical query request, the first answer does not include information associated with the conflicting historical query request.

9. The method according to claim 7, characterized in that: If the clarification response is used to instruct the cloud not to ignore conflicting historical query requests, the first answer includes conflict prompt information, where the conflict prompt information is determined based on information of the conflicting historical query requests and the first query request.

10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: In response to the user's selection of the memory mode, the corresponding historical information is determined for the first query request, and the memory mode is presented in the form of a button on the search question and answer interface.

11. A method for searching questions and answers, characterized in that: include: receiving a first query request and corresponding historical information from a client, wherein the historical information includes at least one of historical query requests and corresponding answers associated with the first query request; generating a first answer according to the first query request and the historical information, wherein the content of the first answer is associated with the historical information; The first answer is sent to the client.

12. The method according to claim 11, characterized in that The generating a first answer according to the first query request and the historical information includes: Rewriting the first query request according to the historical information to obtain a second query request; The first answer is generated according to the second query request and the historical information.

13. The method according to claim 12, characterized in that The first query request further includes a first style selected by a user, where the first style is used to indicate a presentation form of the first answer; The generating a first answer according to the second query request and the historical information includes: The content of the first answer is determined according to the second query request and the historical information, and the first style is integrated with the content of the first answer to obtain the first answer.

14. The method according to claim 12, characterized in that The generating a first answer according to the second query request and the historical information includes: determining a user's style preference according to the historical information, and determining a second style according to the style preference, wherein the second style is used to indicate a presentation form of the first answer; The content of the first answer is determined according to the second query request and the historical information, and the second style is integrated with the content of the first answer to obtain the first answer.

15. The method according to any one of claims 11 to 14, characterized in that: The method further comprises: Determine whether the first query request conflicts with the historical query request; If there is a conflict, sending a query clarification request to the client, the query clarification request is used to indicate that the first query request conflicts with at least one of the historical query requests, and to inquire whether to ignore the conflicting historical query request; A clarification response is received from the client, where the clarification response is used to indicate to ignore the conflicting historical query request or not to ignore the conflicting historical query request.

16. The method according to claim 15, characterized in that If the clarification response is used to instruct the cloud to ignore the conflicting historical query request, before generating a first answer according to the first query request and the historical information, deleting the conflicting historical query request and the corresponding answer from the historical information; Correspondingly, the first answer does not include information associated with the conflicting historical query request.

17. The method according to claim 15, characterized in that If the clarification response is used to instruct the cloud not to ignore conflicting historical query requests, then correspondingly, the first answer includes conflict prompt information, where the conflict prompt information is determined based on information of the conflicting historical query requests and the first query request.

18. A client, characterized in that: include: a sending unit, configured to send a first query request and corresponding historical information to a cloud, wherein the historical information includes at least one of a historical query request and a corresponding answer associated with the first query request; A receiving unit, configured to receive a first answer from the cloud, wherein the content of the first answer is associated with the historical information; A display unit is used to present the first answer.

19. A cloud device, characterized in that: include: a receiving unit, configured to receive a first query request and corresponding historical information from a client, wherein the historical information includes at least one of a historical query request and a corresponding answer associated with the first query request; a processing unit, configured to generate a first answer according to the first query request and the historical information, wherein the content of the first answer is associated with the historical information; A sending unit is used to send the first answer to the client.

20. A client, characterized in that: include: A transceiver, a processor and a memory, wherein the transceiver and the processor are coupled to the memory, and the memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the client executes the method according to any one of claims 1 to 10.

21. A cloud device, characterized in that: include: A communication interface, a processor and a memory, wherein the communication interface and the processor are coupled to the memory, and the memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the cloud device executes the method as described in any one of claims 11 to 17.

22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer device, the computer device is caused to perform the method according to any one of claims 1 to 17.

23. A computer program product, characterized in that The computer program product comprises a computer program code, which, when executed on a computer device, causes the computer device to perform the method according to any one of claims 1 to 17.

24. A chip system, characterized in that: The chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected by lines; the interface circuit is used to receive signals from the client's memory and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the client executes the method as described in any one of claims 1 to 10; or, the interface circuit is used to receive signals from the memory of the cloud device and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the cloud device executes the method as described in any one of claims 11 to 17.

25. A search question answering system, characterized in that: include: A client and a cloud device, wherein the client is used to execute the method described in any one of claims 1 to 10, and the cloud device is used to execute the method described in any one of claims 11 to 17.

Citation Information

Cited By

  • Question answering searching method and corresponding apparatus

    EP4749476A1

  • Question answering searching method and corresponding apparatus

    WO2025036377A1