Data processing method, electronic device, storage medium and program product

By sending issues to the cloud for processing when device resources are insufficient, and utilizing local caching and database processing when resources are sufficient, the problem of low data processing efficiency caused by frequent interactions between the user end and the cloud is solved, achieving more efficient data processing.

CN120873048APending Publication Date: 2025-10-31INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511012608.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-22
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

In existing technologies, frequent data interactions between the user end and the cloud result in low data processing efficiency.

Method used

When device resources are insufficient, the problem is sent to the cloud for processing; when resources are sufficient, the problem is handled by local devices or the cloud depending on its type and complexity, and local caching and databases are used to improve processing efficiency.

Benefits of technology

By allocating resources rationally, the efficiency of data processing was improved, the frequency of data interaction between the cloud and the local end was reduced, and the processing speed and accuracy were enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120873048A_ABST
    Figure CN120873048A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method, electronic equipment, a storage medium and a program product. Relates to the big data field. The method comprises the following steps: acquiring a first question and equipment resources of first equipment, wherein the first equipment comprises a database; when the device resource is smaller than or equal to a first threshold value, sending the first question to a second device, and receiving an answer of the first question sent by the second device; and when the device resource is greater than the first threshold value, determining the type of the first question, and determining an answer to the first question based on the first question, the type of the first question and the second device. The method is used for improving the data processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of big data, and in particular to a data processing method, electronic device, storage medium, and program product. Background Technology

[0002] In some scenarios, users can find answers to their queries by searching within a database. For example, in a financial context, users can retrieve necessary policy documents by searching within a database.

[0003] In related technologies, the query question and the authorized user data required by the user can be uploaded to a cloud server for processing. By calling the massive knowledge base in the cloud, the answer to the user's query question can be obtained.

[0004] However, the above methods require frequent data interaction between the cloud and the user, resulting in low data processing efficiency. Summary of the Invention

[0005] This application provides a data processing method, electronic device, storage medium, and program product to improve the efficiency of data processing.

[0006] In a first aspect, embodiments of this application provide a data processing method, including:

[0007] Obtain the device resources of the first problem and the first device, wherein the first device includes a database;

[0008] When the device resources are less than or equal to a first threshold, the first question is sent to the second device, and the answer to the first question sent by the second device is received;

[0009] When the device resources are greater than the first threshold, the type of the first question is determined, and the answer to the first question is determined based on the first question, the type of the first question, and the second device.

[0010] Secondly, embodiments of this application provide a data processing apparatus, including: an acquisition module, a transceiver module, and a determination module, wherein,

[0011] The acquisition module is used to acquire the first problem and the device resources of the first device, wherein the first device includes a database;

[0012] The transceiver module is used to send the first question to the second device and receive the answer to the first question sent by the second device when the device resources are less than or equal to a first threshold.

[0013] The determining module is used to determine the type of the first question when the device resources are greater than the first threshold, and to determine the answer to the first question based on the first question, the type of the first question, and the second device.

[0014] In one possible design, determining the answer to the first question based on the first question, the type of the first question, and the second device includes:

[0015] Determine the complexity of the first problem based on its type;

[0016] The answer to the first question is determined based on the complexity of the first question, the first question, and the second device.

[0017] In one possible design, determining the answer to the first problem based on the complexity of the first problem, the first problem, and the second device includes:

[0018] When the complexity of the first question is greater than or equal to the second threshold, the first question is sent to the second device, and the answer to the first question sent by the second device is received.

[0019] When the complexity of the first problem is less than the second threshold, the first problem is processed to obtain the first answer and the completion degree of the first problem, and the answer to the first problem is determined based on the first answer, the completion degree and the second device.

[0020] In one possible design, determining the answer to the first question based on the first answer, the degree of completion, and the second device includes:

[0021] When the completion rate is greater than or equal to the third threshold, the first answer is determined as the answer to the first question;

[0022] When the completion rate is less than the third threshold, in the first question, an incomplete second question is identified, and based on the second question, the first answer, and the second device, the answer to the first question is determined.

[0023] In one possible design, determining the answer to the first question based on the second question, the first answer, and the second device includes:

[0024] Send the second question and the first answer to the second device;

[0025] Receive the answer to the first question sent by the second device.

[0026] In one possible design, processing the first problem to obtain a first answer to the first problem includes:

[0027] The cache of the first device is determined, and the cache includes a third question and the answer to the third question, wherein the third question is a question processed by the first device within a historical period.

[0028] Based on the cache and the database, the answer to the first question is processed to obtain the first answer to the first question.

[0029] In one possible design, the answer to the first question is processed based on the cache and the database to obtain a first answer to the first question, including:

[0030] Determine in the cache whether there is a third problem with the same semantics as the first problem;

[0031] If a third question with the same semantics as the first question exists in the cache, then the answer to the third question with the same semantics as the first question in the cache is determined as the first answer to the first question;

[0032] If no third question with the same semantics as the first question exists in the cache, then the first question is retrieved from the database to obtain the first answer to the first question.

[0033] Thirdly, embodiments of this application provide a data processing device, including: a memory and a processor;

[0034] The memory stores computer-executed instructions;

[0035] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0036] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0037] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0038] This application provides a data processing method, electronic device, storage medium, and program product. When data processing is required, it can acquire a first question and the device resources of a first device, where the first device includes a database. When the device resources are less than or equal to a first threshold, the first question is sent to a second device, and the answer to the first question sent by the second device is received. When the device resources are greater than the first threshold, the type of the first question is determined, and the answer to the first question is determined based on the first question, the type of the first question, and the second device. Thus, by using the above method, when the first device resources are scarce (i.e., device resources are less than or equal to the first threshold), the user's first question is sent to a cloud-based second device for processing; when the first device resources are sufficient (i.e., device resources are greater than the first threshold), it is determined whether the first device or the second device will process the first question based on its type, thereby improving the efficiency of data processing. Attached Figure Description

[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0040] Figure 1 This is a schematic diagram of the system architecture provided for an embodiment of this application;

[0041] Figure 2 A flowchart illustrating a data processing method provided in an embodiment of this application;

[0042] Figure 3 A schematic diagram of the visual operation window of the data processing system provided in the embodiments of this application;

[0043] Figure 4 A schematic diagram illustrating the process of determining the answer to the first question provided in the embodiments of this application;

[0044] Figure 5 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;

[0045] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0046] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0047] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0048] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation portals for users to choose to authorize or refuse.

[0049] Furthermore, the technical solution involved in this application, which involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.) and the use of artificial intelligence technology for automated decision-making, and makes decisions that have a significant impact on the rights and interests of individuals based on the results of automated decision-making, provides users with corresponding operation entry points for users to choose to agree to or reject the results of automated decision-making; if the user chooses to reject, the process will proceed to the expert decision-making process.

[0050] It should be noted that the data processing method, electronic device, storage medium, and program product provided in this application can be used in the field of big data, or in any field other than big data. The application field of the data processing method, electronic device, storage medium, and program product in this application is not limited.

[0051] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0052] To facilitate understanding, the following will be combined with... Figure 1 The system architecture applicable to the embodiments of this application will be described.

[0053] Figure 1 This is a schematic diagram of the system architecture provided for an embodiment of this application. Please refer to [link / reference]. Figure 1This system comprises a local terminal 101 and a cloud terminal 102. The local terminal 101 can be the user's local terminal device, such as a computer, mobile phone, or tablet. The cloud terminal 102 can be a server cluster consisting of numerous servers. The local terminal 101 can store the user's local knowledge and data, while the cloud terminal 102 can store massive amounts of knowledge data, complex models, etc. The local terminal 101 can receive and process user questions, or it can send user questions to the cloud terminal 102 for processing and receive the processing results from the cloud terminal 102.

[0054] In related technologies, the query question and the authorized user data required by the user client can be uploaded to a cloud server for processing. By accessing a massive knowledge base in the cloud, the answer to the user's query can be obtained. However, this method requires frequent data interaction between the cloud and the user client, resulting in low data processing efficiency.

[0055] To address the aforementioned technical issues, in this embodiment, when data processing is required, a first question and the device resources of a first device (including a database) can be obtained. When the device resources are less than or equal to a first threshold, the first question is sent to a second device, and the answer to the first question sent by the second device is received. When the device resources are greater than the first threshold, the type of the first question is determined, and based on the type of the first question, the complexity of the first question is determined. Based on the complexity of the first question, the first question, and the second device, the answer to the first question is determined. Thus, through this method, when the first device resources are scarce (i.e., device resources are less than or equal to the first threshold), the user's first question is sent to the cloud-based second device for processing; when the first device resources are sufficient (i.e., device resources are greater than the first threshold), the complexity of the first question determines whether it should be processed by the first device or the second device, thereby improving the efficiency of data processing.

[0056] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0057] Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Please refer to [link / reference]. Figure 2 As shown, the method may include the following steps:

[0058] S201, Obtain the equipment resources for the first problem and the first device.

[0059] The execution subject of this application embodiment can be a first device or a data processing device installed in a terminal device. The first device can be a terminal device, and the data processing device can be implemented by software or by a combination of software and hardware.

[0060] The first question can be an unresolved issue sent by the user to the first device. For example, the first question could be: Generate a financial solution based on the latest regulatory documents.

[0061] The first device can be a user's local terminal device, such as a computer, mobile phone, or tablet. This first device can contain a data processing system that processes the user's input of the first question. The data processing system's visual interface can include a "Process" control, which the user can click to process the first question.

[0062] The first question can be obtained in the following way: The user can enter the first question in the visual operation window of the data processing system and click the "Process" control to send a question processing request to the first device. The first device responds to the question processing request and obtains the first question entered by the user.

[0063] Below, in conjunction with Figure 3 The visual operation window of the data processing system is explained through specific examples.

[0064] Figure 3 Please refer to the schematic diagram of the visual operation window of the data processing system provided in the embodiments of this application. Figure 3 It includes a question input control and a "process" control. Users can enter the first question that needs to be processed in the question input control and click the "process" control. The first device can process the first question and output the answer to the first question.

[0065] The first device may include a database, which can be used to store the user's historical data. The user's historical data may be historical resource data authorized by the user, such as cases authorized by the user within a historical period, processing records of user authorization, etc.

[0066] Optionally, a user's historical data can be stored in the database as a vector.

[0067] The device resources of the first device can refer to the available resources of the first device at the current moment. For example, available resources can refer to available storage resources, processor resources, computing resources, etc. The device resources of the first device can be used to indicate the data processing capability of the first device at the current moment. For example, the device resources of the first device can be 80%.

[0068] S202. Determine whether the equipment resources are less than or equal to the first threshold.

[0069] If so, then execute S203.

[0070] If not, then execute S204.

[0071] The first threshold can be a value preset by the user in the first device, for example, the first threshold can be 20%.

[0072] Understandably, when the device resources are less than or equal to the first threshold, the device resources of the first device are considered to be strained, meaning that the first device has fewer resources available for data processing and the data processing efficiency is low; when the device resources are greater than the first threshold, the device resources of the first device are considered to be sufficient, meaning that the first device has more resources available for data processing and the data processing efficiency is high.

[0073] For example, assuming the first threshold is 20%, if the current device resource of the first device is 10%, that is, the device resource is less than the first threshold, it can be considered that the device resource of the first device is tight, and the first device can send the first problem to the second device for processing; if the current device resource of the first device is 80%, that is, the device resource is greater than the first threshold, it can be considered that the device resource of the first device is sufficient.

[0074] S203. Send the first question to the second device and receive the answer to the first question sent by the second device.

[0075] The second device can be a cloud-based device, which can be a server cluster consisting of a large number of servers. Understandably, the second device has greater device resources than the first device.

[0076] After receiving the first question, the second device can process the first question, obtain the answer to the first question, and send the answer to the first device.

[0077] S204. Determine the type of the first question, and based on the first question, the type of the first question, and the second device, determine the answer to the first question.

[0078] The type of the first question can indicate the processing type of the first question. For example, the type of the first question can be image generation, text generation, etc.

[0079] The type of the first question can be determined as follows: Obtain the first question; perform keyword extraction on the first question to determine its keywords, such as "image," "solution," "translation," or "picture"; based on the keywords and the first question itself, perform semantic understanding on the first question to determine its type. Natural language processing algorithms can be used for semantic understanding of the first question.

[0080] The answer to the first question can be determined as follows: based on the type of the first question, determine the complexity of the first question; based on the complexity of the first question, the first question, and the second device, determine the answer to the first question.

[0081] The complexity of the first problem can be used to indicate how easy or difficult it is to solve the first problem; that is, the greater the difficulty of solving the first problem, the higher the complexity of the first problem.

[0082] The complexity of the first problem can be determined as follows: determine a pre-defined mapping table, which can be used to indicate the correspondence between problem types and complexity; determine the complexity of the first problem in the pre-defined mapping table.

[0083] For example, suppose the preset mapping table indicates that the complexity is 8 when the problem type is image generation, 3 when the problem type is text generation, and 6 when the problem type is optimization. Then, when the first problem type is text generation, the complexity of the first problem can be determined to be 3.

[0084] In this embodiment, when data processing is required, a first question and the device resources of a first device can be obtained. The first question can be a question sent by a user to the first device, and the first device can be the user's local terminal device. The device resources of the first device refer to the available resources of the first device at the current moment. It is determined whether the device resources are less than or equal to a first threshold. If the device resources are less than or equal to the first threshold, the first question is sent to a second device, and the answer to the first question sent by the second device is received. The second device can be a cloud device, which can be a server cluster composed of a large number of servers. If the device resources are greater than the first threshold, the type of the first question is determined, and based on the first question, the type of the first question, and the second device, the answer to the first question is determined. The type of the first question can be used to indicate the processing type of the first question. Through the above method, when the device resources of the first device are insufficient, the first question is sent to the second device for processing; when the device resources of the first device are sufficient, processing is performed according to the question type of the first question. In this way, scheduling is performed based on resource availability, thereby improving data processing efficiency.

[0085] Based on any of the above embodiments, the following, in conjunction with Figure 4 The process of determining the answer to the first question ( Figure 2 S204 in the embodiments will be described in detail.

[0086] Figure 4 This is a schematic diagram illustrating the process of determining the answer to the first question provided in an embodiment of this application. Please refer to... Figure 4 The method may include:

[0087] S401. Determine the complexity of the first problem based on its type.

[0088] It should be noted that the implementation method of step S401 above can be referred to the implementation method of step S204 above, and will not be repeated here.

[0089] S402. Determine whether the complexity of the first problem is greater than or equal to the second threshold.

[0090] The second threshold can be a value that the user has preset in the first device; for example, the second threshold can be 8.

[0091] For example, assuming the second threshold is 8, if the complexity of the first problem is 6, then it can be determined that the complexity of the first problem is less than the second threshold; if the complexity of the first problem is 9, then it can be determined that the complexity of the first problem is greater than the second threshold.

[0092] Understandably, when the complexity of the first problem is less than the second threshold, the processing power and / or resources required by the task to process the first problem are relatively small; when the complexity of the first problem is greater than or equal to the second threshold, the processing power and / or resources required by the task to process the first problem are relatively large.

[0093] If so, then execute S403.

[0094] If not, then execute S404.

[0095] S403. Send the first question to the second device and receive the answer to the first question sent by the second device.

[0096] The second device can determine the answer to the first question in the following way: The second device can receive the first question sent by the first device and determine the second device cache and the second device database; determine whether there is a fourth question with the same semantics as the first question in the second device cache; if there is a fourth question with the same semantics as the first question in the second device cache, then determine the answer of the fourth question with the same semantics as the first question in the second device cache as the answer to the first question; if there is no fourth question with the same semantics as the first question in the cache, then search for the first question in the second device database to obtain the first answer to the first question.

[0097] The second device cache can be the cache space of the second device, which can include the fourth question and its answer. The fourth question can be a question whose access frequency exceeds a preset frequency within a preset time period. The preset frequency can be a value pre-set by the user, such as 10 times per hour. The second device database can be the storage space of the second device, used to store massive amounts of knowledge data.

[0098] The first question can be retrieved from the second device database using vector retrieval. Specifically, the first question can be transformed into a vector; multiple knowledge data vectors corresponding to the knowledge data can be identified within the second device database; the similarity between the first question vector and the multiple knowledge data vectors can be calculated, for example, using cosine similarity algorithms or Euclidean distance algorithms; the knowledge data vector with the highest similarity to the first question vector is identified as the target knowledge data vector, and the target knowledge data corresponding to the target knowledge data vector is determined, thus identifying the target knowledge data as the first answer to the first question.

[0099] S404, Determine the cache of the first device.

[0100] The cache of the first device can refer to the cache space of the first device. The cache can include the third question and the answer to the third question. The third question can be a question that the first device processed in a historical period, and the answer to the third question can be the answer obtained by the first device in processing the third question.

[0101] S405. Based on caching and the database, process the answer to the first question to obtain the first answer to the first question.

[0102] The answer to the first question can be processed and the first answer to the first question obtained by the following method: determine whether there is a third question with the same semantics as the first question in the cache; if there is a third question with the same semantics as the first question in the cache, then determine the answer of the third question with the same semantics as the first question in the cache as the first answer to the first question; if there is no third question with the same semantics as the first question in the cache, then search for the first question in the database and obtain the first answer to the first question.

[0103] For example, suppose there are three questions in the cache: Question 1, Question 2, and Question 3. The answer to Question 1 is Answer 1, the answer to Question 2 is Answer 2, and the answer to Question 3 is Answer 3. If the semantics of Question 1 are the same as those of Question 1, then Answer 1 can be determined as the first answer to Question 1.

[0104] Optionally, the semantic similarity between the first and third questions can be calculated using a natural language processing model to determine whether a third question with the same semantics as the first question exists in the cache.

[0105] Optionally, the first question can be retrieved from the database using vector retrieval. Specifically, the first question can be transformed into a vector; multiple historical vectors corresponding to historical data can be identified in the database; the similarity between the first question vector and the multiple historical vectors can be calculated, for example, using cosine similarity algorithms or Euclidean distance algorithms; the historical vector with the highest similarity to the first question vector can be identified as the target vector, the target historical data corresponding to the target vector can be identified, and the target historical data can be identified as the first answer to the first question.

[0106] S406. Determine the completion rate of the first question.

[0107] The completion rate of the first question can be used to indicate the extent to which the first answer addresses the first question. For example, if the completion rate of the first question is 100%, it means that the first question has been answered completely, meaning that the first answer is the answer to the first question; if the completion rate of the first question is 50%, it means that the first question has not been answered completely, meaning that the first answer cannot fully solve the first question.

[0108] The completion rate of the first problem can be determined as follows: Decompose the first problem into one or more sub-problems; if there is only one sub-problem, that is, the first problem is the sub-problem of the decomposition, then the first problem can be considered to be completed, that is, the completion rate of the first problem is 100%; if there are multiple sub-problems, then the first answer of the first problem can be considered to be the answer of the first sub-problem, and the completion rate of the first problem can be determined according to the number of sub-problems. For example, if there are 5 sub-problems, then the completion rate of the first problem can be considered to be 20%.

[0109] S407. Based on the first answer, the completion rate, and the second device, determine the answer to the first question.

[0110] The answer to the first question can be determined as follows: when the completion rate is greater than or equal to the third threshold, the first answer is determined as the answer to the first question; when the completion rate is less than the third threshold, the unfinished second question is identified in the first question, and the second question and the first answer are sent to the second device; the answer to the first question sent by the second device is received.

[0111] The second problem can be an unfinished subproblem resulting from the decomposition of the first problem.

[0112] For example, assuming the third threshold is 90%, if the completion rate of the first question is 50%, it indicates that the completion rate is less than the third threshold. In this case, the second question that is not completed is identified in the first question, and the second question and the first answer are sent to the second device. If the completion rate of the first question is 100%, it indicates that the completion rate is greater than the third threshold. In this case, the first answer is identified as the answer to the first question.

[0113] The step of the second device determining the answer to the first question based on the second question and the first answer can be found in step S403.

[0114] exist Figure 4In the illustrated embodiment, when data processing is required, the answer to a first question can be determined first. Based on the type of the first question, its complexity is determined; it is then determined whether the complexity of the first question is greater than or equal to a second threshold. If the complexity of the first question is less than the second threshold, the device processing power and / or device resources required to process the first question are relatively small; if the complexity of the first question is greater than or equal to the second threshold, the device processing power and / or device resources required to process the first question are relatively large. If the complexity of the first question is greater than or equal to the second threshold, the first question is sent to a second device, and the answer to the first question sent by the second device is received. If the complexity of the first question is less than the second threshold, the cache of the first device is determined. Based on the cache and the database, the answer to the first question is processed to obtain the first answer to the first question. The completion degree of the first question is determined, which can be used to indicate the completion status of the first question. Based on the first answer, the completion degree, and the second device, the answer to the first question is determined. In this way, by using the above method, when the complexity of the first problem is high, the first problem is sent to the second device for processing. When the complexity of the first problem is low, the first device first checks in the cache whether there is a problem that has been processed in the historical period. If there is, the first answer to the first problem is directly determined. If not, the first answer to the first problem is retrieved from the database, thereby improving data processing efficiency. Furthermore, by judging the completion of the first answer, if the first answer indicates that the first problem is not fully answered, that is, the first problem cannot be completely solved by the database of the first device alone, the first answer and the remaining unsolved second problem are sent to the second device for processing, thereby ensuring the completeness and accuracy of the answer to the first problem.

[0115] Figure 5 This is a schematic diagram of a data processing apparatus provided in an embodiment of this application. Please refer to... Figure 5 The data processing device 10 includes: an acquisition module 11, a transceiver module 12, and a determination module 13, wherein...

[0116] The acquisition module 11 is used to acquire the first problem and the device resources of the first device, wherein the first device includes a database.

[0117] The transceiver module 12 is used to send the first question to the second device and receive the answer to the first question sent by the second device when the device resources are less than or equal to the first threshold.

[0118] The determining module 13 is used to determine the type of the first question when the device resources are greater than the first threshold, and to determine the answer to the first question based on the first question, the type of the first question, and the second device.

[0119] The data processing apparatus provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.

[0120] In one possible design, the determining module 13 is specifically used for,

[0121] Determine the complexity of the first problem based on its type;

[0122] The answer to the first question is determined based on the complexity of the first question, the first question, and the second device.

[0123] In one possible design, the determining module 13 is specifically used for,

[0124] When the complexity of the first question is greater than or equal to the second threshold, the first question is sent to the second device, and the answer to the first question sent by the second device is received.

[0125] When the complexity of the first problem is less than the second threshold, the first problem is processed to obtain the first answer and the completion degree of the first problem, and the answer to the first problem is determined based on the first answer, the completion degree and the second device.

[0126] In one possible design, the determining module 13 is specifically used for,

[0127] When the completion rate is greater than or equal to the third threshold, the first answer is determined as the answer to the first question;

[0128] When the completion rate is less than the third threshold, in the first question, an incomplete second question is identified, and based on the second question, the first answer, and the second device, the answer to the first question is determined.

[0129] In one possible design, the determining module 13 is specifically used for,

[0130] Send the second question and the first answer to the second device;

[0131] Receive the answer to the first question sent by the second device.

[0132] In one possible design, the determining module 13 is specifically used for,

[0133] The cache of the first device is determined, and the cache includes a third question and the answer to the third question, wherein the third question is a question processed by the first device within a historical period.

[0134] Based on the cache and the database, the answer to the first question is processed to obtain the first answer to the first question.

[0135] In one possible design, the determining module 13 is specifically used for,

[0136] Determine in the cache whether there is a third problem with the same semantics as the first problem;

[0137] If a third question with the same semantics as the first question exists in the cache, then the answer to the third question with the same semantics as the first question in the cache is determined as the first answer to the first question;

[0138] If no third question with the same semantics as the first question exists in the cache, then the first question is retrieved from the database to obtain the first answer to the first question.

[0139] The data processing apparatus provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.

[0140] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device 20 may include: a transceiver 21, a processor 22, and a memory 23.

[0141] Processor 22 executes computer execution instructions stored in memory, causing processor 22 to perform the scheme in the above embodiments. Processor 22 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0142] The memory 23 is connected to the processor 22 via the system bus and completes communication between them. The memory 23 is used to store computer program instructions.

[0143] Transceiver 21 can be used to obtain the task to be run and the configuration information of the task to be run.

[0144] The system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus. Transceivers are used to enable communication between database access devices and other computers (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and may also include non-volatile memory.

[0145] The electronic device provided in this application embodiment can be the terminal device described in the above embodiments.

[0146] This application also provides a chip for executing instructions, which is used to execute the data processing method described in the above embodiments.

[0147] This application also provides a computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the technical solution of the data processing method described in the above embodiments.

[0148] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium, and when the at least one processor executes the computer program, it can implement the technical solution of the data processing method in the above embodiments.

[0149] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0150] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.

[0151] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0152] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.

[0153] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0154] The memory may include high-speed RAM, and may also include non-volatile storage (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.

[0155] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0156] The aforementioned storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0157] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. The processor and storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic control unit or main control device.

[0158] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0159] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A data processing method, characterized in that, include: Obtain the device resources of the first problem and the first device, wherein the first device includes a database; When the device resources are less than or equal to a first threshold, the first question is sent to the second device, and the answer to the first question sent by the second device is received; When the device resources are greater than the first threshold, the type of the first question is determined, and the answer to the first question is determined based on the first question, the type of the first question, and the second device.

2. The method according to claim 1, characterized in that, Determining the answer to the first question based on the first question, the type of the first question, and the second device includes: Determine the complexity of the first problem based on its type; The answer to the first question is determined based on the complexity of the first question, the first question, and the second device.

3. The method according to claim 2, characterized in that, Based on the complexity of the first question, the first question, and the second device, the answer to the first question is determined, including: When the complexity of the first question is greater than or equal to the second threshold, the first question is sent to the second device, and the answer to the first question sent by the second device is received. When the complexity of the first problem is less than the second threshold, the first problem is processed to obtain the first answer and the completion degree of the first problem, and the answer to the first problem is determined based on the first answer, the completion degree and the second device.

4. The method according to claim 3, characterized in that, Determining the answer to the first question based on the first answer, the completion rate, and the second device includes: When the completion rate is greater than or equal to the third threshold, the first answer is determined as the answer to the first question; When the completion rate is less than the third threshold, in the first question, an incomplete second question is identified, and based on the second question, the first answer, and the second device, the answer to the first question is determined.

5. The method according to claim 4, characterized in that, Determining the answer to the first question based on the second question, the first answer, and the second device includes: Send the second question and the first answer to the second device; Receive the answer to the first question sent by the second device.

6. The method according to any one of claims 3-5, characterized in that, The first question is processed to obtain the first answer to the first question, including: The cache of the first device is determined, and the cache includes a third question and the answer to the third question, wherein the third question is a question processed by the first device within a historical period. Based on the cache and the database, the answer to the first question is processed to obtain the first answer to the first question.

7. The method according to claim 6, characterized in that, Based on the cache and the database, the answer to the first question is processed to obtain the first answer to the first question, including: Determine in the cache whether there is a third problem with the same semantics as the first problem; If a third question with the same semantics as the first question exists in the cache, then the answer to the third question with the same semantics as the first question in the cache is determined as the first answer to the first question; If no third question with the same semantics as the first question exists in the cache, then the first question is retrieved from the database to obtain the first answer to the first question.

8. A data processing apparatus, characterized in that, include: The module consists of an acquisition module, a send / receive module, and a determination module. The acquisition module is used to acquire the first problem and the device resources of the first device, wherein the first device includes a database; The transceiver module is used to send the first question to the second device and receive the answer to the first question sent by the second device when the device resources are less than or equal to a first threshold. The determining module is used to determine the type of the first question when the device resources are greater than the first threshold, and to determine the answer to the first question based on the first question, the type of the first question, and the second device.

9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 7.

11. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 7.