Information processing method and device based on large model, electronic equipment and intelligent agent

By expanding the problem and semantic analysis of the large language model, generating processing strategies and executing processing tasks, the problems of insufficient generalization ability and poor interpretability of the large language model in the existing technology are solved, and the accuracy and user experience of the reply information are improved .

CN118885688AActive Publication Date: 2024-11-01BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Application Number
CN202411367437.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-11-01
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

When dealing with complex and diverse problems, the existing large language models lack generalization capabilities and cannot fully understand the user's intention to ask questions, resulting in low accuracy and lack of interpretability of reply information.

Method used

By using a large model to expand the to-be-processed problems, generate target problem information, and perform semantic analysis to generate processing strategies, perform processing tasks according to logical relationships, and generate reply information for target problems.

Benefits of technology

It improves the generalization of the big model and the accuracy of the reply information, enhances the user experience, can better understand the user's intent to ask questions and provide logical reasoning process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885688A_ABST
    Figure CN118885688A_ABST
Patent Text Reader

Abstract

The invention provides an information processing method and device based on a large model, electronic equipment and an intelligent agent, belongs to the technical field of artificial intelligence, and particularly relates to the technical fields of large language models, computer vision, text processing, AI intelligent assistants and the like. The specific implementation scheme of the information processing method comprises the following steps: expanding to-be-processed problem information by using a large model to generate target problem information; wherein the target question information comprises at least one piece of associated question information, and the to-be-processed question information and the associated question information have similar questioning intentions; performing semantic analysis on the target problem information by using the large model to generate a target processing strategy; wherein the target processing strategy comprises a target logic relationship among processing tasks used for replying the target question information; and executing each processing task by calling the large model according to the target logic relationship, and generating reply information for the target question.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, in particular to large language models, computer vision, text processing, AI intelligent assistants, human-computer interaction and other technical fields, and specifically to information processing methods, devices, electronic devices and intelligent agents based on large models. Background Art

[0002] An AI agent is an intelligent entity that can perceive the environment, make decisions, and execute actions. This agent is usually based on machine learning and artificial intelligence technology, uses a large model as its core brain, and autonomously learns and improves in specific tasks or fields in a similar way to human thinking and execution processes, and is autonomous and adaptive. Summary of the invention

[0003] The present disclosure provides a large model-based information processing method, device, electronic device and intelligent agent.

[0004] According to one aspect of the present disclosure, a big model-based information processing method is provided, including: using a big model to expand the problem information to be processed to generate target problem information; wherein the target problem information includes at least one related problem information, wherein the problem information to be processed and the related problem information have similar question intentions; using a big model to perform semantic analysis on the target problem information to generate a target processing strategy; wherein the target processing strategy includes a target logical relationship between each processing task for replying to the target problem information; and executing each processing task according to the target logical relationship by calling the big model to generate reply information for the target problem.

[0005] According to another aspect of the present disclosure, there is provided an information processing device based on a large model, comprising: a question expansion module, a strategy generation module and a response generation module.

[0006] The question expansion module is used to expand the problem information to be processed using the large model to generate target problem information; wherein the target problem information includes at least one related problem information, wherein the problem information to be processed and the related problem information have similar question intentions.

[0007] The strategy generation module is used to use the large model to perform semantic analysis on the target question information and generate a target processing strategy; wherein the target processing strategy includes the target logical relationship between the processing tasks used to answer the target question information.

[0008] The answer generation module is used to execute various processing tasks according to the target logical relationship by calling the large model to generate answer information for the target question.

[0009] According to another aspect of the present disclosure, an intelligent agent is provided, including: an input module, a processing module and an output module.

[0010] The input module is used to receive information about problems to be processed.

[0011] The processing module is used to determine the target task based on the problem information to be processed received by the input module, determine the target large model based on the target task, and obtain the reply information by calling the target large model to execute the above method.

[0012] The output module is used to output the response information obtained by the processing module.

[0013] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0014] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method as described above.

[0015] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the method described above when executed by a processor.

[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0018] Figure 1 Schematically illustrates an exemplary system architecture to which a large model-based information processing method and device according to an embodiment of the present disclosure can be applied;

[0019] Figure 2 A flowchart of a large model-based information processing method according to an embodiment of the present disclosure is schematically shown;

[0020] Figure 3A A schematic diagram schematically shows a schematic diagram of using a large model to expand a problem to be processed according to an embodiment of the present disclosure;

[0021] Figure 3BA schematic diagram schematically shows a schematic diagram of using a large model to expand a problem to be processed according to another embodiment of the present disclosure;

[0022] Figure 4 A schematic diagram of using a large model to iteratively loop expand a problem according to an embodiment of the present disclosure is schematically shown;

[0023] Figure 5 A schematic diagram schematically shows a process strategy for generating a semantic analysis of target question information using a large model according to an embodiment of the present disclosure;

[0024] Fig. 6A A schematic diagram of problem optimization according to an embodiment of the present disclosure is schematically shown;

[0025] Figure 6B A schematic diagram of problem optimization according to another embodiment of the present disclosure is schematically shown;

[0026] Figure 6C A schematic diagram of problem optimization according to another embodiment of the present disclosure is schematically shown;

[0027] Figure 7 A schematic diagram schematically shows a method of executing various processing tasks according to target logical relationships by calling a large model according to an embodiment of the present disclosure;

[0028] Figure 8 A schematic diagram schematically shows a method of optimizing model parameters of a large model based on reply information feedback according to an embodiment of the present disclosure;

[0029] Fig. 9 A block diagram schematically shows an information processing device based on a large model according to an embodiment of the present disclosure; and

[0030] Fig.10 A block diagram of an electronic device suitable for implementing a large model-based information processing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0031] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0032] AI Agent can help users solve related problems in multiple fields through the thinking chain mode of large language models. With the widespread application of artificial intelligence technology in various fields, user needs are gradually diversified and complex. Therefore, it is urgent to improve the ability of large models to handle complex and diverse problems to meet user needs.

[0033] In the relevant examples, the following methods are used to respond to questions raised by users:

[0034] 1. Build a database of question-and-answer documents by summarizing and counting a large number of question-and-answer documents. Then, match the user's questions with the questions in the database and generate corresponding answers.

[0035] Although this rule matching method has a faster response speed, it does not perform semantic analysis on user questions during the rule matching process, and does not understand the user's question intention. When encountering questions with weak regularity, it is easy to have irrelevant answers.

[0036] 2. Use sample data to train the NLP model, and then use the trained model to process user questions and generate corresponding responses.

[0037] Although this approach takes into account the user's intention to ask questions, the generalization ability of the trained model is limited by the amount of sample data, resulting in poor scalability of the model. At the same time, for user questions, only the final answer can be output, and the model's thinking process when handling the user's question cannot be shown to the user, resulting in poor interpretability of the model.

[0038] In view of this, the disclosed embodiment provides an information processing method based on a large model, which expands the problem to be processed by using the understanding and generation capabilities of the large model, so that the large model can process the target problem in combination with related problems similar to the user's question intention, further improving the generalization of the large model. At the same time, the large model is used to perform semantic analysis on the expanded problem, and the logical relationship between the processing tasks used to answer the question is generated, so that the large model can improve the accuracy of the answer information and further enhance the user experience by combining the logical reasoning ability on the premise of fully understanding the question intention.

[0039] Figure 1 An exemplary system architecture to which a large model-based information processing method and apparatus can be applied according to an embodiment of the present disclosure is schematically shown.

[0040] It should be noted that Figure 1The examples shown are only examples of system architectures to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, an exemplary system architecture to which the information processing method and apparatus based on a large model can be applied may include a terminal device, but the terminal device may implement the information processing method and apparatus based on a large model provided by the embodiments of the present disclosure without interacting with a server.

[0041] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0042] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).

[0043] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0044] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for the content browsed by the user using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user request) to the terminal device.

[0045] It should be noted that the information processing method based on the big model provided in the embodiment of the present disclosure can generally be executed by the terminal device 101, 102, or 103. Accordingly, the information processing apparatus based on the big model provided in the embodiment of the present disclosure can also be set in the terminal device 101, 102, or 103.

[0046] Alternatively, the information processing method based on the big model provided in the embodiment of the present disclosure may also be generally executed by the server 105. Accordingly, the information processing device based on the big model provided in the embodiment of the present disclosure may generally be arranged in the server 105. The information processing method based on the big model provided in the embodiment of the present disclosure may also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the information processing device based on the big model provided in the embodiment of the present disclosure may also be arranged in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0047] For example, a user can input a pending question using terminal devices 101, 102, and 103, and transmit the pending question to server 105 through network 104. After receiving the pending question, server 105 uses LLM (Large Language Model) to perform question expansion, intent understanding, and task execution on the pending question in turn, and generates reply information. Finally, the reply information is fed back to terminal devices 101, 102, and 103 through network 104.

[0048] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0049] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.

[0050] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0051] Figure 2 The flowchart of the information processing method based on the large model according to the embodiment of the present disclosure is schematically shown.

[0052] like Figure 2 As shown, the method 200 includes operations S210 to S230.

[0053] In operation S210, the problem information to be processed is expanded using the large model to generate target problem information.

[0054] In operation S220, the target problem information is semantically analyzed using the large model to generate a target processing strategy.

[0055] In operation S230, the large model is called to execute each processing task according to the target logical relationship to generate answer information for the target question.

[0056] According to an embodiment of the present disclosure, the large model may be a large language model. The information of the question to be processed may be a question input by a user. The operation mode of the user inputting the question includes but is not limited to the selection operation, input operation or voice interaction operation of the question in the interactive page. The form of the information of the question to be processed includes but is not limited to text, image, voice and multimodal information including at least two of the above modes.

[0057] When users express the same question intention, they can use different ways of expression, for example: "Can you help me find documents from the past three days?" "Can you help me find files from the past three days?" etc.

[0058] Therefore, in order to improve the big model's ability to understand questions with similar question intentions and different expressions, the big model can be used to expand the problem to be processed and generate at least one related question. The information of the problem to be processed and the information of the related questions have similar question intentions. This reduces the probability of giving irrelevant answers during human-computer interaction.

[0059] Generally speaking, the more explicit the question intent is, the more accurate the answer information generated by the large model is. For example: Please help me book a flight to place A at 5:30 am on September 3, XX. However, in actual application scenarios, in most cases, the user intent cannot be fully understood based on the questions to be processed. For example: Please help me book the earliest flight to place A tomorrow.

[0060] Therefore, we can use a human-like thinking chain model to arrange the intentions of the above questions. For example, first check the date of tomorrow, then check the departure time of the flight to place A tomorrow, and finally sort by departure time to generate the final answer.

[0061] According to the embodiments of the present disclosure, the target question information can be semantically analyzed using a large model to understand the user's question intention and generate a target processing strategy. The target processing strategy can include the target logical relationship between the processing tasks used to answer the target question information.

[0062] According to an embodiment of the present disclosure, the target logical relationship between the processing tasks can represent the processing order between the processing tasks.

[0063] For example, based on the user question: "Please help me book the earliest flight to place A tomorrow", the target processing strategy can be: execute the following three processing tasks in the order of task identification: Task T1 is to query the date, Task T2 is to query the departure time of the flight to place A based on the query result of Task T1, and Task T3 is to determine the earliest departure time based on the query result of Task T2.

[0064] According to the embodiments of the present disclosure, each processing task is executed according to the target logical relationship by calling the large model. For example, first query tomorrow's date as September 3, XX, and then query the departure time of the flight to Place A on September 3, XX. Finally, sort the queried departure times in chronological order to determine the earliest departure time, and use the earliest departure time as the reply information.

[0065] According to the embodiments of the present disclosure, by using the understanding and generation capabilities of the big model to expand the problems to be processed, the big model can process the target problem in combination with related problems similar to the user's question intention, further improving the generalization of the big model. At the same time, the big model is used to perform semantic analysis on the expanded problems and generate the logical relationship between the processing tasks used to answer the questions, so that the big model can improve the accuracy of the answer information and further enhance the user experience by combining the logical reasoning ability on the premise of fully understanding the question intention.

[0066] Reference below Figure 3A to Figure 8 , combined with specific embodiments Figure 2 The method shown is further explained.

[0067] According to an embodiment of the present disclosure, the above-mentioned operation S210 may include the following operations: performing attribute analysis on the problem information to be processed to obtain initial attribute information; using a large model to expand the initial attribute information to generate target attribute information; and using a large model to process the problem information to be processed, the initial attribute information and the target attribute information to generate target problem information.

[0068] According to an embodiment of the present disclosure, the initial attribute information may include attributes such as semantic type, keywords, and sentence format. The semantic type may characterize the user's question intention type, for example, setting an alarm or booking a flight ticket may belong to the itinerary planning type of intention; checking a document may belong to the office management type of intention, etc. The sentence format may include the length of the question sentence, the sentence type, etc.

[0069] For example, the problem to be processed may be "Please help me set the alarm for 8:00 am tomorrow". By performing attribute analysis on the problem information to be processed, it is determined that the semantic type of the problem to be processed is the itinerary planning type. The keywords concerned for different semantic types may be different. For example, the keywords concerned for the intention of forming the planning type may be time, place, name, etc.

[0070] According to the embodiments of the present disclosure, the initial attribute information is expanded using a large model, and the initial attributes such as semantic type, keyword and sentence format can be expanded respectively.

[0071] For example, the problem to be processed may be "check recent documents", and the related questions generated after the keyword value expansion of the problem to be processed may include: "check yesterday's documents, check documents from the last 3 days, check documents from last week", etc. The sentence format can also be expanded, such as "help me check recent documents?" It can also be expanded by combining keywords and sentence formats, such as "help me check documents from the last 3 days?"

[0072] According to an embodiment of the present disclosure, the question information to be processed can be used as a reference example, a question expansion prompt can be constructed according to the initial attribute information and the target attribute information, and then the question expansion prompt can be input into the large model to output the target question information.

[0073] According to the embodiments of the present disclosure, by expanding the problems to be processed, the diversity of the problems can be increased, so that the large model can more accurately understand the questions raised by users and improve the generalization of the model.

[0074] When the initial attribute expansion is performed on the problem to be processed, the associated attribute can be expanded. For example, first prompt information is constructed according to the initial attribute information; and the first prompt information is input into the large model to output the target associated attribute information.

[0075] According to an embodiment of the present disclosure, the first prompt information includes an example of generating an associated attribute based on a reference attribute. For example, the example may be generating associated attributes such as "yesterday", "today", "last week", "last month" based on the reference attribute "recent".

[0076] Figure 3A The schematic diagram schematically shows a schematic diagram of using a large model to expand the problem to be processed according to an embodiment of the present disclosure.

[0077] like Figure 3A As shown, in the embodiment 300A, the problem to be processed 310 is subjected to attribute analysis to generate initial attributes 311. The initial attributes 311 may include an initial intention type 311_1, an initial keyword 311_2, and an initial sentence structure 311_3.

[0078] Then, the intent type, keywords, and sentence structure may be extended respectively to generate associated attributes 312. For example, Prompt A may be constructed based on the initial intent type 311_1, and Prompt A may be input into LLM301. Since PromptA includes an example of generating an associated intent type based on a reference intent type, LLM301 may output the extended intent type 312_1.

[0079] Similarly, Prompt B including an example of generating an associated keyword based on a reference keyword can be constructed based on the initial keyword 311_2, and the initial keyword 311_2 can be keyword expanded using LLM301 to generate a keyword type & value 312_2. Prompt C including an example of generating an associated sentence requirement based on a reference sentence requirement can be constructed based on the initial sentence structure 311_3, and the initial sentence structure 311_3 can be sentence expanded using LLM301 to generate an associated sentence requirement 312_3.

[0080] Next, the expanded associated attributes 312 and the initial attributes 311 may be sampled to obtain intention requirements and examples 313_1, keyword requirements and examples 313_2, and sentence requirements and examples 313_3, respectively.

[0081] Then, the intention requirement and example 313_1, the keyword requirement and example 313_2 and the sentence requirement and example 313_3 are filled into the Prompt template 314 respectively to generate the intention Prompt, the keyword Promp and the sentence requirement Prompt.

[0082] In order to further improve the diversity of target problems, it is also possible to construct associated prompt information based on initial attribute information, target attribute information, predetermined associated attribute combination strategy and pending problem information; and input the associated prompt information into the large model to output associated problem information.

[0083] For example, at least two of the intent type requirement, keyword requirement, and sentence requirement may be combined according to a predetermined association attribute combination strategy and then filled into the Prompt template 314 to generate an intent+sentence Prompt and an intent+keyword Prompt, etc.

[0084] Finally, Promp315 is input into LLM301, and target question information 316 is output. Promp315 may include the above-mentioned Prompt of a single attribute and Prompt of a combined attribute.

[0085] According to the embodiments of the present disclosure, by expanding the associated attributes of the initial attributes and combining the expanded attributes, it is possible to quickly increase the diversity of problems when the number of problems to be processed is limited, thereby improving the ability of the large model to understand complex and diverse problems, improving the generalization of the large model, meeting the questioning needs of different users, and further improving the user experience.

[0086] When improving the problem understanding ability of the large model, in addition to expanding the associated attributes, the interference attributes can also be expanded so that the large model can reduce the probability of generating questions with ambiguous intentions during the problem expansion process, and further improve the accuracy of the intentions of the associated questions.

[0087] According to an embodiment of the present disclosure, the initial attribute information is expanded using a large model to generate target attribute information, which may also include the following operations: constructing second prompt information based on the initial attribute information; and inputting the second prompt information into the large model to output target interference attribute information.

[0088] According to an embodiment of the present disclosure, the target attribute information also includes target interference attribute information, which represents attributes that can interfere with the large model's accurate understanding of the question intent, such as: the technical field is irrelevant to the technical field involved in the initial intent or keywords are missing.

[0089] According to an embodiment of the present disclosure, the second prompt information includes an example of generating an interference attribute based on a reference attribute.

[0090] For example, the reference question may be "Check the symptoms of allergic reaction to amoxicillin." This example may generate interference attributes "amo", "amoxicillin", and "xilin" based on the reference attribute "amoxicillin".

[0091] Figure 3B A schematic diagram of using a large model to expand a problem to be processed according to another embodiment of the present disclosure is schematically shown.

[0092] like Figure 3B As shown, embodiment 300B adds an expansion operation of interference attributes to the initial attributes based on embodiment 300A. The expansion of interference attributes can be performed according to intention, keyword, sentence structure, or after combining the initial attributes 311, the interference attributes can be expanded.

[0093] For example, Prompt D can be constructed according to the initial attribute 311 . Since Prompt D includes an example of generating interference attributes based on reference attributes, interference attributes 317 can be generated by inputting Prompt D into the large model.

[0094] Then, the interference attribute 317 is sampled to obtain negative example requirements and examples 318. The negative example requirements and examples 318 are filled into the Prompt template 314 to generate a negative example Prompt. The negative example Prompt can be combined with the Prompt 315 in the embodiment 300A to obtain Prompt 319.

[0095] It should be noted that the negative example requirement and example 318 do not participate in the combination of associated attributes.

[0096] According to an embodiment of the present disclosure, by extending interference attributes to generate negative example prompts, the large model can be prompted not to generate negative example questions when generating target question information, thereby improving the accuracy of the intention of the large model to generate questions.

[0097] In the process of using the large model to expand the initial attributes, some of the expanded attribute information may be the same as the initial attribute information. Therefore, the initial attribute information, target-related attribute information, and target-interference attribute information can be deduplicated to obtain the target attribute information. This reduces the probability of the same problem appearing repeatedly in the target problem information and further improves the information processing efficiency of the large model.

[0098] The ability and scope of a large model to understand intent is closely related to the amount of input data. Therefore, in order to further improve the generalization ability of the large model, an iterative cycle can be used to generate target question information.

[0099] Figure 4 A schematic diagram of using a large model to iteratively loop expand a problem according to an embodiment of the present disclosure is schematically shown.

[0100] like Figure 4 As shown, the embodiment 400 may include operations S411 to S415.

[0101] In operation S411, attribute analysis is performed on the problem information to be processed to obtain initial attribute information.

[0102] In operation S412, the initial attribute information is expanded using the large model to generate target attribute information.

[0103] In operation S413, the large model is used to process the problem information to be processed, the initial attribute information, and the target attribute information to generate related problem information.

[0104] In operation S414, it is determined whether the predetermined number of cycles is reached. If so, operation S415 is executed; if not, the operation S411 is executed again with respect to the associated problem information.

[0105] For example: performing attribute analysis operations on associated problem information to generate initial attribute information of associated problems; using a large model to expand the initial attribute information of associated problems to generate target attribute information of associated problems; and performing associated problem information generation operations on associated problem information, initial attribute information of associated problems, and target attribute information of associated problems until a predetermined number of cycles is reached to generate target problem information.

[0106] In operation S415, the associated question information and the to-be-processed question information obtained in each cycle are combined to generate target question information.

[0107] For example, in the first cycle, three related questions can be generated based on the problem to be processed. The initial attributes of the three related questions can be expanded to generate target attribute information of the related questions. Then, based on the target attribute information of the related question, the initial attribute information of the related question, the predetermined combination of related attributes and the problem information to be processed, new related prompt information is constructed. The new related prompt information is input into the large model to generate new related questions. And so on, until the predetermined number of cycles is reached, for example, it can be 5 times, and the target question information is generated.

[0108] According to an embodiment of the present disclosure, the target attribute information of the associated questions generated in each cyclic process can also be arbitrarily combined with the initial attributes of the problem to be processed or the target attribute information of the problem to be processed to construct the associated prompt information.

[0109] Similarly, before combining the expanded attributes, the information processing efficiency of problem expansion using large models can be improved by removing duplicates.

[0110] According to the embodiments of the present disclosure, based on the expanded associated problems, the associated problems are further expanded through an iterative cycle, which further improves the diversity of the associated problems and enhances the generalization ability of the large model.

[0111] Figure 5 The schematic diagram schematically shows a processing strategy for generating a semantic analysis of target question information using a large model according to an embodiment of the present disclosure.

[0112] like Figure 5 As shown, this embodiment 500 may include operations S521 to S524.

[0113] In operation S521, it is determined whether the question intention of the target question information 316 is clear. If so, operation S522 is performed; if not, operation S523 is performed.

[0114] In operation S522, a policy Prompt1 is constructed, and the policy Prompt1 is input into LLM301, and a processing policy Ta1 is output.

[0115] For example, first strategy prompt information can be constructed according to target problem information, predetermined strategy format information and predetermined reference strategy examples; and the first strategy prompt information can be input into the large model to output the target processing strategy.

[0116] According to an embodiment of the present disclosure, the predetermined strategy format information may be in a COT (Chain of thought) format.

[0117] According to an embodiment of the present disclosure, the first strategy prompt information may include an example of generating a reference processing strategy based on a reference question.

[0118] For example: The reference question may be "Zhang has a total of 10 apples. He ate 3 on the first day and 4 on the second day. How many apples are left?" The corresponding reference processing strategy may at least include: Calculation task T1: Zhang has a total of 10 apples. He ate 3 on the first day. How many apples are left? Calculation task T2: Based on the number of apples left on the first day, he ate 4 more. How many apples are left?

[0119] According to the embodiments of the present disclosure, the thinking chain model can enable the large model to break down complex and comprehensive tasks through a human-like logical thinking method when facing processing tasks, thereby improving the processing efficiency and accuracy of each processing task.

[0120] In operation S523, the target problem is optimized to obtain an optimized problem 522;

[0121] In operation S524, a policy Prompt2 is constructed and input into LLM301, and a processing policy Ta2 is output.

[0122] For example: in response to detecting that the question intention of the target question information is vague, the target question information is optimized to generate optimized question information; second strategy prompt information is constructed according to the optimized question information, predetermined strategy format information and predetermined reference strategy examples; and the second strategy prompt information is input into the large model to output the target processing strategy.

[0123] Since there are many reasons that lead to ambiguous question intent, the following mainly optimizes the target question information based on the reasons that lead to ambiguous question intent, so as to improve the question intent of the optimized question and facilitate the large model to understand the question intent.

[0124] For the unclear intention of the question caused by the lack of related information, for example, for the question "Schedule a meeting with A at the time we agreed on last time?" In this question, "the time we agreed on last time" is obviously unclear. However, this scenario often occurs in multi-round interaction scenarios. You can obtain related information about the question from the historical interaction information, such as "Let's schedule our meetings on Friday afternoons from now on" to optimize this question.

[0125] For example, optimizing the target problem information and generating optimized problem information may include the following operations: obtaining historical problem information associated with the target problem information; and merging the historical problem information with the target problem information using a large model to generate optimized problem information.

[0126] Fig. 6AA schematic diagram of problem optimization according to an embodiment of the present disclosure is schematically shown.

[0127] like Fig. 6A As shown, in this embodiment 600A, first, a merged prompt can be constructed according to the merged prompt template based on the target question information 316A and the historical question information 621. The merged prompt can include an example of optimizing a question based on the historical associated questions of the reference question. Then, the merged prompt is input into LLM 301, and the optimized question 522A is output.

[0128] For example, the optimized question 522A can be "Make an appointment with A for a meeting on Friday afternoon."

[0129] According to the embodiments of the present disclosure, the current question is optimized based on the correlation between historical questions and current questions, so that the big model can accurately understand the user's question intention and efficiently formulate a processing strategy for the optimized question, thereby improving the response speed of the big model and further improving the user experience.

[0130] For compound questions with ambiguous intentions, for example: I am going on a business trip to place A tomorrow, and then to place B two days later, and then return from place B after staying in place B for one day. Please help me book a flight ticket. In this question, it can be determined that the user's intention is to book a flight ticket, but the complexity of the question increases due to the involvement of multiple addresses. Therefore, the above compound question can be decomposed into sub-questions with clear intentions and independence to achieve the purpose of optimizing the problem.

[0131] For example: optimizing the target problem information and generating optimized problem information includes the following operations: in response to detecting that the target problem information is a complex problem, decomposing the target problem information using a large model to generate optimized problem information.

[0132] Figure 6B A schematic diagram of problem optimization according to another embodiment of the present disclosure is schematically shown.

[0133] like Figure 6B As shown, in embodiment 600B, a disassembly prompt may be constructed based on target question information 316B. The disassembly prompt may include an example of disassembling multiple independent sub-questions based on the reference question. Then, the disassembly prompt is input into LLM 301, and an optimized question 522B is output. The optimized question 522B may include sub-questions Query1, Query2, ..., Query3, ..., Query4, ..., Query5, ..., Query6, ..., Query7, ..., Query8, ..., Query9, ..., Query10, ..., Query11, ..., Query12, ..., Query13, ..., Query14, ..., Query15, ..., Query16, ..., Query17, ..., Query18, ..., Query19, ..., Query20, ..., Query21, ..., Query22, ..., Query3, ..., Query3 n .

[0134] For example, sub-question Query1 can be "help me book a flight ticket from my current region to place A tomorrow." Sub-question Query2 can be "help me book a flight ticket from place A to place B two days after arriving at place A." Sub-question Query3 can be "help me book a flight ticket from place B back to my current region one day after arriving at place B."

[0135] According to the embodiments of the present disclosure, complex problems are decomposed, which reduces the difficulty of understanding complex problems, enables the large model to more efficiently formulate processing strategies for the decomposed sub-problems one by one, improves the accuracy of processing complex problems, and further improves user experience.

[0136] To address the ambiguity in intent caused by ambiguity in the expression of intent in some fields of independent questions, the clarity of the question intent of independent questions can be improved by optimizing the ambiguous fields.

[0137] For example: optimizing the target question information and generating optimized question information may include the following operations: in response to detecting that the target question information is an independent question, obtaining a target field for characterizing the question intention from the target question information; and optimizing the target field using a large model to generate optimized question information.

[0138] Figure 6C A schematic diagram of problem optimization according to yet another embodiment of the present disclosure is schematically shown.

[0139] like Figure 6C As shown, in embodiment 600C, an intent field 622 for characterizing the question intent or intent ambiguity can be extracted from the target question information 316C. Then, an optimized Prompt is constructed based on the intent field 622. The optimized Prompt can include an example of optimizing the question intent based on the ambiguous field in the reference question. Next, the optimized Prompt is input into LLM301, and the optimized question 522C is output.

[0140] In order to further improve the accuracy of the question intention, the optimized questions can be interacted with the user through an interactive interface. After receiving the user's confirmation operation on the optimized questions, the LLM is used to generate the target processing strategy.

[0141] According to an embodiment of the present disclosure, the operations of the above-mentioned optimization problems may also be performed in combination. For example, after a compound problem is decomposed, if a sub-problem is detected to have an ambiguous intent field, the large model may be used to optimize the sub-problem.

[0142] According to the embodiments of the present disclosure, by optimizing the fuzzy fields of the intent of independent questions, the accuracy of the question intent is further improved, thereby improving the interaction efficiency with the large model and enhancing the user experience.

[0143] The disclosed embodiment can perform parameter inference on the parameters required by the API (Application Programming Interface) corresponding to each processing task based on the Function Call function of the large model, thereby calling the corresponding API interface according to the target logical relationship between the processing tasks to obtain the processing results of each processing task.

[0144] According to an embodiment of the present disclosure, the processing tasks include N, where N is an integer greater than 1; by calling the big model to execute each processing task according to the target logical relationship, generating reply information for the target question, it may include the following operations: for the nth processing task, by calling the big model, generating target parameters, the target parameters are used to call the target operation interface to execute the nth processing task, n is greater than 1 and less than or equal to N; based on the target parameters, by calling the target operation interface, obtaining the processing result of the nth processing task; in response to n being less than N-1, returning to execute the target parameter generation operation, and incrementing n; in response to n being equal to N-1, using the big model to process each processing result of each processing task, and generating reply information.

[0145] For example, based on the user question: "Please help me book the earliest flight to place A tomorrow." The target processing strategy can be: execute the following two processing tasks in the order of task identification: Task T1 is to query the date, and Task T2 is to query and book the earliest departure flight to place A based on the query result of Task T1.

[0146] According to the embodiments of the present disclosure, information of a target operation interface may be acquired; parameter prompt information may be constructed according to the information of the target operation interface and the nth processing task; and the parameter prompt information may be input into a large model to generate target parameters.

[0147] According to an embodiment of the present disclosure, the parameter prompt information may at least include the name of the target operation interface, the parameter definition required for calling the target operation interface, and the nth processing task. The target parameter may be a specific parameter value for calling the parameter required for the target operation interface. Then, the target operation interface is called using these specific parameter values, the nth processing task is executed, and the processing result is obtained.

[0148] For example, first, for task T1, it can be determined that the calendar query API needs to be called. The large model is used for parameter reasoning to generate the parameter values ​​required for calling the calendar query API. The calendar query API is called based on the parameter value to execute the calendar query task, and the processing result obtained can be the specific date of tomorrow, for example, March 2, xx.

[0149] Then, for task T2, it can be determined that the ticket query API needs to be called. The large model is used for parameter reasoning to generate the parameter values ​​required for calling the ticket query API. Based on the parameter values, the ticket query API is called to perform the ticket query task and book the ticket with the earliest departure time. The processing result obtained can be a ticket booked for March 2, xx with a departure time of 5:00.

[0150] According to the embodiments of the present disclosure, a large model is used to perform parameter inference on the APIs required to be called for each processing task. Compared with the method of combining an external database for information processing in related examples, different APIs can be flexibly called based on specific problem requirements, further improving the scalability and interpretability of the processing functions of the large model.

[0151] Since each processing task is executed according to the target logical relationship, the processing result of the previous processing task can also be used to comprehensively verify whether the logical relationship between the processing tasks is accurate.

[0152] According to an embodiment of the present disclosure, the above method may further include the following operations: in response to receiving a processing result for the nth processing task, by calling a large model, the logical relationship between the nth processing task and the n+1th processing task is verified based on the processing result, and a verification result is generated; in response to the verification result being that the logical relationship is correct, returning to execute the generation operation of the target parameter and incrementing n; in response to the verification result being that the logical relationship is wrong, the processing results of the first n processing tasks are processed using the large model to generate result summary information.

[0153] According to the embodiment of the present disclosure, a verification prompt can be constructed according to the processing result of the nth processing task, the target processing strategy, and the target parameter of the nth processing task, and then the verification prompt can be input into the large model to verify whether the logical relationship between the nth processing task and the n+1th processing task is accurate? If accurate, the n+1th processing task is continued to be executed. If inaccurate, the task execution is terminated, and result summary information is generated based on the current processing result.

[0154] For example, if the target processing strategy includes 5 tasks, when the third task is completed, the large model can be used to verify the logical relationship between the third task and the fourth task based on the processing result of the third task. If the verification passes, the fourth task will be executed; if the verification fails, the processing results of the first three tasks will be summarized.

[0155] Figure 7 A schematic diagram schematically shows a method of executing various processing tasks according to target logical relationships by calling a large model according to an embodiment of the present disclosure.

[0156] like Figure 7As shown, in the embodiment 700, first, in operation S731, task T1 in the processing strategy Ta1521 is executed: parameter Prompt1 is constructed based on the parameters required by AP11 corresponding to task T1, parameter Prompt1 is input into LLM301, and parameter inference is performed using LLM301 to obtain parameter value Va1731. API1701 is called based on parameter value Va1731 to generate processing result Re1732.

[0157] Then, based on the processing strategy Ta1521 and the processing result Re1732, a verification prompt is constructed, and the verification prompt is input into LLM301 to output the verification result. Operation S732 is performed to determine whether the verification result passes. If not, LLM is called to summarize the task processing result and generate a result summary 733.

[0158] Then, if it passes, operation S733 is executed to determine the execution of task T2. Parameter Prompt2 is constructed based on the parameters required by AP12 corresponding to task T2, and parameter Prompt2 is input into LLM301. Parameter inference is performed using LLM301 to obtain parameter value Va2734. API2702 is called based on parameter value Va2734 to generate processing result Re2735.

[0159] Finally, a summary prompt is constructed based on the processing result Re1 732 and the processing result Re2 735 , and the summary prompt is input into LLM 301 to generate reply information 736 .

[0160] According to the embodiments of the present disclosure, the logical relationship between adjacent tasks in the processing strategy is verified by utilizing the big model based on the thinking guidance, which provides a step-by-step supervision mechanism for the target processing strategy and improves the interpretability of the big model's decision-making process for generating reply information, so that users can clearly understand the thinking decision-making process of the big model and improve user experience.

[0161] For specific application scenarios, in order to further improve the response accuracy of the large model, a feedback optimization mechanism can be introduced to optimize the model parameters of the large model.

[0162] For example: using a large model to perform quality inspection on the reply information and generate inspection results; and optimizing the model parameters of the large model based on the inspection results.

[0163] According to an embodiment of the present disclosure, the detection result represents the correlation between the reply information and the question intention. The correlation between the reply information and the question intention can be calculated based on the user's regular feedback, and the quality of the reply information can be detected based on a large model.

[0164] For example: obtaining intent category information and keyword information from target question information; constructing detection prompt information based on intent category information, keyword information, target question information and answer information; and inputting the detection prompt information into a large model to output the detection results.

[0165] According to an embodiment of the present disclosure, the detection prompt information may include an example of generating a quality detection result based on a reference question and a reference answer. The quality detection result may be quality category information or a score used to characterize a quality level, which is not specifically limited here.

[0166] According to an embodiment of the present disclosure, for the response information whose detection result is high quality, the question query corresponding to the high quality response information can be used as a positive sample to optimize the model parameters. For the response information whose detection result is low quality, the question query corresponding to the low quality response information can be used as a negative sample to optimize the model parameters.

[0167] Figure 8 A schematic diagram of optimizing model parameters of a large model based on reply information feedback according to an embodiment of the present disclosure is schematically shown.

[0168] like Figure 8 As shown, in embodiment 800, first, the intent category 841 and the keyword 842 are extracted from the target question information 316. Then, a detection prompt 843 is constructed according to the answer information 736, the intent category 841 and the keyword 842. The detection prompt 843 is input into the LLM 301, and the detection result 844 is output. The detection result 844 can be a quality score.

[0169] Then, operation S840 is performed to determine whether the detection result is less than a predetermined threshold value. If so, operation S841 is performed; if not, operation S842 is performed.

[0170] In operation S841, it is determined that the target question information is a negative sample.

[0171] In operation S842, it is determined that the target question information is a positive sample.

[0172] In operation S843, model parameters of the LLM are optimized.

[0173] According to the embodiments of the present disclosure, by performing quality inspection on the reply information and labeling the positive and negative samples for optimizing the model parameters based on the inspection results, the problem of relying on manual labeling to optimize the model parameters in the related examples is solved, and closed-loop iterative optimization of the large model is achieved.

[0174] Fig. 9 A block diagram of a large model-based information processing device according to an embodiment of the present disclosure is schematically shown.

[0175] like Fig. 9 As shown, the device 900 includes a question expansion module 910, a strategy generation module 920 and a response generation module 930.

[0176] The question expansion module 910 is used to expand the pending question information using the large model to generate target question information; wherein the target question information includes at least one associated question information, wherein the pending question information and the associated question information have similar question intentions.

[0177] The strategy generation module 920 is used to perform semantic analysis on the target question information using the large model to generate a target processing strategy; wherein the target processing strategy includes the target logical relationship between the processing tasks used to answer the target question information.

[0178] The answer generation module 930 is used to generate answer information for the target question by calling the large model to execute various processing tasks according to the target logical relationship.

[0179] According to an embodiment of the present disclosure, the question expansion module includes: an attribute analysis submodule, an attribute expansion submodule and a question generation submodule.

[0180] The attribute analysis submodule is used to perform attribute analysis on the problem information to be processed and obtain initial attribute information.

[0181] The attribute expansion submodule is used to expand the initial attribute information using the large model to generate target attribute information.

[0182] The question generation submodule is used to use the large model to process the problem information to be processed, the initial attribute information and the target attribute information to generate the target question information.

[0183] According to an embodiment of the present disclosure, the target attribute information includes target associated attribute information; the attribute extension submodule includes: a first construction unit and a first output unit.

[0184] The first constructing unit is used to construct first prompt information according to the initial attribute information; wherein the first prompt information includes an example of generating an associated attribute based on a reference attribute.

[0185] The first output unit is used to input the first prompt information into the large model and output the target related attribute information.

[0186] According to an embodiment of the present disclosure, the target attribute information also includes target interference attribute information. The attribute expansion submodule also includes: a second construction unit and a second output unit.

[0187] The second constructing unit is configured to construct second prompt information according to the initial attribute information, wherein the second prompt information includes an example of generating interference attributes based on the reference attributes.

[0188] The second output unit is used to input the second prompt information into the large model and output the target interference attribute information.

[0189] According to an embodiment of the present disclosure, the attribute extension submodule further includes: a deduplication unit, which is used to perform deduplication processing on the initial attribute information, the target associated attribute information and the target interference attribute information to obtain the target attribute information.

[0190] According to an embodiment of the present disclosure, the question generation submodule includes: a first generation unit, an attribute analysis unit, an attribute expansion unit and a second generation unit.

[0191] The first generating unit is used to process the problem information to be processed, the initial attribute information and the target attribute information by using the large model to generate related problem information.

[0192] The attribute analysis unit is used to perform attribute analysis operations on the associated question information returned to generate initial attribute information of the associated question.

[0193] The attribute expansion unit is used to expand the initial attribute information of the association problem using the large model to generate the target attribute information of the association problem.

[0194] The second generating unit is used to return to execute the generating operation of the associated question information for the associated question information, the initial attribute information of the associated question and the target attribute information of the associated question until a predetermined number of cycles is reached to generate the target question information.

[0195] According to an embodiment of the present disclosure, the first generating unit includes: a first constructing subunit and a first outputting subunit.

[0196] The first construction subunit is used to construct the associated prompt information according to the initial attribute information, the target attribute information, the predetermined associated attribute combination strategy and the problem information to be processed.

[0197] The first output subunit is used to input the associated prompt information into the large model and output the associated question information.

[0198] According to an embodiment of the present disclosure, the policy generation module includes: a first construction submodule and a first output submodule.

[0199] The first construction submodule is used to construct first strategy prompt information according to the target question information, the predetermined strategy format information and the predetermined reference strategy example in response to detecting that the question intention of the target question information is clear.

[0200] The first output submodule is used to input the first strategy prompt information into the large model and output the target processing strategy.

[0201] According to an embodiment of the present disclosure, the strategy generation module further includes: an optimization submodule, a second construction submodule and a second output submodule.

[0202] The optimization submodule is used to optimize the target question information in response to detecting that the question intention of the target question information is ambiguous, and generate optimized question information.

[0203] The second construction submodule is used to construct the second strategy prompt information according to the optimized problem information, the predetermined strategy format information and the predetermined reference strategy example.

[0204] The second output submodule is used to input the second strategy prompt information into the large model and output the target processing strategy.

[0205] According to an embodiment of the present disclosure, the optimization submodule includes: a first acquisition unit and a merging unit.

[0206] The first acquisition unit is used to acquire historical question information associated with the target question information.

[0207] The merging unit is used to merge the historical problem information with the target problem information by using the large model to generate optimized problem information.

[0208] According to an embodiment of the present disclosure, the optimization submodule includes: a disassembly unit for disassembling the target problem information using a large model in response to detecting that the target problem information is a complex problem, and generating optimized problem information.

[0209] According to an embodiment of the present disclosure, the optimization submodule includes: a field acquisition unit and an optimization unit.

[0210] The field acquisition unit is used to acquire a target field for representing the question intention from the target question information in response to detecting that the target question information is an independent question.

[0211] The optimization unit is used to optimize the target field using the large model and generate optimized problem information.

[0212] According to an embodiment of the present disclosure, the processing tasks include N, where N is an integer greater than 1; the reply generation module includes: a parameter generation submodule, a first acquisition submodule, a first loop submodule and a reply generation submodule.

[0213] The parameter generation submodule is used to generate target parameters for the nth processing task by calling the large model. The target parameters are used to call the target operation interface to execute the nth processing task, where n is greater than 1 and less than or equal to N.

[0214] The first acquisition submodule is used to acquire the processing result of the nth processing task by calling the target operation interface based on the target parameter.

[0215] The first loop submodule is used for returning to execute the target parameter generation operation and incrementing n in response to n being less than N-1.

[0216] The reply generation submodule is used to process each processing result of each processing task using the large model in response to n being equal to N-1, and generate reply information.

[0217] According to an embodiment of the present disclosure, a parameter generation submodule includes: a second acquisition unit, a third construction unit and a third output unit.

[0218] The second acquisition unit is used to acquire information of the target operation interface.

[0219] The third construction unit is used to construct parameter prompt information according to the information of the target operation interface and the nth processing task.

[0220] The third output unit is used to input the parameter prompt information into the large model to generate target parameters.

[0221] According to an embodiment of the present disclosure, the reply generation module further includes: a check submodule, a second loop submodule and a result generation submodule.

[0222] The verification submodule is used to respond to receiving the processing result for the nth processing task, verify the logical relationship between the nth processing task and the (n+1)th processing task based on the processing result by calling the large model, and generate a verification result.

[0223] The second loop submodule is used to return to the target parameter generation operation and increment n in response to the verification result that the logical relationship is correct.

[0224] The result generation submodule is used to process the processing results of the first n processing tasks using the large model in response to the verification result being a logical relationship error, and generate result summary information.

[0225] According to an embodiment of the present disclosure, the above-mentioned device also includes a quality detection module and an optimization module.

[0226] The quality detection module is used to use a large model to perform quality detection on the reply information and generate a detection result, wherein the detection result represents the correlation between the reply information and the question intention.

[0227] The optimization module is used to optimize the model parameters of the large model based on the detection results.

[0228] According to an embodiment of the present disclosure, the quality detection module includes: a second acquisition submodule, a third construction submodule and a third output submodule.

[0229] The second acquisition submodule is used to obtain intent category information and keyword information from the target question information.

[0230] The third construction submodule is used to construct detection prompt information based on intention category information, keyword information, target question information and answer information.

[0231] The third output submodule is used to input the detection prompt information into the large model and output the detection result.

[0232] According to an embodiment of the present disclosure, the present disclosure also provides an intelligent agent, an electronic device, a readable storage medium and a computer program product.

[0233] According to an embodiment of the present disclosure, an intelligent agent includes: an input module, a processing module and an output module.

[0234] The input module is used to receive information about problems to be processed.

[0235] The processing module is used to determine the target task based on the problem information to be processed received by the input module, determine the target large model based on the target task, and obtain the reply information by calling the target large model to execute the above method.

[0236] The output module is used to output the response information obtained by the processing module.

[0237] According to an embodiment of the present disclosure, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0238] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described above.

[0239] According to an embodiment of the present disclosure, a computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the method described above.

[0240] Fig.10A schematic block diagram of an example electronic device 1000 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0241] like Fig.10 As shown, the device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0242] A number of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0243] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as a large model-based information processing method. For example, in some embodiments, the large model-based information processing method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the large model-based information processing method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute the large model-based information processing method in any other appropriate manner (eg, by means of firmware).

[0244] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0245] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0246] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0247] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0248] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0249] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.

[0250] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0251] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. An information processing method based on a large model, comprising: Using the large model to expand the problem information to be processed, generating target problem information; wherein the target problem information includes at least one related problem information, wherein the problem information to be processed and the related problem information have similar questioning intentions; Using the large model to perform semantic analysis on the target question information to generate a target processing strategy; wherein the target processing strategy includes a target logical relationship between processing tasks for answering the target question information; and The large model is called to execute each of the processing tasks according to the target logical relationship, thereby generating answer information for the target question.

2. The method according to claim 1, wherein: The use of the large model to expand the problem information to be processed and generate target problem information includes: Performing attribute analysis on the problem information to be processed to obtain initial attribute information; Expanding the initial attribute information using the large model to generate target attribute information; and The large model is used to process the problem information to be processed, the initial attribute information and the target attribute information to generate the target problem information.

3. The method according to claim 2, wherein: The target attribute information includes target associated attribute information; The step of using the large model to expand the initial attribute information to generate target attribute information includes: Constructing first prompt information according to the initial attribute information; wherein the first prompt information includes an example of generating associated attributes based on reference attributes; and The first prompt information is input into the large model, and the target associated attribute information is output.

4. The method according to claim 2, wherein: The target attribute information also includes target interference attribute information, wherein the target interference attribute information represents attributes that can interfere with the large model's accurate understanding of the question intention; The using the large model to expand the initial attribute information to generate target attribute information also includes: constructing second prompt information according to the initial attribute information, wherein the second prompt information includes an example of generating interference attributes based on reference attributes; and The second prompt information is input into the large model, and the target interference attribute information is output.

5. The method according to claim 4, further comprising: The initial attribute information, the target associated attribute information and the target interference attribute information are deduplicated to obtain the target attribute information.

6. The method according to any one of claims 2 to 5, wherein: The step of using the large model to process the problem information to be processed, the initial attribute information and the target attribute information to generate the target problem information includes: Using the large model to process the problem information to be processed, the initial attribute information and the target attribute information to generate the associated problem information; Performing attribute analysis operations on the associated question information to generate initial attribute information of the associated question; Using the large model to expand the initial attribute information of the association question to generate target attribute information of the association question; and The generation operation of the associated question information is executed for the associated question information, the initial attribute information of the associated question and the target attribute information of the associated question, until a predetermined number of cycles is reached, and the target question information is generated.

7. The method according to claim 6, wherein: The step of using the large model to process the problem information to be processed, the initial attribute information and the target attribute information to generate the associated problem information includes: Constructing associated prompt information according to the initial attribute information, the target attribute information, the predetermined associated attribute combination strategy and the problem information to be processed; and The associated prompt information is input into the large model, and the associated question information is output.

8. The method according to claim 1, wherein the step of using the large model to perform semantic analysis on the target problem information and generate a target processing strategy comprises: In response to detecting that the question intention of the target question information is clear, constructing first strategy prompt information according to the target question information, predetermined strategy format information and predetermined reference strategy examples; as well as The first strategy prompt information is input into the large model, and the target processing strategy is output.

9. The method according to claim 8, further comprising: In response to detecting that the question intention of the target question information is ambiguous, optimizing the target question information to generate optimized question information; Constructing second strategy prompt information according to the optimized question information, the predetermined strategy format information and the predetermined reference strategy example; as well as The second strategy prompt information is input into the large model, and the target processing strategy is output.

10. The method according to claim 9, wherein: The step of optimizing the target question information to generate optimized question information includes: Acquire historical question information associated with the target question information; The historical question information and the target question information are merged using the large model to generate the optimized question information.

11. The method according to claim 9, wherein: The step of optimizing the target question information to generate optimized question information includes: In response to detecting that the target problem information is a complex problem, the target problem information is decomposed using the large model to generate the optimized problem information.

12. The method according to claim 9, wherein: The step of optimizing the target question information to generate optimized question information includes: In response to detecting that the target question information is an independent question, acquiring a target field for representing the questioning intention from the target question information; and The target field is optimized using the large model to generate the optimized question information.

13. The method according to claim 1, wherein: The processing tasks include N, where N is an integer greater than 1; The step of calling the large model to execute each of the processing tasks according to the target logical relationship to generate answer information for the target question includes: For the nth processing task, by calling the large model, a target parameter is generated, the target parameter is used to call a target operation interface to execute the nth processing task, where n is greater than 1 and less than or equal to N; Acquire the processing result of the nth processing task by calling the target operation interface based on the target parameter; In response to n being less than N-1, returning to perform the generation operation of the target parameter and incrementing n; In response to n being equal to N-1, the processing results of the processing tasks are processed using the large model to generate the reply information.

14. The method according to claim 13, wherein: For the nth processing task, generating target parameters by calling the large model includes: Acquire information of the target operation interface; Constructing parameter prompt information according to the information of the target operation interface and the nth processing task; and The parameter prompt information is input into the large model to generate the target parameters.

15. The method according to claim 13, further comprising: In response to receiving a processing result for the nth processing task, by calling the large model, verifying the logical relationship between the nth processing task and the (n+1)th processing task based on the processing result, and generating a verification result; In response to the verification result that the logical relationship is correct, returning to execute the target parameter generation operation and incrementing n; In response to the verification result being the logical relationship error, the processing results of the first n processing tasks are processed using the large model to generate result summary information.

16. The method according to any one of claims 1 to 15, further comprising: Using the large model to perform quality detection on the reply information to generate a detection result, wherein the detection result represents the degree of association between the reply information and the question intention; and Model parameters of the large model are optimized based on the detection results.

17. The method according to claim 16, wherein: The using the large model to perform quality detection on the reply information and generate a detection result includes: Acquire intent category information and keyword information from the target question information; constructing detection prompt information according to the intention category information, the keyword information, the target question information and the answer information; and The detection prompt information is input into the large model, and the detection result is output.

18. An information processing device based on a large model, comprising: A question expansion module, used to expand the pending question information using the large model to generate target question information; wherein the target question information includes at least one associated question information, wherein the pending question information and the associated question information have similar questioning intentions; a strategy generation module, configured to perform semantic analysis on the target question information using the large model to generate a target processing strategy; wherein the target processing strategy includes a target logical relationship between processing tasks for answering the target question information; and The answer generation module is used to generate answer information for the target question by calling the large model to execute each processing task according to the target logical relationship.

19. The device according to claim 18, wherein: The problem expansion module includes: The attribute analysis submodule is used to perform attribute analysis on the problem information to be processed to obtain initial attribute information; an attribute expansion submodule, for expanding the initial attribute information using the large model to generate target attribute information; and The question generation submodule is used to use the large model to process the question information to be processed, the initial attribute information and the target attribute information to generate the target question information.

20. The method according to claim 19, wherein: The target attribute information includes target associated attribute information; The attribute extension submodule includes: A first constructing unit is configured to construct first prompt information according to the initial attribute information; wherein the first prompt information includes an example of generating an associated attribute based on a reference attribute; and The first output unit is used to input the first prompt information into the large model and output the target related attribute information.

21. The device according to claim 19, wherein The target attribute information also includes target interference attribute information, wherein the target interference attribute information represents attributes that can interfere with the large model's accurate understanding of the question intention; The attribute extension submodule further includes: A second constructing unit is configured to construct second prompt information according to the initial attribute information, wherein the second prompt information includes an example of generating an interference attribute based on a reference attribute; and The second output unit is used to input the second prompt information into the large model and output the target interference attribute information.

22. The device according to claim 21, wherein the attribute extension submodule further comprises: A deduplication unit is used to perform deduplication processing on the initial attribute information, the target associated attribute information and the target interference attribute information to obtain the target attribute information.

23. The device according to any one of claims 19 to 22, wherein: The question generation submodule includes: A first generating unit, configured to process the to-be-processed problem information, the initial attribute information and the target attribute information using the large model to generate the associated problem information; An attribute analysis unit is used to perform an attribute analysis operation on the associated question information return to generate initial attribute information of the associated question; an attribute expansion unit, configured to expand the initial attribute information of the association question using the large model to generate target attribute information of the association question; and The second generating unit is used to return to execute the generating operation of the associated question information for the associated question information, the initial attribute information of the associated question and the target attribute information of the associated question until a predetermined number of cycles is reached to generate the target question information.

24. The device according to claim 23, wherein: The first generating unit comprises: A first construction subunit is used to construct the associated prompt information according to the initial attribute information, the target attribute information, the predetermined associated attribute combination strategy and the problem information to be processed; and The first output subunit is used to input the associated prompt information into the large model and output the associated question information.

25. The apparatus according to claim 18, wherein the policy generation module comprises: A first construction submodule is configured to, in response to detecting that the question intention of the target question information is clear, construct first strategy prompt information according to the target question information, predetermined strategy format information and predetermined reference strategy examples; as well as The first output submodule is used to input the first strategy prompt information into the large model and output the target processing strategy.

26. The apparatus according to claim 25, wherein the strategy generation module further comprises: An optimization submodule, configured to optimize the target question information in response to detecting that the question intention of the target question information is ambiguous, and generate optimized question information; A second construction submodule is used to construct second strategy prompt information according to the optimized problem information, the predetermined strategy format information and the predetermined reference strategy example; as well as The second output submodule is used to input the second strategy prompt information into the large model and output the target processing strategy.

27. The device according to claim 26, wherein: The optimization submodule comprises: A first acquisition unit, configured to acquire historical question information associated with the target question information; A merging unit is used to merge the historical question information with the target question information using the large model to generate the optimized question information.

28. The device according to claim 26, wherein The optimization submodule comprises: A disassembling unit is used to, in response to detecting that the target problem information is a complex problem, disassemble the target problem information using the large model to generate the optimized problem information.

29. The device according to claim 26, wherein: The optimization submodule comprises: a field acquisition unit, configured to acquire a target field for representing the questioning intention from the target question information in response to detecting that the target question information is an independent question; and The optimization unit is used to optimize the target field using the large model to generate the optimized problem information.

30. The device according to claim 1, wherein The processing tasks include N, where N is an integer greater than 1; The reply generation module comprises: A parameter generation submodule, for generating target parameters for the nth processing task by calling the large model, wherein the target parameters are used to call the target operation interface to execute the nth processing task, where n is greater than 1 and less than or equal to N; A first acquisition submodule, configured to acquire a processing result of the nth processing task by calling the target operation interface based on the target parameter; A first loop submodule, for returning to execute the target parameter generation operation and incrementing n in response to n being less than N-1; The reply generation submodule is used to process each processing result of each processing task using the large model in response to n being equal to N-1, and generate the reply information.

31. The device according to claim 30, wherein The parameter generation submodule includes: A second acquisition unit, used to acquire information of the target operation interface; A third constructing unit is used to construct parameter prompt information according to the information of the target operation interface and the nth processing task; and The third output unit is used to input the parameter prompt information into the large model to generate the target parameters.

32. The method according to claim 30, wherein the reply generation module further comprises: a verification submodule, configured to, in response to receiving a processing result for the nth processing task, verify the logical relationship between the nth processing task and the (n+1)th processing task based on the processing result by calling the large model, and generate a verification result; A second loop submodule is used for returning to execute the target parameter generation operation and incrementing n in response to the verification result that the logical relationship is correct; The result generation submodule is used to process the processing results of the first n processing tasks using the large model in response to the verification result being the logic relationship error, and generate result summary information.

33. The device according to any one of claims 18 to 32, further comprising: a quality detection module, configured to perform a quality detection on the reply information using the large model and generate a detection result, wherein the detection result represents the degree of association between the reply information and the question intention; and An optimization module is used to optimize the model parameters of the large model based on the detection results.

34. The device according to claim 33, wherein The quality detection module comprises: A second acquisition submodule is used to acquire intent category information and keyword information from the target question information; A third construction submodule is used to construct detection prompt information according to the intention category information, the keyword information, the target question information and the answer information; and The third output submodule is used to input the detection prompt information into the large model and output the detection result.

35. An intelligent agent, comprising: An input module, used for receiving information of problems to be processed; A processing module, configured to determine a target task based on the problem information to be processed received by the input module, determine a target macro model based on the target task, and obtain response information by executing the method according to any one of claims 1 to 17 by calling the target macro model; as well as An output module is used to output the response information obtained by the processing module.

36. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 17.

37. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-17.

38. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Knowledge base retrieval method and device based on large language model self-evaluation and self-feedback

    CN116932717A

  • Question and answer method and device, equipment, medium and product

    CN117216210A

  • Intelligent question and answer method and device, equipment and storage medium

    CN117493505A

  • Document retrieval method and device based on problem expansion and fusion of large model

    CN117648428A

  • Question processing method and device, equipment and storage medium

    CN117743544A

Cited By

  • Computer task processing system and method with self-lifting capability

    CN120162033A

  • Electronic control parameter intelligent verification method and system based on multi-mode AI fusion

    CN120353695A

  • Air ticket information query method and device, storage medium and electronic equipment

    CN120892469A