Information processing method, device, equipment, storage medium and computer program product
Through the information processing method of multi-agent collaborative work, the input data type is identified, the problem is disassembled, and the corresponding agent is used for retrieval or reasoning. This solves the problem of low accuracy of a single model in chart question and answer, and improves the accuracy and system of chart question and answer. flexibility.
Patent Information
- Application Number
- CN202411087998.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-09
AI Technical Summary
When the existing technology handles chart question and answer tasks, the accuracy of a single model is low, and it is difficult to fully understand and analyze chart information, resulting in insufficient question and answer accuracy.
Using an information processing method in which multiple agents work together, by identifying the input data type, calling the target model for content identification, disassembling the problem, determining the sub-problem type, and using the corresponding agent to perform retrieval or reasoning to obtain the answer, including information location retrieval, Information reasoning computing and multimodal diagram question answering.
It significantly improves the accuracy and relevance of chart question and answer, improves processing efficiency, supports diverse question and answer, enhances system flexibility, and solves the problem of low accuracy of a single model in complex chart question and answer.
Smart Images

Figure CN118626626B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to an information processing method, apparatus, device, storage medium and computer program product. Background Art
[0002] With the rapid development of artificial intelligence technology, large pre-trained language models have demonstrated powerful capabilities in natural language processing tasks. However, when faced with complex chart question-answering tasks, a single large model often fails to meet the needs. Specifically, the existing technology has the problem of limited capabilities of a single model when dealing with chart question-answering tasks. For example, a single model is insufficient in processing complex and diverse chart question-answering tasks, and it is difficult to fully understand and parse chart information, resulting in low accuracy in question-answering.
[0003] As described above, the information processing solutions for chart question and answer in the prior art have problems such as low accuracy. Summary of the invention
[0004] The purpose of the present application is to provide an information processing method, apparatus, device, storage medium and computer program product to solve the problem of low accuracy of information processing solutions for chart questions and answers in the prior art.
[0005] In order to solve the above technical problems, the present application provides an information processing method, including:
[0006] Using a first agent, identifying a first type of input data, and calling a target model to perform content recognition on the input data according to the first type to obtain reference content;
[0007] Using a second agent, according to the reference content and the content included in the input question, obtain at least one sub-question corresponding to the question;
[0008] using the second agent, determining a second type of the subproblem;
[0009] The answer to the question is obtained by using other agents; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type.
[0010] Optionally, the other agent includes at least one of the following:
[0011] The third agent is used for information location retrieval;
[0012] The fourth agent is used for information reasoning calculations;
[0013] Fifth Agent,for Multimodal Graph Question Answering.
[0014] Optionally, the using other agents to obtain the answer to the question includes:
[0015] When the first type indicates that the input data is graph data, and the second type indicates that the sub-question is a retrieval type question or a reasoning type question, using the fifth agent to obtain an answer to the sub-question; and obtaining an answer to the question based on the answer to the sub-question;
[0016] In the case where the first type indicates that the input data is tabular data, and the second type indicates that the sub-question is a retrieval type question, using the third agent to obtain an answer to the sub-question according to the reference content; in the case where the answer to the sub-question is obtained, obtaining an answer to the question according to the answer to the sub-question; in the case where the answer to the sub-question is not obtained, using the fourth agent to perform an inference operation to obtain an answer to the question;
[0017] When the first type indicates that the input data is tabular data, and the second type indicates that the sub-problem is a reasoning type problem, the fourth agent is used to perform a reasoning operation to obtain an answer to the problem.
[0018] Optionally, the using the fourth agent to perform a reasoning operation to obtain an answer to the question includes:
[0019] Determining, using the fourth agent, target data required to obtain an answer to the sub-question;
[0020] Using the fourth agent, according to the target data, reasoning to obtain an answer to the sub-question;
[0021] The fourth agent is used to obtain an answer to the question based on the answers to the sub-questions.
[0022] Optionally, the using the fourth agent to infer the answer to the sub-question according to the target data includes:
[0023] In the case that the search result output by the third agent according to the reference content includes the complete target data, the fourth agent is used to infer the answer to the sub-question according to the target data.
[0024] Optionally, the other agents further include: a sixth agent for external information query;
[0025] The using the fourth agent to infer the answer to the sub-question according to the target data includes:
[0026] In a case where the search result output by the third agent according to the reference content includes the first data in the target data, using the sixth agent to obtain other data in the target data except the first data from a preset database;
[0027] When the other data is obtained, the fourth agent is used to infer the answer to the sub-question based on the target data.
[0028] Optionally, the using the fourth agent to determine the target data required to obtain the answer to the sub-question includes:
[0029] Using the fourth agent, obtaining a logic formula corresponding to the sub-problem;
[0030] Using the fourth agent, obtaining keywords corresponding to the logic formula, and using data corresponding to the keywords as target data required to obtain an answer to the sub-question;
[0031] The method further comprises:
[0032] The third agent is used to perform key-value matching between the keyword and the reference content to obtain a search result.
[0033] Optionally, also include:
[0034] Using the seventh agent, according to the answer to the question and the evaluation information of the answer to the question, determining the agent to be optimized; the agent to be optimized includes: at least one of the first agent, the second agent and other agents;
[0035] The seventh agent is used to perform iterative training on the agent to be optimized.
[0036] The present application also provides an information processing device, including:
[0037] A first processing module, configured to use a first agent to identify a first type of input data, and to call a target model to perform content recognition on the input data according to the first type to obtain reference content;
[0038] A second processing module, configured to obtain, using a second agent, at least one sub-question corresponding to the question according to the reference content and the content included in the input question;
[0039] A third processing module, configured to determine a second type of the sub-problem using the second agent;
[0040] The fourth processing module is used to obtain the answer to the question by using other agents; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type.
[0041] Optionally, the other agent includes at least one of the following:
[0042] The third agent is used for information location retrieval;
[0043] The fourth agent is used for information reasoning calculations;
[0044] Fifth Agent,for Multimodal Graph Question Answering.
[0045] Optionally, the using other agents to obtain the answer to the question includes:
[0046] When the first type indicates that the input data is graph data, and the second type indicates that the sub-question is a retrieval type question or a reasoning type question, using the fifth agent to obtain an answer to the sub-question; and obtaining an answer to the question based on the answer to the sub-question;
[0047] In the case where the first type indicates that the input data is tabular data, and the second type indicates that the sub-question is a retrieval type question, using the third agent to obtain an answer to the sub-question according to the reference content; in the case where the answer to the sub-question is obtained, obtaining an answer to the question according to the answer to the sub-question; in the case where the answer to the sub-question is not obtained, using the fourth agent to perform an inference operation to obtain an answer to the question;
[0048] When the first type indicates that the input data is tabular data, and the second type indicates that the sub-problem is a reasoning type problem, the fourth agent is used to perform a reasoning operation to obtain an answer to the problem.
[0049] Optionally, the using the fourth agent to perform a reasoning operation to obtain an answer to the question includes:
[0050] Determining, using the fourth agent, target data required to obtain an answer to the sub-question;
[0051] Using the fourth agent, according to the target data, reasoning to obtain an answer to the sub-question;
[0052] The fourth agent is used to obtain an answer to the question based on the answers to the sub-questions.
[0053] Optionally, the using the fourth agent to infer the answer to the sub-question according to the target data includes:
[0054] In the case that the search result output by the third agent according to the reference content includes the complete target data, the fourth agent is used to infer the answer to the sub-question according to the target data.
[0055] Optionally, the other agents further include: a sixth agent for external information query;
[0056] The using the fourth agent to infer the answer to the sub-question according to the target data includes:
[0057] In a case where the search result output by the third agent according to the reference content includes the first data in the target data, using the sixth agent to obtain other data in the target data except the first data from a preset database;
[0058] When the other data are obtained, the fourth agent is used to infer the answer to the sub-question based on the target data.
[0059] Optionally, the using the fourth agent to determine the target data required to obtain the answer to the sub-question includes:
[0060] Using the fourth agent, obtaining a logic formula corresponding to the sub-problem;
[0061] Using the fourth agent, obtaining keywords corresponding to the logic formula, and using data corresponding to the keywords as target data required to obtain an answer to the sub-question;
[0062] The device also includes:
[0063] The fifth processing module is used to use the third agent to perform key-value matching between the keyword and the reference content to obtain a search result.
[0064] Optionally, also include:
[0065] a sixth processing module, configured to use the seventh agent to determine an agent to be optimized according to the answer to the question and the evaluation information of the answer to the question; the agent to be optimized includes: at least one of the first agent, the second agent and other agents;
[0066] The seventh processing module is used to use the seventh agent to perform iterative training on the agent to be optimized.
[0067] An embodiment of the present application also provides an information processing device, including a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the above-mentioned information processing method is implemented.
[0068] An embodiment of the present application also provides a readable storage medium on which a program is stored, and when the program is executed by a processor, the steps in the above-mentioned information processing method are implemented.
[0069] An embodiment of the present application also provides a computer program product, including computer instructions, which implement the steps of the above-mentioned information processing method when executed by a processor.
[0070] The beneficial effects of the above technical solution of the present application are as follows:
[0071] In the above scheme, the information processing method utilizes a first agent to identify a first type of input data, and calls a target model to perform content recognition on the input data according to the first type to obtain reference content; utilizes a second agent to obtain at least one sub-problem corresponding to the question according to the reference content and the content contained in the input question; utilizes the second agent to determine the second type of the sub-problem; utilizes other agents to obtain the answer to the question; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type; it can support the use of multiple agents to work together, significantly improve the accuracy and relevance of chart questions and answers, and improve processing efficiency, support the processing of diverse questions and answers, and enhance system flexibility, thereby well solving the problem of low accuracy of information processing solutions for chart questions and answers in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 This is a flowchart of the information processing method according to an embodiment of the present application;
[0073] Figure 2 This is a schematic diagram of an agent in an embodiment of the present application;
[0074] Figure 3 A schematic diagram of a specific implementation flow of the information processing method of an embodiment of the present application;
[0075] Figure 4 This is a schematic diagram of the structure of an information processing device according to an embodiment of the present application. DETAILED DESCRIPTION
[0076] In order to make the technical problems, technical solutions and advantages to be solved by the present application clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0077] This application aims to solve the problem of low accuracy of information processing solutions for chart questions and answers in the existing technology, and provides an information processing method, such as Figure 1 As shown, including:
[0078] Step 11: Using a first agent, identify a first type of input data, and call a target model to perform content recognition on the input data according to the first type to obtain reference content.
[0079] The input data may include: data input by a user, such as a chart; the reference content may include: content obtained based on the input data, such as: at least one of the text, data and structural information extracted from the chart.
[0080] The first agent can be understood as being used for chart modality judgment, which includes: chart type identification, i.e. determining the first type; and modality data processing, i.e. obtaining the reference content;
[0081] The first type may be tabular data, and the corresponding target type is a large language model; or the first type may be chart data, and the corresponding target type is a multimodal large graphic and text model; but the present invention is not limited thereto.
[0082] Step 12: Using a second agent, according to the reference content and the content included in the input question, obtain at least one sub-question corresponding to the question.
[0083] Among them, "input questions" may include: questions input by users, such as questions input together with the input data; and / or, the second agent can be understood as being used for intent disambiguation scenario judgment, and the intent disambiguation scenario judgment includes: judging whether the question can be split into multiple queries, and if so, obtaining them, that is, obtaining the sub-questions corresponding to the question, but is not limited to this.
[0084] Step 13: Using the second agent, determine the second type of the sub-problem.
[0085] Among them, "determining the second type of the sub-question" may include: determining whether the sub-question can be found directly from the reference content, if so, determining that the sub-question is a search query, if not, it means that further reasoning ability is required, and determining that the sub-question is a reasoning query; but it is not limited to this. Here, it can be understood that the above-mentioned intention disambiguation scenario judgment also includes: performing search reasoning analysis on the disassembled (i.e. split) questions (i.e., the disassembled single query) to determine whether the sub-question is a search query or a reasoning query, but it is not limited to this.
[0086] Step 14: using other agents to obtain answers to the questions; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type.
[0087] The other agents include: agents that can be used to search for a search query to obtain a corresponding answer, and / or agents that can be used to reason for a reasoning query to obtain a corresponding answer, which are not limited here. Regarding "the other agents correspond to the first type and the second type", it can be understood that the specific other agents used in step 14 are determined according to the first type of the input data and the second type of the sub-question, but are not limited to this.
[0088] The information processing method provided in the embodiment of the present application utilizes a first agent to identify a first type of input data, and calls a target model according to the first type to perform content recognition on the input data to obtain reference content; utilizes a second agent to obtain at least one sub-question corresponding to the question according to the reference content and the content contained in the input question; utilizes the second agent to determine a second type of the sub-question; utilizes other agents to obtain answers to the questions; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type; it can support the use of multiple agents to work together, significantly improve the accuracy and relevance of chart questions and answers, and improve processing efficiency, support the processing of diverse questions and answers, and enhance system flexibility, thereby well solving the problem of low accuracy of information processing solutions for chart questions and answers in the prior art.
[0089] Among them, the other agents include at least one of the following: a third agent for information location retrieval; a fourth agent for information reasoning calculation; a fifth agent for multimodal graph question and answer. This can support the execution of solutions for multiple scenarios. Among them, the third agent can realize information retrieval by means of key value matching, etc., which is not limited here.
[0090] In the embodiment of the present application, the use of other agents to obtain the answer to the question includes: (1) when the first type indicates that the input data is chart data and the second type indicates that the sub-question is a retrieval type question or a reasoning type question, the fifth agent is used to obtain the answer to the sub-question; and the answer to the question is obtained according to the answer to the sub-question; (2) when the first type indicates that the input data is table data and the second type indicates that the sub-question is a retrieval type question, the third agent is used to obtain the answer to the sub-question according to the reference content; when the answer to the sub-question is obtained, the answer to the question is obtained according to the answer to the sub-question; when the answer to the sub-question is not obtained, the fourth agent is used to perform reasoning operations to obtain the answer to the question; (3) when the first type indicates that the input data is table data and the second type indicates that the sub-question is a reasoning type question, the fourth agent is used to perform reasoning operations to obtain the answer to the question. In this way, the answer to the question can be obtained for a variety of situations. Among them, "obtaining the answer to the question according to the answers to the sub-questions" may include: when the question includes one sub-question, the answer to the sub-question may be used as the answer to the question; when the question includes at least two sub-questions, the answers to the sub-questions may be combined to obtain the answer to the question. For example, if the question is: "What is the operating income of Company A in 2023? What is the operating income of Company B in 2023", the answer to the sub-question "What is the operating income of Company A in 2023" and the answer to the sub-question "What is the operating income of Company B in 2023" may be obtained, and then the answers to the two sub-questions may be combined (each of which sub-question the answer corresponds to) to obtain a total answer as the answer to the question.
[0091] The use of the fourth agent to perform reasoning operations to obtain the answer to the question includes: using the fourth agent to determine the target data required to obtain the answer to the sub-question; using the fourth agent to infer the answer to the sub-question based on the target data; and using the fourth agent to obtain the answer to the question based on the answer to the sub-question. In this way, the answer to the question can be accurately obtained using the fourth agent.
[0092] In the embodiment of the present application, the use of the fourth agent to infer the answer to the sub-question according to the target data includes: when the retrieval result output by the third agent according to the reference content includes the complete target data, the fourth agent is used to infer the answer to the sub-question according to the target data. In this way, when the reference content contains all the data required for the fourth agent to infer, the answer to the sub-question can be directly inferred. Among them, the "retrieval result output by the third agent according to the reference content" can be directly output by the third agent to the fourth agent, or it can be obtained by the fourth agent calling the third agent to process the reference content, which is not limited here. Among them, "the complete target data" can include: all data required for the fourth agent to perform reasoning operations, but is not limited to this.
[0093] Furthermore, the other agents also include: a sixth agent for external information query; the use of the fourth agent to infer the answer to the sub-question according to the target data includes: when the search result output by the third agent according to the reference content includes the first data in the target data, the sixth agent is used to obtain other data in the target data except the first data from the preset database; when the other data is obtained, the fourth agent is used to infer the answer to the sub-question according to the target data. In this way, when the reference content contains part of the data required for the fourth agent to infer, the fourth agent can obtain the remaining part of the required data after indirect query, and then infer to obtain the answer to the sub-question.
[0094] Among them, "the retrieval result output by the third agent based on the reference content includes the first data in the target data" can be understood as: the retrieval result indicates that the reference content only contains part of the target data (that is, all the data required for the fourth agent to reason, such as the sales value and growth rate in 2023) (such as the sales value); in this case, it is necessary to obtain the rest of the target data (such as the growth rate value) from the outside; based on this, the complete target data is obtained; on this basis, the fourth agent performs reasoning.
[0095] In the embodiment of the present application, the use of the fourth agent to determine the target data required to obtain the answer to the sub-question includes: using the fourth agent to obtain the logic formula corresponding to the sub-question; using the fourth agent to obtain the keyword corresponding to the logic formula, and using the data corresponding to the keyword as the target data required to obtain the answer to the sub-question; the method also includes: using the third agent to match the keyword with the reference content to obtain the search result. This can support the accurate determination of the data required for the fourth agent to perform reasoning and the accurate acquisition of the search result by the third agent.
[0096] Among them, "obtaining the logical formula corresponding to the sub-question", for example: the question is: "What is the year-on-year growth rate of sales in 2023?", is mapped to the logical formula "(2023 sales - 2022 sales) / 2022 sales", but it is not limited to this. In addition, "using the third agent to match the keywords with the reference content to obtain search results" can be based on the above keywords to perform key-value matching, and then specifically implement the search; however, the above "the third agent outputs the search results based on the reference content" only uses the search results of the third agent, and does not limit the specific method of obtaining the search results.
[0097] Furthermore, the information processing method further includes: using a seventh agent to determine an agent to be optimized according to the answer to the question and the evaluation information of the answer to the question; the agent to be optimized includes: at least one of the first agent, the second agent and other agents; using the seventh agent to perform iterative training on the agent to be optimized. In this way, the accuracy of the agent output result can be guaranteed, and then the accuracy of the answer obtained by this solution can be guaranteed. Among them, "determining the agent to be optimized according to the answer to the question and the evaluation information of the answer to the question" may include: when the number of data sets generated by the seventh agent according to the answer to the question reaches a quantity threshold, and the accuracy of at least one of the first agent, the second agent and other agents is lower than the accuracy threshold, determining the agent to be optimized according to the answer to the question and the evaluation information of the answer to the question; but it is not limited to this. In addition, the iterative training for the agent to be optimized may include: constructing a training set for the agent to be optimized, and performing iterative training on the agent to be optimized according to the training set; but it is not limited to this.
[0098] The information processing method provided in the embodiments of the present application is described below with examples.
[0099] In response to the above technical problems, the embodiments of the present application provide an information processing method, which can be specifically implemented as a large-model intelligent cluster collaborative graph question-answering solution, and can also be understood as a solution for processing graph question-answering through the collaborative work of a large model and multiple intelligent agents. Specifically, this solution may include the following contents:
[0100] 1. Chart parsing module;
[0101] The chart parsing module can be used to parse the charts uploaded by users (corresponding to the above input data) and extract the text, data and structure information in the charts. Specifically, it can include the following sub-modules:
[0102] 1. OCR recognition module, which can be used for:
[0103] (1) Use optical character recognition (OCR) technology to recognize text information in charts.
[0104] (2) Call open source OCR tools.
[0105] (3) Extract text information such as chart titles, axis labels, and data labels.
[0106] 2. Data extraction module, which can be used to:
[0107] (1) Use image processing technology and pattern recognition algorithms to identify elements such as data points, lines, and bars in charts.
[0108] (2) Convert the graphic elements in the chart into structured data (such as CSV or JSON format).
[0109] 2. User interaction module;
[0110] The user interaction module can be used to obtain the question-and-answer requirements input by the user, including the selection of charts and specific questions (corresponding to the questions input above), and can specifically include the following sub-modules:
[0111] 1. Problem analysis module, which can be used to:
[0112] (1) Parse the natural language questions input by users and convert them into query requests using natural language processing (NLP) technology.
[0113] (2) Use pre-trained language models (such as BERT (Bidirectional Encoder Representations from Transformers) and GPT (Generative Pre-Training)) for question understanding and semantic parsing.
[0114] (3) Associate the parsed query with the chart information to determine the target object and context information of the question.
[0115] 3. Intelligent cluster system;
[0116] like Figure 2 As shown in the (Intelligent Agent Cluster Capability Diagram), the intelligent agent system includes multiple intelligent agents, each of which can be used to perform specific tasks and collaborate to process graph question-answering tasks. Specifically, it includes the following agents and their implementation solutions:
[0117] Agent 1 (chart modal judgment):
[0118] 1) Chart type identification:
[0119] Analyze the uploaded chart types and distinguish between tables (wired tables, wireless tables) and chart data (line charts, bar charts, scatter charts, pie charts, etc.). Specifically, various uploaded documents and table data can be processed as images (including processing videos into single frames), and then the table and chart data are obtained, and the data types are classified (chart data, or table data, i.e., text tables).
[0120] Figure 2 Complex merged cell dependency refers to the situation where cells may be merged in the table; complex logical diagram relationship diagram refers to other diagrams besides the above four types of diagrams (line chart, bar chart, scatter chart, pie chart), such as four-dimensional guide map, etc.; for chart data, image vectorization can be performed, and image vectorization refers to obtaining the vector information of the image.
[0121] 2) Modal data processing:
[0122] In this solution, the OCR recognition module can be used to extract the table information and convert it into text (i.e. perform OCR recognition and convert it into a text table), and then call the large language model for question answering (i.e. execute the table class processing branch flow).
[0123] Among them, for chart data, you can directly call the multimodal graphic and text model to perform question and answer (that is, execute the processing branch flow of the chart class).
[0124] Agent 2 (intention disambiguation scenario judgment):
[0125] 1) Based on user questions (i.e. user queries) and graph information, use the large language model to determine whether the question can be split into multiple queries (i.e. perform multi-parallel query parsing and splitting), for example:
[0126] "What is the operating income of Company A in 2023, and what about Company B?" → Split into: "What is the operating income of Company A in 2023, and what is the operating income of Company B in 2023".
[0127] 2) Perform retrieval reasoning analysis on the decomposed questions (i.e., the decomposed single queries), that is, determine whether the query can be found directly from the table content (i.e., the table uploaded by the user). If it can be found, it is a retrieval query. If not, it means that further reasoning ability is required, that is, a reasoning query.
[0128] Agent 3 (information location retrieval):
[0129] 1) Domain knowledge transformation and language point (keyword) positioning;
[0130] Based on the table data and query content, locate the keywords used for retrieval; for example, if the query is "What is the P / E ratio of Company A in 2023?", and there is a column named 2023PE in the table data, it is necessary to clarify that the 2023 P / E ratio and 2023PE are in a corresponding relationship, so the keywords are 2023 and PE;
[0131] 2) Cell information retrieval;
[0132] Based on the keywords and table contents, the search value (corresponding to the above search results) is obtained to answer the question; when using a large language model, the CoT (chain of thought) instruction can be used to fine-tune Agent 3 to enhance the accuracy of question and answer. The "multi-dimensional space enhancement" under Agent 3 in the figure can be obtained in advance during Agent 3 training, such as setting the attention of the input (label addition instruction) to ensure the accuracy of the results obtained by subsequent calls. Information integration is similar and will not be repeated here.
[0133] Agent 4 (complex reasoning calculation):
[0134] 1) Reasoning calculation and logical analysis;
[0135] Based on the inference query, a large language model is used to analyze the data values (i.e., the values required to complete the inference) and the inference steps (i.e., the actions required to complete the inference) required to complete the question and answer. The data values may come from agent 3 and / or agent 5.
[0136] 2) Reasoning execution verification (i.e., performing reasoning steps and execution verification);
[0137] According to the reasoning steps and data values determined in 1) above, they are executed step by step to generate answers; then, further related processing such as key-value matching, formula conversion, CoT instruction adjustment, etc. can be performed to clarify the final reasoning result, which can further improve the accuracy, but is not limited to this.
[0138] Among them, "according to the reasoning steps and data values determined in 1) above, executing step by step to generate an answer" may include the following operations:
[0139] 1. Perform formula conversion based on the reasoning query and construct a formula mapping (corresponding to using the fourth agent to obtain the logical formula corresponding to the sub-problem):
[0140] (1) For example, if the question is: "What is the year-on-year growth rate of sales in 2023?", it is mapped to the formula "(2023 sales - 2022 sales) / 2022 sales";
[0141] 2. Perform word segmentation and entity recognition on the formula, extract keywords and related table fields (from the user uploaded data); wherein “extracting keywords” may correspond to using the fourth agent to obtain keywords corresponding to the logic formula, and using the data corresponding to the keywords as target data required to obtain the answer to the sub-question;
[0142] 3. Key-value matching, calling agent 3 to obtain the value of the cell related to the question (for the case of a search question, agent 4 can directly use the output of agent 3, or call agent 3 again to obtain the search value; for the case of a reasoning question, agent 4 directly calls agent 3 to obtain the search value); corresponding to the above-mentioned use of the third agent, the keyword is matched with the reference content by key value to obtain the search result;
[0143] (1) Among them, the matching of keywords and table fields is divided into:
[0144] 1) Exact match, that is, the two are exactly the same;
[0145] 2) Fuzzy matching, which can be performed by thesaurus matching, Levenshtein (edit) distance, and LLM (large language model) matching. The final result is the majority set of the three matching results (that is, the value with the largest number among the three matching results). If the three matching results are inconsistent, the LLM matching result can be selected.
[0146] (2) determining whether all required values are obtained from agent 3 (i.e., whether the search results output by the third agent based on the reference content include the complete target data); if the data is incomplete, agent 5 may be called to obtain the external information query result, corresponding to the above-mentioned case where the search results output by the third agent based on the reference content include the first data in the target data, using the sixth agent to obtain the other data in the target data except the first data from the preset database;
[0147] The above operations 2 and 3 can be understood as extracting the keyword in the formula, and then obtaining information related to the keyword in the user input content for matching.
[0148] 4. Using agent 4 to obtain the final answer based on the calculation formula and the values of the relevant cells; corresponding to the above-mentioned use of the fourth agent to infer the answer to the sub-question based on the target data.
[0149] Agent 5 (external information query):
[0150] When the retrieved table data is not sufficient to answer the user's question, the external information query agent (i.e. agent 5, corresponding to the sixth agent mentioned above) is enabled, which is divided into:
[0151] 1) RAG (Retrieval-augmented Generation) module;
[0152] This module can retrieve information fragments related to the query from the domain database, including text, images, or tables, for the reasoning execution of Agnet 4;
[0153] 2) Database query;
[0154] Specifically, the user's query can be converted from text into a database query statement, such as text2sql, and the query statement can be executed in the private domain data center to query the data required to answer the query for the reasoning execution of Agnet 4.
[0155] Agent 6 (Multimodal Graph Question Answering):
[0156] When the data type is a picture (corresponding to the chart type being chart data) rather than text recognized by OCR (corresponding to the chart type being a table), the multimodal chart question-answering model can be used directly to obtain the answer to the question; that is, for both the inference query and the retrieval query, the multimodal chart question-answering model is directly called to obtain the question-answering result.
[0157] In this solution, when the data type includes both images and "OCR-recognized text", the branch processing flow of the large language model can be executed.
[0158] Agent 7 (case feedback iteration);
[0159] 1. Obtain user evaluation (i.e. user evaluation of functional experience, corresponding to the evaluation information of the answers to the above questions), combine it with the history of the overall workflow (i.e. the Q&A process history, which may include the answers to the above questions), and use LLM to analyze the entire process to determine the reasons for obtaining the evaluation;
[0160] 2. Classify the deficiencies by agent, and determine in which agent the error occurred; that is, determine the pros and cons of the case, analyze the causes, and obtain the analysis results; corresponding to the seventh agent mentioned above, determine the agent to be optimized based on the answer to the question and the evaluation information of the answer to the question;
[0161] 3. Automatically construct a training set for the error points, perform cleaning and deduplication, and iteratively train the model to improve the agent capabilities; that is, classify the agents and construct a training set, and adaptively iterate the agents; corresponding to the above iterative training for the agent to be optimized.
[0162] 4. Agent cluster collaboration central module (Agent X), namely Figure 2 Agent X-table intelligent question and answer center in ;
[0163] Among them, the intelligent cluster coordination center can be used for interaction between intelligent clusters: mobilizing multiple agents to perform chart questions and answers according to the division of labor process. Specifically: the intelligent cluster coordination center can be used to coordinate the collaboration between various intelligent agents (such as Figure 3 The hub includes the following functions:
[0164] Task allocation: Dynamically assign tasks to corresponding intelligent agents based on user questions and diagram types.
[0165] Result verification: Verify the intermediate results generated by each intelligent agent (such as the search results of agent 3) to ensure their accuracy and consistency.
[0166] Feedback mechanism: adjust agent parameters based on user feedback (regularly iterate and optimize agents) and agent collaboration mechanisms, etc.
[0167] Specifically, the central intelligent-agent collaborative scheduling process (i.e., the Agent X interactive scheduling process) can be as follows: Figure 3 As shown, the following operations are included:
[0168] 1. Agent 1 (corresponding to the first agent mentioned above) obtains a document. Assuming that the document type includes a text document or a video, a screenshot can be taken to classify the data type, and a large language model or a multimodal image-text large model can be used accordingly; assuming that the data type (corresponding to the first type mentioned above) is a text table, a large language model can be used for content recognition; assuming that the data type (corresponding to the first type mentioned above) is chart data, a multimodal image-text large model can be used for content recognition;
[0169] This operation corresponds to the above-mentioned use of the first agent to identify the first type of input data, and calling the target model to perform content recognition on the input data according to the first type to obtain reference content.
[0170] 2. Calling agent 2 (corresponding to the above-mentioned second agent) to decompose the user's question and determine whether reasoning ability is required; that is, decomposing the question into at least one sub-question, and determining whether the at least one sub-question obtained by decomposing the question is a retrieval query or a reasoning query; this operation corresponds to the above-mentioned use of the second agent to obtain at least one sub-question corresponding to the question based on the reference content and the content contained in the input question; using the second agent, determining the second type of the sub-question.
[0171] The subsequent operations correspond to the above-mentioned use of other agents to obtain the answer to the question; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type.
[0172] 3. Tabular Question Answering for Large Language Models:
[0173] (1) Assume that the result of agent 2 indicates that the sub-problem is a retrieval query:
[0174] 1) Call agent 3 (corresponding to the third agent mentioned above) to obtain the search data (i.e., the search value). If the value is the answer to the user's question, the question and answer is terminated (i.e., if the user's question can be answered, the question and answer result is output); if it is not the answer to the question (i.e., it cannot answer the user's question), it is passed to agent 4 for reasoning question and answer;
[0175] This operation corresponds to the above-mentioned case where the first type indicates that the input data is tabular data and the second type indicates that the sub-question is a retrieval type question, using the third agent to obtain the answer to the sub-question according to the reference content; when the answer to the sub-question is obtained, obtaining the answer to the question according to the answer to the sub-question; when the answer to the sub-question is not obtained, using the fourth agent to perform reasoning operations to obtain the answer to the question.
[0176] (2) Assume that the result of agent 2 indicates that the sub-question is a reasoning query:
[0177] 1) Call agent 4 (corresponding to the fourth agent mentioned above). If all the values required to answer the question have been obtained (that is, all the data required for reasoning have been obtained), the answer is calculated step by step according to the reasoning analysis results; if the values required for reasoning are missing (that is, all the data required for reasoning have not been obtained), call agent 5 (corresponding to the sixth agent mentioned above) to retrieve the required data values from the external system (agent 5 returns the queried value); finally, the answer to the reasoning query is obtained, that is, the question and answer result is obtained;
[0178] This operation corresponds to the above-mentioned use of the fourth agent to perform a reasoning operation to obtain the answer to the question when the first type indicates that the input data is tabular data and the second type indicates that the sub-question is a reasoning type question. The use of the fourth agent to perform a reasoning operation to obtain the answer to the question includes: using the fourth agent to determine the target data required to obtain the answer to the sub-question; using the fourth agent to infer the answer to the sub-question based on the target data; using the fourth agent to obtain the answer to the question based on the answer to the sub-question. Wherein, the use of the fourth agent to infer the answer to the sub-question based on the target data includes: when the search result output by the third agent based on the reference content includes the complete target data, using the fourth agent to infer the answer to the sub-question based on the target data. Furthermore, the other agents also include: a sixth agent for external information query; the use of the fourth agent to infer the answer to the sub-question based on the target data includes: when the retrieval result output by the third agent based on the reference content includes the first data in the target data, using the sixth agent to obtain other data in the target data except the first data from a preset database; when the other data is obtained, using the fourth agent to infer the answer to the sub-question based on the target data.
[0179] 4. Question and answer on diagrams of multi-modal large-scale graphics and text models:
[0180] (1) Based on the result of agent 2, agent 6 (corresponding to the fifth agent mentioned above) is called, that is, the multimodal graph question-answering model is directly used to obtain the question-answering result; corresponding to the above, when the first type indicates that the input data is graph data, and the second type indicates that the sub-question is a retrieval type question or a reasoning type question, the fifth agent is used to obtain the answer to the sub-question; based on the answer to the sub-question, the answer to the question is obtained.
[0181] 5. Collect the Q&A results and user reviews of agents 3, 4, and 6, and combine them with the case flow ( Figure 3 The process shown in the figure) is input to agent 7 for feedback iteration optimization; specifically, the number of optimized training sets can be set to m. When the data set generated by agent 7 exceeds m, the agent can be trained and optimized; further, the evaluation set can be set to evaluate the accuracy of the agent. When it is lower than the threshold, it is updated and launched, otherwise the update can be ignored; wherein, a data set generated by agent 7 may include user input documents, input questions and Figure 3 At least one of the data shown is the entire process, user evaluation, and analysis results of question and answer results and user experience, but is not limited to this.
[0182] Here we explain: the intelligent body cluster capabilities correspond to Figure 2 In the figure, all the bold box parts can use different large language models or multimodal models, and the general model can be fine-tuned according to the task type to enhance the model capability; but this is not limited to this.
[0183] Based on the above, this plan mainly involves:
[0184] 1. In the scenario of graph question and answer, the construction of intelligent agent cluster and the functional separation of each intelligent agent;
[0185] 2. Multi-agent collaborative architecture: This solution introduces multiple intelligent agents, each of which completes the graph question-and-answer task through specific task division and collaboration.
[0186] In summary, this solution has the following beneficial effects:
[0187] 1. Improved accuracy of question answering: Through the collaborative work of large models and multiple intelligent agents, the accuracy and relevance of graph question answering are significantly improved.
[0188] 2. Improved processing efficiency: The collaborative mechanism of the intelligent agent system optimizes the efficiency of information processing and answer generation.
[0189] 3. Enhance system flexibility: able to handle diverse user needs and provide personalized answers.
[0190] 4. Optimize user experience: significantly improve user experience through accurate answers and efficient response speed.
[0191] It is explained here that an information processing system can also be implemented based on the concept of this solution, including the various agents involved above; this is not limited here.
[0192] The present application also provides an information processing device, such as Figure 4 As shown, including:
[0193] A first processing module 41 is used to use a first agent to identify a first type of input data, and call a target model to perform content recognition on the input data according to the first type to obtain reference content;
[0194] A second processing module 42 is used to obtain at least one sub-question corresponding to the question by using a second agent according to the reference content and the content included in the input question;
[0195] A third processing module 43, configured to determine a second type of the sub-problem by using the second agent;
[0196] The fourth processing module 44 is configured to obtain an answer to the question by using other agents; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type.
[0197] The information processing device provided in the embodiment of the present application utilizes a first agent to identify a first type of input data, and calls a target model according to the first type to perform content recognition on the input data to obtain reference content; utilizes a second agent to obtain at least one sub-question corresponding to the question according to the reference content and the content contained in the input question; utilizes the second agent to determine a second type of the sub-question; utilizes other agents to obtain an answer to the question; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type; it can support the use of multiple agents to work together, significantly improve the accuracy and relevance of chart questions and answers, and improve processing efficiency, support the processing of diverse questions and answers, and enhance system flexibility, thereby well solving the problem of low accuracy of information processing solutions for chart questions and answers in the prior art.
[0198] Among them, the other agents include at least one of the following: a third agent, used for information location retrieval; a fourth agent, used for information reasoning calculation; a fifth agent, used for multimodal graph question and answer.
[0199] In an embodiment of the present application, the use of other agents to obtain the answer to the question includes: (1) when the first type indicates that the input data is chart data and the second type indicates that the sub-question is a retrieval type question or a reasoning type question, using the fifth agent to obtain the answer to the sub-question; and obtaining the answer to the question based on the answer to the sub-question; (2) when the first type indicates that the input data is tabular data and the second type indicates that the sub-question is a retrieval type question, using the third agent to obtain the answer to the sub-question based on the reference content; when the answer to the sub-question is obtained, obtaining the answer to the question based on the answer to the sub-question; when the answer to the sub-question is not obtained, using the fourth agent to perform a reasoning operation to obtain the answer to the question; (3) when the first type indicates that the input data is tabular data and the second type indicates that the sub-question is a reasoning type question, using the fourth agent to perform a reasoning operation to obtain the answer to the question.
[0200] The method of using the fourth agent to perform reasoning operations to obtain the answer to the question includes: using the fourth agent to determine target data required to obtain the answer to the sub-question; using the fourth agent to infer the answer to the sub-question based on the target data; and using the fourth agent to obtain the answer to the question based on the answer to the sub-question.
[0201] In an embodiment of the present application, the use of the fourth agent to infer the answer to the sub-question based on the target data includes: when the retrieval result output by the third agent based on the reference content includes the complete target data, using the fourth agent to infer the answer to the sub-question based on the target data.
[0202] Furthermore, the other agents also include: a sixth agent for external information query; the use of the fourth agent to infer the answer to the sub-question based on the target data includes: when the retrieval result output by the third agent based on the reference content includes the first data in the target data, using the sixth agent to obtain other data in the target data except the first data from a preset database; when the other data is obtained, using the fourth agent to infer the answer to the sub-question based on the target data.
[0203] Among them, the use of the fourth agent to determine the target data required to obtain the answer to the sub-question includes: using the fourth agent to obtain the logical formula corresponding to the sub-question; using the fourth agent to obtain the keywords corresponding to the logical formula, and using the data corresponding to the keywords as the target data required to obtain the answer to the sub-question; the device also includes: a fifth processing module, which is used to use the third agent to perform key-value matching on the keywords and the reference content to obtain retrieval results.
[0204] Furthermore, the information processing device also includes: a sixth processing module, used to use the seventh agent to determine the agent to be optimized according to the answer to the question and the evaluation information of the answer to the question; the agent to be optimized includes: at least one of the first agent, the second agent and other agents; the seventh processing module is used to use the seventh agent to perform iterative training on the agent to be optimized.
[0205] Among them, the implementation embodiments of the above-mentioned information processing method are all applicable to the embodiments of the information processing device and can achieve the same technical effects.
[0206] An embodiment of the present application also provides an information processing device, including a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the above-mentioned information processing method is implemented.
[0207] Among them, the implementation embodiments of the above-mentioned information processing method are all applicable to the embodiments of the information processing device and can achieve the same technical effects.
[0208] An embodiment of the present application also provides a readable storage medium on which a program is stored, and when the program is executed by a processor, the steps in the above-mentioned information processing method are implemented.
[0209] Among them, the implementation embodiments of the above-mentioned information processing method are all applicable to the embodiments of the readable storage medium and can achieve the same technical effects.
[0210] The embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the method embodiment of the above-mentioned information processing method are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0211] It should be noted that many functional components described in this specification are referred to as modules in order to more particularly emphasize the independence of their implementation methods.
[0212] In the embodiment of the present application, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0213] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices.Similarly, operation data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form.Described operation data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0214] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0215] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. An information processing method, characterized in that: include: Using a first agent, identifying a first type of input data, and calling a target model to perform content recognition on the input data according to the first type to obtain reference content; Using a second agent, according to the reference content and the content included in the input question, obtain at least one sub-question corresponding to the question; using the second agent, determining a second type of the subproblem; Using other agents, obtain answers to said questions; The other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type; Wherein, the other agents include at least one of the following: The third agent is used for information location retrieval; The fourth agent is used for information reasoning calculations; The fifth agent, for multimodal graph question answering; Wherein, the using other agents to obtain the answer to the question includes: When the first type indicates that the input data is graph data, and the second type indicates that the sub-question is a retrieval type question or a reasoning type question, using the fifth agent to obtain an answer to the sub-question; and obtaining an answer to the question based on the answer to the sub-question; In the case where the first type indicates that the input data is tabular data, and the second type indicates that the sub-question is a retrieval type question, using the third agent to obtain an answer to the sub-question according to the reference content; in the case where the answer to the sub-question is obtained, obtaining an answer to the question according to the answer to the sub-question; in the case where the answer to the sub-question is not obtained, using the fourth agent to perform an inference operation to obtain an answer to the question; When the first type indicates that the input data is tabular data, and the second type indicates that the sub-problem is a reasoning type problem, the fourth agent is used to perform a reasoning operation to obtain an answer to the problem.
2. The information processing method according to claim 1, characterized in that: The using the fourth agent to perform reasoning operations to obtain the answer to the question includes: Determining, using the fourth agent, target data required to obtain an answer to the sub-question; Using the fourth agent, according to the target data, reasoning to obtain an answer to the sub-question; The fourth agent is used to obtain an answer to the question based on the answers to the sub-questions.
3. The information processing method according to claim 2, characterized in that: The using the fourth agent to infer the answer to the sub-question according to the target data includes: In the case that the search result output by the third agent according to the reference content includes the complete target data, the fourth agent is used to infer the answer to the sub-question according to the target data.
4. The information processing method according to claim 2, characterized in that: The other agents also include: a sixth agent for external information query; The using the fourth agent to infer the answer to the sub-question according to the target data includes: In a case where the search result output by the third agent according to the reference content includes the first data in the target data, using the sixth agent to obtain other data in the target data except the first data from a preset database; When the other data is obtained, the fourth agent is used to infer the answer to the sub-question based on the target data.
5. The information processing method according to any one of claims 2 to 4, characterized in that: The using the fourth agent to determine the target data required to obtain the answer to the sub-question includes: Using the fourth agent, obtaining a logic formula corresponding to the sub-problem; Using the fourth agent, obtaining keywords corresponding to the logic formula, and using data corresponding to the keywords as target data required to obtain an answer to the sub-question; The method further comprises: The third agent is used to perform key-value matching between the keyword and the reference content to obtain a search result.
6. The information processing method according to claim 1, characterized in that: Also includes: Using the seventh agent, determining an agent to be optimized according to the answer to the question and the evaluation information of the answer to the question; The agent to be optimized includes: at least one of the first agent, the second agent and other agents; The seventh agent is used to perform iterative training on the agent to be optimized.
7. An information processing device, characterized in that: include: A first processing module, configured to use a first agent to identify a first type of input data, and to call a target model to perform content recognition on the input data according to the first type to obtain reference content; A second processing module, configured to obtain, using a second agent, at least one sub-question corresponding to the question according to the reference content and the content included in the input question; A third processing module, configured to determine a second type of the sub-problem using the second agent; a fourth processing module, configured to obtain an answer to the question by using other agents; the other agents are agents other than the first agent and the second agent, and the other agents correspond to the first type and the second type; Wherein, the other agents include at least one of the following: The third agent is used for information location retrieval; The fourth agent is used for information reasoning calculations; The fifth agent, for multimodal graph question answering; Wherein, the using other agents to obtain the answer to the question includes: When the first type indicates that the input data is graph data, and the second type indicates that the sub-question is a retrieval type question or a reasoning type question, using the fifth agent to obtain an answer to the sub-question; and obtaining an answer to the question based on the answer to the sub-question; In the case where the first type indicates that the input data is tabular data, and the second type indicates that the sub-question is a retrieval type question, using the third agent to obtain an answer to the sub-question according to the reference content; in the case where the answer to the sub-question is obtained, obtaining an answer to the question according to the answer to the sub-question; in the case where the answer to the sub-question is not obtained, using the fourth agent to perform an inference operation to obtain an answer to the question; When the first type indicates that the input data is tabular data, and the second type indicates that the sub-problem is a reasoning type problem, the fourth agent is used to perform a reasoning operation to obtain an answer to the problem.
8. An information processing device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the information processing method according to any one of claims 1 to 6 is implemented.
9. A readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps of the information processing method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the information processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Chart question-answering method and system based on multi-modal large model, medium and equipment
CN117390165A
Table question and answer optimization method and device, electronic equipment and readable storage medium
CN117874161A
