Information processing method and device, information retrieval method and device, information extraction method and device and information processing system
By determining the model prompt word information and access credential information in the large language model application, and matching the target model server, remote control of multiple large language models is achieved, which solves the problem of low debugging efficiency of large language models in the existing technology and improves Improve business development efficiency.
Patent Information
- Application Number
- CN202410592187.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-08-27
AI Technical Summary
The existing large language model application construction framework cannot remotely debug and develop multiple types of large language models, resulting in low business development and debugging efficiency.
By obtaining the business information to be processed, the model prompt word information and model access credential information are determined, the model server of the target large language model is matched in the preset model server cluster, and the target large language model is used to process the model prompt word information to achieve multi- Remote control of large language models.
It improves the efficiency of business development and debugging of large language models, allowing developers to focus on business logic without paying attention to the debugging details of large language models.
Smart Images

Figure CN118550989A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, specifically to technical fields such as natural language processing, deep learning, and large models, and can be applied to scenarios such as artificial intelligence content generation, and in particular to an information processing method and device, an information retrieval method and device, an information extraction method and device, an information processing system, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] Currently, the large language model application building framework only debugs and tracks one type of large language model, and cannot remotely debug and develop multiple types of large language models. In particular, for multiple business needs that use large models, it is necessary to develop large models for each business separately, and the business development and debugging efficiency of large models is low. Summary of the invention
[0003] The present disclosure provides an information processing method and device, an information retrieval method and device, an information extraction method and device, an information processing system, an electronic device, a computer-readable storage medium, and a computer program product.
[0004] According to a first aspect, an information processing method is provided, the method comprising: determining model prompt word information based on acquired business information to be processed; determining model access credential information based on the model prompt word information; matching a model server of a target large language model in a preset model server cluster based on the model prompt word information and the model access credential information; processing the model prompt word information through the target large language model in the model server to obtain a processing result of the business information to be processed.
[0005] According to the second aspect, an information retrieval method is provided, the method comprising: obtaining enhanced business information of an initial question to be retrieved; processing the enhanced business demand information using the method described in any implementation manner of the first aspect to obtain an enhanced question of the initial question; matching the question to be processed in a question knowledge base based on the initial question and the enhanced question; obtaining question and answer business information based on the question to be processed; processing the question and answer business information using the method described in any implementation manner of the first aspect to obtain an answer text of the question to be processed.
[0006] According to the third aspect, an information extraction method is provided, which includes: splitting a document to be processed to obtain at least two document fragments; determining the extraction business information of each document fragment based on the at least two document fragments; and processing the extraction business information of each document fragment using the method described in any implementation method of the first aspect to obtain a topic extraction result for each document fragment.
[0007] According to a fourth aspect, an information processing system is provided, the system comprising: a proxy terminal, a management terminal and a model server cluster, each model server in the model server cluster comprising a large language model, the management terminal being used to manage each model server in the model server cluster; the proxy terminal being used to determine model prompt word information through the management terminal based on the acquired business information to be processed; determining model access credential information through the management terminal based on the model prompt word information; matching a model server of a target large language model in the model server cluster based on the model prompt word information and the model access credential information; processing the model prompt word information through the target large language model in the model server to obtain a processing result of the business information to be processed.
[0008] According to a fifth aspect, an information processing device is provided, which includes: a prompt determination unit, configured to determine model prompt word information based on the acquired business information to be processed; a credential determination unit, configured to determine model access credential information based on the model prompt word information; a service matching unit, configured to match a model server of a target large language model in a preset model server cluster based on the model prompt word information and the model access credential information; and a processing unit, configured to process the model prompt word information through the target large language model in the model server to obtain a processing result of the business information to be processed.
[0009] According to the sixth aspect, an information retrieval device is provided, which includes: an acquisition unit, configured to acquire enhanced business information of an initial question to be retrieved; an enhancement unit, configured to process the enhanced business demand information using a device as described in any implementation method of the fifth aspect, to obtain an enhanced question of the initial question; a question matching unit, configured to match the question to be processed in a question knowledge base based on the initial question and the enhanced question; an acquisition unit, configured to obtain question and answer business information based on the question to be processed; and a question and answer unit, configured to process the question and answer business information using a device as described in any implementation method of the fifth aspect, to obtain an answer text of the question to be processed.
[0010] According to the seventh aspect, an information extraction device is provided, which includes: a splitting unit, configured to split the acquired document to be processed to obtain at least two document fragments; a business determination unit, configured to determine the extracted business information of each document fragment based on the at least two document fragments; an extraction unit, configured to process the extracted business information of each document fragment as the device described in any implementation method of the fifth aspect, to obtain a topic extraction result for each document fragment.
[0011] According to the eighth aspect, an electronic device is provided, which 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 to enable the at least one processor to execute the method described in any implementation of the first aspect, the second aspect, or the third aspect.
[0012] According to a ninth aspect, 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 described in any implementation of the first aspect, the second aspect, or the third aspect.
[0013] According to the tenth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the method described in any one of the implementations of the first aspect, the second aspect, or the third aspect.
[0014] The information processing method and device provided by the embodiments of the present disclosure first determine the model prompt word information based on the acquired business information to be processed; secondly, determine the model access credential information based on the model prompt word information; thirdly, match the model server of the target large language model in the preset model server cluster based on the model prompt word information and the model access credential information; finally, process the model prompt word information through the target large language model in the model server to obtain the processing result of the business information to be processed. Thus, by matching the model server of the target large language model from the model server cluster, remote control of multiple large language models is realized, model prompt word information and model access credential information are determined based on the business to be processed, and the model prompt word information is processed by the target large language model, so that developers can only focus on the business without paying attention to the debugging details of the large language model, thereby improving the business development and debugging efficiency of the large language model.
[0015] 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
[0016] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0017] Figure 1 is a flow chart of an embodiment of an information processing method according to the present disclosure;
[0018] Figure 2 is a flow chart of an embodiment of the information retrieval method according to the present disclosure;
[0019] Figure 3is a flow chart of an embodiment of the information extraction method according to the present disclosure;
[0020] Figure 4 is a schematic diagram of the structure of an embodiment of an information processing system according to the present disclosure;
[0021] Figure 5 is a schematic structural diagram of an embodiment of an information processing device according to the present disclosure;
[0022] Figure 6 is a schematic structural diagram of an embodiment of an information retrieval device according to the present disclosure;
[0023] Figure 7 is a schematic structural diagram of an embodiment of an information extraction device according to the present disclosure;
[0024] Figure 8 It is a block diagram of an electronic device used to implement the information processing method, information retrieval method, and information extraction method of the embodiments of the present disclosure. DETAILED DESCRIPTION
[0025] 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.
[0026] LLM (Large Language Model), with its powerful natural language understanding and content generation capabilities, has become a hot topic in the field of AI (Artificial Intelligence). At the same time, the intelligent application market based on LLM has also been initially opened, and corresponding research and practice work is also rapidly developing. Since the interaction with the large model is based on natural language, the entire software development life cycle of business applications based on large models is different from that of traditional applications. The key difference is that the debugging workload of the model accounts for a high proportion. For example, for specific business scenarios, the business accuracy of the large model answer (such as the accuracy of the answer of the knowledge question and answer service, etc.) is often closely related to the quality of the prompt words, which requires product managers, technical personnel, and business experts to cooperate to tune the prompt words. For another example, when the business switches between different large models (such as upgrading the model version), the business prompt words also need to be re-adapted. Therefore, the remote debugging capability of large model applications can greatly improve the development efficiency of LLM business applications.
[0027] Remote debugging of large models is mainly divided into two capabilities, namely, the ability to send configurations such as prompt words, large model types, and large model parameters, and the ability to collect and display model operation results. In terms of configuration sending capabilities, there is currently no solution on the market that uses the dynamic proxy idea to uniformly take over the interaction with multiple large language models. For example, a model's companion tool provides a remote prompt word warehouse, which is used to provide prompt word discovery, sharing, and version control. However, in addition to prompt words, LLM effects are also closely related to large model types, large model parameters, etc. The above information together constitutes the debuggable information set of LLM. The actual business effect requires the above information to be reasonably matched to be improved. In addition, the authentication methods of large model services provided by different suppliers are also different. For example, the token access mechanism of a large language model requires users to refresh it regularly before it can be used normally, and the service authentication of another large language model only requires a fixed application key, etc. The above authentication information forces developers to maintain it in the business code, making it impossible for them to focus on business logic development.
[0028] Based on this, the present disclosure proposes an information processing method. Figure 1 A process 100 according to an embodiment of the information processing method of the present disclosure is shown. The information processing method comprises the following steps:
[0029] Step 101: determine model prompt word information based on the acquired business information to be processed.
[0030] In this embodiment, the business information to be processed is business information related to the business to be processed. The business to be processed may be a business implemented by a large language model. For example, the business to be processed may be any one of a text retrieval business, a text topic extraction business, and a text information enhancement business.
[0031] In this embodiment, the model prompt word information is prompt word information related to the model, and the model prompt word information can enable the large model to determine the actual business to be processed. The model prompt word information may include the latest prompt words published by the model server where the large language model is located, which is collected and stored in advance by the application on the management terminal. The above step 101 includes: determining the business to be processed based on the business information to be processed; based on the business to be processed, selecting the latest prompt word from the pre-stored prompt word business correspondence table, and using the latest prompt word as the model prompt word information.
[0032] Optionally, the pending business information may also include: the user's business processing requirement text. For example, for the retrieved pending business, the user's business processing requirement text is to retrieve only the search content with specific keywords. Before using the latest prompt word as the model prompt word information, the above step 101 also includes: determining the user's business processing requirement text based on the pending business information; after selecting the latest prompt word, splicing the latest prompt word and the business processing requirement text together as the model prompt word information.
[0033] In this embodiment, different services use different macro models. Therefore, the model prompt word information may also include model information. The model information may include: model type, model parameters, and the like.
[0034] In this embodiment, the execution subject on which the information processing method runs can obtain the business information to be processed in a variety of ways. For example, the execution subject can obtain the business information to be processed stored in the database server through a wired connection or a wireless connection. For another example, the execution subject can obtain the business information to be processed sent by the user terminal in real time by communicating with the user terminal.
[0035] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of the user's pending business information are carried out after authorization and comply with relevant laws and regulations.
[0036] Optionally, the above step 101 includes: determining the business type based on the acquired business information to be processed; determining the model type and model parameters based on the business type; querying a preset type prompt word table based on the model type and model parameters to obtain a blank prompt word template, filling the business-related text in the business information to be processed into the blank prompt word template to obtain model prompt word information, wherein the type prompt word table is used to characterize the correspondence between different model types, different model parameters and blank prompt word templates.
[0037] Step 102: Determine model access credential information based on the model prompt word information.
[0038] In this embodiment, the model access credential information is the credential information for obtaining the large language model service. When the large language model is provided by a supplier, after the model access credential information is sent to the supplier of the large language model, the supplier's verification can be passed to obtain the permission to use the large language model; when the large language model is deployed on a server, in order to control the large language model, the model access credential information is sent to the server where the large language model is deployed, and the permission to use the large language model can be obtained.
[0039] Step 103: Based on the model prompt word information and the model access credential information, a model server of the target large language model is matched in a preset model server cluster.
[0040] In this embodiment, the above step 103 includes: the model access credential information can be sent to all model servers in the model server cluster, and after obtaining the authentication information of the model server, the model prompt word information is sent to the authenticated model server, so that the model server determines the target large language model based on the model prompt word information.
[0041] Optionally, the above step 103 may include: determining the type and parameters of the large language model to be matched based on the model prompt word information; determining the corresponding sub-model server cluster in the preset model server cluster based on the large language model to be matched, sending the model access credential information to the sub-model server cluster, and determining the model server in the sub-model server cluster that has the target large language model.
[0042] Step 104, the model prompt word information is processed by the target large language model in the model server to obtain the processing result of the business information to be processed.
[0043] In this embodiment, the model prompt word information is sent to the model server of the target large language model. The model server extracts the prompt word template in the model prompt word information, sends the prompt word template to the target large language model, obtains the processing result output by the target large language model, and uses the processing result output by the target large language model as the processing result of the business information to be processed.
[0044] In this embodiment, the processing result of the service information to be processed is related to the service of the service information to be processed. For example, if the service of the service information to be processed is an enhanced service, the processing result is the enhanced information after the service information to be processed is enhanced. For another example, if the service of the service information to be processed is a subject extraction service, the processing result is the subject information obtained after subject extraction of the service information to be processed.
[0045] The information processing method provided by the embodiment of the present disclosure first determines the model prompt word information based on the acquired business information to be processed; secondly, determines the model access credential information based on the model prompt word information; thirdly, matches the model server of the target large language model in the preset model server cluster based on the model prompt word information and the model access credential information; finally, processes the model prompt word information through the target large language model in the model server to obtain the processing result of the business information to be processed. Thus, by matching the model server of the target large language model from the model server cluster, remote control of multiple large language models is realized, model prompt word information and model access credential information are determined based on the business to be processed, and the model prompt word information is processed by the target large language model, so that developers can only focus on the business without paying attention to the debugging details of the large language model, thereby improving the business development and debugging efficiency of the large language model.
[0046] In some optional implementations of the present disclosure, determining model prompt word information based on acquired business information to be processed includes: acquiring business information to be processed; determining a terminal identifier and a prompt word name based on the business information to be processed; sending the terminal identifier and the prompt word name to a management terminal, the management terminal being used to manage a large language model in each model server in the model server cluster; and receiving model prompt word information including template annotation information and a prompt word template sent by the management terminal.
[0047] In this optional implementation, the to-be-processed service information corresponds to the to-be-processed service, and the large language model corresponding to the to-be-processed service, the prompt word name of the large language model, and the terminal identifier can be obtained by looking up a table.
[0048] In this optional implementation, the prompt word template is used to guide the large language model on how to use tools and answer based on its own knowledge when interacting with humans. The prompt word template is used to ensure that the model follows the preset format and logical flow to handle problems and calls specified external tools when necessary.
[0049] In this optional implementation, the template comment information is used to write debugging information other than the prompt word into the comment in the form of key-value pairs, so as to maintain the consistency of user operations between remote debugging and local development.
[0050] The method for determining model prompt word information provided by this optional implementation method determines the terminal identifier and the prompt word name based on the business information to be processed; sends the terminal identifier and the prompt word name to a management terminal, and the management terminal is used to manage the large language model in each model server in the model server cluster; receives the model prompt word information including template annotation information and prompt word template sent by the management terminal, thereby improving the reliability of obtaining the model prompt word information.
[0051] In some optional implementations of the present disclosure, the above-mentioned template annotation information includes: model type, type, and determining the model access credential information based on the model prompt word information includes: sending the model type to the management terminal so that the management terminal selects and sends the model access credential information based on the model type; and receiving the model access credential information.
[0052] In this optional implementation, the management terminal is used to manage all large language models. The management terminal can use an access credential table to record the correspondence between model types and model access credential information. To this end, after obtaining the model type, the management terminal can search the access credential table based on the model type to obtain the model access credential information.
[0053] The method for determining model access credential information provided by this optional implementation manner sends the model type to the management terminal so that the management terminal selects and sends model access credential information based on the model type; and receives the model access credential information.
[0054] In some optional implementations of the present disclosure, the above-mentioned template annotation information includes: a user identifier and a model type; the determining of the model access credential information based on the model prompt word information also includes: sending the user identifier to the management terminal, so that the management terminal generates an encryption key of the user based on the user identifier, and the management terminal selects a model name of the large language model based on the model type; and receiving the model access credential information including the model name and the encryption key sent by the management terminal.
[0055] In this optional implementation, the user identifier uniquely identifies the user, and a unique access permission can be set for the user through the user identifier, providing a reliable basis for user access, billing, etc.
[0056] In this optional implementation, the algorithm for the management terminal to generate the user's encryption key based on the user identifier can adopt a general encryption algorithm, which will not be described in detail here. The execution subject on which the information processing method runs can determine the user corresponding to the model prompt word information and the guidance information of the large language model required by the user after obtaining the model prompt word information including the template annotation information and the prompt word template.
[0057] The method for determining model access credential information provided by this optional implementation sends the user identifier to the management terminal so that the management terminal generates the user's encryption key based on the user identifier, and selects the model name of the large language model based on the model type; receives the model access credential information including the model name and the encryption key sent by the management terminal, and improves the reliability of obtaining the model access credential information through the user identifier.
[0058] In some optional implementations of the present disclosure, the above-mentioned model prompt word information includes: model type, model parameters; the model access credential information includes: model type, encryption key; based on the model prompt word information and the model access credential information, matching the model server of the target large language model in the preset model server cluster includes: determining the large language model to be matched based on the model type and the model parameters; determining at least one model server corresponding to the large language model to be matched in the preset model server cluster; sending a business request carrying the encryption key to at least one model server; in response to receiving the authentication pass information sent by the model server, using the model server as the model server of the target large language model.
[0059] In this embodiment, the model type refers to the specific type of model. Based on the different application fields of the large language model, the large language model can be divided into the following model types: text generation model, question answering model, machine translation model, etc.
[0060] In this embodiment, the model parameters are mainly the weights and biases in the neural network of the large language model. The neural network consists of multiple layers, each containing many neurons. The connections between these layers are determined by weights and biases, which are values that the model automatically learns and adjusts based on training data. Model parameters can affect output results, model performance, or system behavior.
[0061] In this optional implementation, based on the model type and model parameters, the type, weight and bias of the large language model can be determined, and the large language model to be matched is determined by the type, weight and bias.
[0062] In this optional implementation, the model server cluster is a pre-set server cluster for running each large language model. Through the pre-set model server cluster and large language model correspondence table, at least one model server including the large language model to be matched can be determined.
[0063] In this optional implementation, the encryption key is authentication information recognized by both parties after interacting with the model server in the model server cluster. Sending the encryption key to the relevant model server can obtain authentication information fed back by the model server.
[0064] The method for matching the model server of the target large language model provided by this optional implementation is, first, based on the model type and model parameters in the model prompt word information, determining the large language model to be matched; second, determining at least one model server to be matched in the preset model server cluster; third, sending a service request carrying an encryption key to at least one model server; finally, if the authentication information sent by the model server is received, the model server is used as the model server of the target large model. Thus, a reliable implementation method is provided for obtaining the model server of the target large language model.
[0065] Optionally, the above-mentioned model prompt word information includes: model type, model parameters; the model access credential information includes: model type, encryption key; the above-mentioned matching of the model server of the target large language model in the preset model server cluster based on the model prompt word information and the model access credential information includes: determining at least one model server corresponding to the model type in the preset model server cluster; sending a business request carrying an encryption key to at least one model server; in response to receiving the authentication pass information sent by the model server, sending the model parameters to the model server; in response to receiving the parameter confirmation information sent by the model server, using the model server as the model server of the target large language model.
[0066] In some optional implementations of the present disclosure, the above-mentioned model prompt word information includes: a prompt word template, and the model prompt word information is processed by the target large language model in the model server to obtain the processing result of the business information to be processed, including: sending the prompt word template to the model server; in response to detecting the output result output by the target large language model in the model server, using the output result as the processing result of the business information to be processed.
[0067] In this optional implementation, the prompt word template is used to guide the large language model on how to use tools and answer based on its own knowledge when interacting with humans. The prompt word template is used to ensure that the model follows the preset format and logical flow to handle problems and calls specified external tools when necessary.
[0068] In this optional implementation, after the prompt word template is sent to the model server, the model server controls the target large language model to process the prompt word template to obtain the processing result of the business information to be processed.
[0069] In this optional implementation, the business type of the business information to be processed is different, and the content of the processing result is different. For example, if the business type is problem enhancement, the processing result is the enhanced problem.
[0070] The method for obtaining the processing result of the business information to be processed provided in this embodiment directly sends the prompt word template to the model server, and in response to detecting the output result of the target large language model output in the model server, uses the output result as the processing result of the business information to be processed, thereby obtaining the processing result of the business information to be processed simply and conveniently.
[0071] In some optional implementations of the present disclosure, the above-mentioned model prompt word information also includes: the recall weight of at least one recall strategy. The model prompt word information is processed by the target large language model in the model server to obtain the processing result of the business information to be processed, including: sending the recall weight of at least one recall strategy to the model server, so that the target large language model in the model server processes the prompt word template based on the recall weight of at least one recall strategy.
[0072] In this optional implementation, the recall strategy is a strategic approach to obtaining the business information to be processed. When obtaining the business information to be processed, the business information to be processed can be obtained through at least one recall strategy. The recall weight is used to characterize the probability of recalling the business information to be processed using at least one recall strategy. When the business information to be processed is actually obtained, the recall weight can reflect the actual recall strategy adopted for the business information to be processed.
[0073] In this optional implementation, the recall weight of the at least one recall strategy is sent to the model server as prompt word model annotation information.
[0074] In this optional implementation, the recall weight of at least one recall strategy is sent to the model server, so that the target large language model can fully consider the impact of the recall strategy on the business information to be processed when processing the prompt word template, thereby giving accurate processing results for the business information to be processed.
[0075] This optional implementation method provides processing for obtaining the business information to be processed, and the template prompt word information also includes: the recall weight of at least one recall strategy, and sending the recall weight of at least one recall strategy to the model server can enable the target large language model to fully consider the impact of the recall strategy on the business information to be processed when performing data analysis, thereby improving the accuracy of the processing results.
[0076] Optionally, the template prompt word information may further include: user-defined information, and the user-defined information may be placed in the annotation of the prompt word template.
[0077] Further references Figure 2 , the present disclosure provides an information retrieval method, Figure 2 A process 200 according to an embodiment of the information retrieval method of the present disclosure is shown. The information processing method includes the following steps:
[0078] Step 201: Obtain enhanced service information of the initial question to be retrieved.
[0079] In this embodiment, the information retrieval method is a method of applying the information processing method to the field of RAG (Retrieval Augmented Generation). RAG is a technology for optimizing content generation by retrieving external related information. It is mainly used in the field of knowledge question answering and is also one of the typical intelligent agents. A typical RAG system includes three parts: question enhancement, content retrieval and content generation.
[0080] In this embodiment, the enhanced service information is a type of service information that represents the need for RAG processing. The enhanced service information is processed through the steps adopted by the data processing method to obtain model prompt word information.
[0081] In this embodiment, the initial question is a question raised by the user and needs to be processed by RAG and is to be answered. The step 201 includes: obtaining the initial question; and obtaining enhanced service information based on the initial question. Specifically, obtaining enhanced service information based on the initial question includes: combining the initial question with the RAG required service text to obtain enhanced service information.
[0082] Step 202: Process the enhanced business requirement information using an information processing method to obtain an enhanced question of the initial question.
[0083] In this embodiment, the enhanced question is to use the associative ability of the large language model to generate questions related to the initial question asked by the user. By enhancing the question, the probability of obtaining valuable reference information in the subsequent content retrieval of RAG can be increased.
[0084] In this embodiment, the enhanced business demand information is used to replace the business information to be processed, and the information processing method shown in the above embodiment is used to directly process the enhanced business demand information, so as to obtain the enhanced question of the initial question output by the target large language model.
[0085] Step 203: Match the questions to be processed in the question knowledge base based on the initial question and the enhanced question.
[0086] In this embodiment, the problem to be processed is a problem selected from a problem knowledge base and related to the initial problem and the enhanced problem.
[0087] In this embodiment, the initial question and the enhanced question are used as input to request a question knowledge base for retrieval. Here, the question knowledge base can be a database with semantic retrieval capabilities or a search engine. The question to be processed can be effectively matched through the question knowledge base.
[0088] Step 204, obtaining question-answering business information based on the question to be processed.
[0089] In this embodiment, in the above step 204, question and answer requirement information is added to the question to be processed to obtain question and answer business information, wherein the question and answer requirement information can be a text data requiring an answer to the question to be processed.
[0090] Step 205: Use an information processing method to process the question-and-answer service information to obtain the answer text of the question to be processed.
[0091] In this embodiment, the execution subject on which the information retrieval method runs executes the information processing method twice, the first time for question enhancement and the second time for answer generation. The first step of question enhancement is directly related to the quality of the final generated result, and its response speed determines the response performance of the overall business. Generally speaking, its LLM debugging is crucial to the business effect.
[0092] When the execution subject executes the information processing method twice, first of all, in terms of model selection, question enhancement and answer generation must not choose the same model, because question enhancement focuses on performance, while answer generation focuses on quality. Therefore, the execution subject selects the first language model for question enhancement and the second language model for answer generation. Secondly, the prompt words for question enhancement require special restrictions on the output format (because relevant questions need to be parsed from the output), and the debugging workload of prompt words is high.
[0093] The information retrieval method provided in this embodiment uses an information processing method to process the enhanced business information of the initial question to obtain an enhanced question; and uses an information processing method to process the question and answer business information of the question to be processed to obtain an answer text of the question to be processed. Since the question enhancement business focuses on performance, while the question and answer business focuses on quality, the two have different emphases. By calling the information processing method twice, two business requirements with different emphases are realized, thereby improving the reliability of question retrieval enhancement and ensuring the reliability of initial question processing.
[0094] In some optional implementations of the present disclosure, obtaining question-and-answer business information based on the pending questions includes: determining a recall strategy for the pending questions in a question knowledge base and a weight of the recall strategy; and determining question-and-answer business information based on the pending questions, the recall strategy and the weight.
[0095] In this optional implementation, the recall strategy of the pending questions in the question knowledge base includes: vector recall strategy, full-text search recall strategy, etc. Among them, the vector recall strategy refers to a method of determining the pending questions by comparing the similarity of vectors of different questions in the knowledge base, specifically, if the vector of the initial question or enhanced question is the same or similar to the vector in the knowledge base, then the question of the vector in the knowledge base is used as the pending question.
[0096] In this optional implementation, the full-text search recall strategy refers to searching only the full text formed by the initial question and the enhanced question in the knowledge base, and if the same or similar content is retrieved, the retrieved content is used as a question to be processed.
[0097] In this optional implementation, different strategies have their own weights. The weights are implicit hyperparameters of the system and need to be adjusted frequently. Therefore, the weights of the recall strategies can also be sent to the model server as user-defined parameters, so that the target large language model processes the prompt word template based on the weights.
[0098] The above-mentioned determination of question-answering business information based on pending questions, recall strategies and weights includes: obtaining a prompt word template based on the pending questions; determining annotation information of the prompt word template based on the recall strategy and weights; and using the prompt word template and annotation information as question-answering business information.
[0099] The method for determining question-and-answer business information provided in this embodiment first determines the recall strategy for pending questions and the weight of the recall strategy, and then determines the question-and-answer business information based on the pending questions, the recall strategy and the weight, thereby improving the comprehensiveness of the question-and-answer business information.
[0100] Due to the input length limit of LLM, long documents cannot be directly put into prompt words and passed to LLM, so LLM needs to be called in segments. Figure 3 , the present disclosure provides an information extraction method, Figure 3 A process 300 according to an embodiment of the information extraction method of the present disclosure is shown. The information extraction method includes the following steps:
[0101] Step 301: split the document to be processed to obtain at least two document fragments.
[0102] In this embodiment, the document to be processed may be a long document to be read. When reading the document to be processed, due to the long length of the document to be processed, it is impossible to directly extract topics through a large language model. Therefore, the document to be processed may be directly split to obtain at least two document fragments.
[0103] In this embodiment, when splitting the document to be processed, it can be split based on the structure of the document to be processed to obtain at least two document fragments corresponding to different chapters of the document to be processed; it can also be split based on the page number of the document to be processed to obtain at least two document fragments corresponding to different page numbers of the document to be processed.
[0104] Step 302: Determine the extracted business information of each document fragment based on at least two document fragments.
[0105] In this embodiment, the extracted business information is business information set for at least two document fragments. For example, the at least two document fragments include: a document summary page and a document description page. Then the extracted business information includes: summary extraction requirement information corresponding to the document summary page, and the summary extraction requirement information includes: application scenario, document summary page, document summary page word count, summary topic summary, and summary full text format. The extracted business information may also include: content extraction requirement information corresponding to the document description page, and the content extraction requirement information includes: application scenario, document description page, document description page word count, description topic summary, and description format.
[0106] Step 303: Use an information processing method to process the extracted business information of each document fragment to obtain a topic extraction result of each document fragment.
[0107] In this embodiment, when the information processing method is used to process the extracted business information of each document fragment, the model prompt word information of each document fragment can be determined based on the extracted business information of each document fragment; the model access credential information can be determined based on the model prompt word information of each document fragment; based on the model prompt word information and the model access credential information, a model server of the target large language model is matched in a preset model server cluster, and the model prompt word information of each document fragment is processed using the target large language model to obtain the topic extraction results of each document fragment.
[0108] In this embodiment, the topic extraction results of document fragments may vary based on the different application scenarios recorded in the extracted business information. For example, the actual application scenario of the extracted business information records in some document fragments is to extract meeting abstracts and summaries, while the actual application scenario of the extracted business information records in other document fragments is to extract insurance clause keywords.
[0109] The information extraction method provided in this embodiment first splits the document to be processed to obtain at least two document fragments, and secondly determines the extracted business information of each document fragment; finally, the extracted business information is processed by an information processing method to obtain the topic extraction results of each document fragment, thereby improving the efficiency of topic extraction business development and debugging of large language models.
[0110] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an information processing system, which can be used to implement Figure 1 The method shown.
[0111] like Figure 4As shown, the information processing system 400 provided in this embodiment includes: an agent terminal 401, a management terminal 402, and a model server cluster 403. Each model server in the model server cluster 403 includes a large language model, and the management terminal 402 is used to manage the large language models in each model server in the model server cluster; wherein the agent terminal 401 determines the model prompt word information through the management terminal 402 based on the acquired business information to be processed; determines the model access credential information through the management terminal 403 based on the model prompt word information; matches the model server of the target large language model in the model server cluster 403 based on the model prompt word information and the model access credential information; processes the model prompt word information through the target large language model in the model server to obtain the processing result of the business information to be processed.
[0112] In this embodiment, the proxy terminal can be a user terminal with a large model application installed. The large model application can be used to subscribe to the information of the management terminal. Based on the subscription information, the model server cluster is accessed to match the target large language model, and the target large language model is used to process the model prompt word information corresponding to the business information to be processed, thereby improving the reliability of the processing of the business information to be processed. The proxy terminal can be implemented in two ways: SDK (Software Development Kit) and Sidecar. The SDK method is relatively simple in implementation and operation and maintenance, while the advantage of the sidecar method is that it can be accessed without any modification of the business code.
[0113] In this embodiment, the management terminal is a user terminal with at least one large model application installed. Based on the inspiration of the configuration discovery service in the microservice grid, the large model application on the management terminal can provide a large model authentication discovery service and a prompt word discovery service (for example, using sub-applications in multiple sub-applications in the large model application to respectively implement the large model authentication discovery service and the prompt word discovery service), thereby enabling users to complete the target large language model access and prompt word tuning through the same remote management server.
[0114] In this embodiment, the prompt word discovery service (PDS) is a service for obtaining the latest published prompt words. The system administrator publishes prompt words through the management terminal, and the sub-application corresponding to the prompt word discovery service stores the prompt words and historical versions persistently, and exposes the prompt word information to the outside through PDS. The agent terminal can obtain the latest version of the prompt word information that meets the conditions by subscribing to PDS.
[0115] Specifically, PDS can be implemented in the following ways: store the model prompt word information in a database according to a certain data structure, and expose it to the outside through HTTP or GRPC interface through PDS service. The application of the proxy terminal subscribes to the changes of the above prompt word information through pull or push before calling LLM. For the pull method, the application of the proxy terminal actively requests the PDS service to obtain the remote prompt word through the proxy before calling LLM. For the push method, the prompt word change information can be pushed to the proxy terminal in real time through technical means such as grpc streaming or http long connection.
[0116] In this embodiment, model prompt word information is a broad concept, which includes all necessary information required for LLM debugging, including large model type, large model parameters, prompt word template, business custom information, etc. In addition, in order to allow business developers to operate the prompt word information obtained from the PDS like a local prompt word template file, the PDS can use a fixed transmission protocol to complete the delivery of the model prompt word information.
[0117] In this embodiment, the Secrets Discovery Service (SDS) obtains the credential information of the corresponding type of LLM service, and obtains the authentication credential directly by reading the data. If the data in the database has expired (invalid), the corresponding LLM authentication service is called to refresh the credential information and update the database. Since there is a data update operation when the LLM credential expires, in order to avoid concurrency problems, the LLM credential can be locked by MYSQL select for update and other methods when obtaining the LLM credential.
[0118] SDS can actually be implemented in the following ways: First, the credential information is stored in the database through a certain data structure, and is exposed to the outside world through the SDS service in the form of HTTP or GRPC interface. The application of the proxy terminal subscribes to the changes of the above credential information through pull or push before calling LLM. For the pull method, the application of the proxy terminal actively requests the SDS service through the proxy to obtain the credential information for LLM call authentication before calling LLM. For the push method, the credential change information can be pushed to the proxy terminal in real time through technical means such as grpc streaming or http long connection.
[0119] The information processing system provided in this embodiment is applicable to all application service constructions based on large language models. By processing the business information to be processed and calling the target large language model through the proxy terminal, developers can shield themselves from the tedious debugging details of the large model and focus on business development, thereby significantly improving the efficiency of large model application development.
[0120] In some optional implementations of the present disclosure, the above-mentioned proxy terminal is also used to send the processing result to the management terminal; the management terminal is also used to determine the tracking observation result of the target large language model based on the processing result.
[0121] In this optional implementation, the processing result of LLM needs to be sent to the application responsible for LLM result collection service in the management terminal. The sending process of the processing result is an asynchronous process, and the processing result of LLM can be processed as needed in the management terminal to form a tracking observation result.
[0122] In this optional implementation, the above-mentioned tracking and observation results are the results obtained after tracking and observing the target large language model. Specifically, the tracking and observation results include: link tracking data, statistical log data, monitoring indicator data and other observable data. Among them, the link tracking data can be used as a front-end display to help users debug LLM, the statistical log data can count the usage of tokens input and output of LLM to count costs, and the monitoring indicator data can be used to monitor the service quality of LLM. Specifically, the management terminal can obtain the result information of each LLM called on the same request link through the tracking identifier in the link tracking data. The management terminal can aggregate the statistical log data by grouping TOKENS_USED (the identifier of the number of tokens used, used for billing) to count the number of tokens for billing. The abnormal rate can be calculated by IS_SUCCESS (whether it is a success identifier) in the monitoring indicator data to perform abnormal monitoring and alarm on the application of the proxy terminal.
[0123] The information processing system provided by this optional implementation method determines the tracking observation results of the target large language model based on the processing results of the target large language model through the management terminal, thereby improving the development and debugging efficiency of the large language model.
[0124] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an information processing device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0125] like Figure 5As shown, the information processing device 500 provided in this embodiment includes: a prompt determination unit 501, a credential determination unit 502, a service matching unit 503, and a processing unit 504. Among them, the above-mentioned prompt determination unit 501 can be configured to determine the model prompt word information based on the acquired business information to be processed. The above-mentioned credential determination unit 502 can be configured to determine the model access credential information based on the model prompt word information. The above-mentioned service matching unit 503 can be configured to match the model server of the target large language model in the preset model server cluster based on the model prompt word information and the model access credential information. The above-mentioned processing unit 504 can be configured to process the model prompt word information through the target large language model in the model server to obtain the processing result of the business information to be processed.
[0126] In this embodiment, the specific processing of the prompt determination unit 501, the credential determination unit 502, the service matching unit 503, and the processing unit 504 and the technical effects thereof can be referred to in detail. Figure 1 The relevant descriptions of step 101, step 102, step 103, and step 104 in the corresponding embodiment are not repeated here.
[0127] In some optional implementations of this embodiment, the prompt determination unit is further configured to: obtain the business information to be processed; determine the terminal identification and prompt word name based on the business information to be processed; send the terminal identification and prompt word name to the management terminal; receive the model prompt word information including template annotation information and prompt word template sent by the management terminal.
[0128] In some optional implementations of this embodiment, the above-mentioned template annotation information includes: model type, and the credential determination unit is further configured to: send the model type to the management terminal so that the management terminal selects and sends model access credential information based on the model type; and receive the model access credential information.
[0129] In some optional implementations of this embodiment, the above-mentioned template annotation information includes: user identification and model type, and the credential determination unit is further configured to: send the user identification to the management terminal, so that the management terminal generates the user's encryption key based on the user identification, and enables the management terminal to select the model name of the large language model based on the model type; receive the model access credential information including the model name and encryption key sent by the management terminal.
[0130] In some optional implementations of this embodiment, the above-mentioned model prompt word information includes: model type, model parameters; the model access credential information includes: model type, encryption key; the service matching unit 503 is further configured to: determine the large language model to be matched based on the model type and model parameters; determine at least one model server corresponding to the large language model to be matched in a preset model server cluster; send a business request carrying an encryption key to at least one model server; in response to receiving the authentication pass information sent by the model server, use the model server as the model server of the target large language model.
[0131] In some optional implementations of this embodiment, the above-mentioned model prompt word information includes: a prompt word template, and the processing unit 504 is further configured to: send the prompt word template to the model server; in response to detecting the output result of the target large language model output in the model server, use the output result as the processing result of the business information to be processed.
[0132] In some optional implementations of this embodiment, the above-mentioned model prompt word information also includes: the recall weight of at least one recall strategy, and the processing unit 504 is further configured to: send the recall weight of at least one recall strategy to the model server, so that the target large language model in the model server processes the prompt word template based on the recall weight of at least one recall strategy.
[0133] The information processing device provided by the embodiment of the present disclosure, first, the prompt determination unit 501 determines the model prompt word information based on the acquired business information to be processed; secondly, the credential determination unit 502 determines the model access credential information based on the model prompt word information; thirdly, the service matching unit 503 matches the model server of the target large language model in the preset model server cluster based on the model prompt word information and the model access credential information; finally, the processing unit 504 processes the model prompt word information through the target large language model in the model server to obtain the processing result of the business information to be processed. Thus, by matching the model server of the target large language model from the model server cluster, remote control of multiple large language models is realized, model prompt word information and model access credential information are determined based on the business to be processed, and the model prompt word information is processed by the target large language model, so that developers can only focus on the business without paying attention to the debugging details of the large language model, thereby improving the business development and debugging efficiency of the large language model.
[0134] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an information retrieval device, which is similar to Figure 2 The method embodiments shown correspond.
[0135] like Figure 6 As shown, the information retrieval device 600 provided in this embodiment includes: an acquisition unit 601, an enhancement unit 602, a question matching unit 603, a obtaining unit 604, and a question-answering unit 605. Among them, the acquisition unit 601 can be configured to obtain enhanced business information of the initial question to be retrieved; the enhancement unit 602 can be configured to use an information processing device to process the enhanced business demand information to obtain an enhanced question of the initial question; the question matching unit 603 can be configured to match the question to be processed in the question knowledge base based on the initial question and the enhanced question. The obtaining unit 604 can be configured to obtain question-answering business information based on the question to be processed. The question-answering unit can be configured to use an information processing device to process the question-answering business information to obtain the answer text of the question to be processed.
[0136] In this embodiment, the specific processing of the acquisition unit 601, the enhancement unit 602, the question matching unit 603, the obtaining unit 604, and the question-answering unit 605 and the technical effects thereof can be referred to in detail. Figure 2 The relevant descriptions of step 201, step 202, step 203, step 204, and step 205 in the corresponding embodiment are not repeated here.
[0137] In some optional implementations of this embodiment, the obtaining unit 604 is further configured to: determine the recall strategy of the pending question in the question knowledge base and the weight of the recall strategy; determine the question and answer business information based on the pending question, the recall strategy and the weight.
[0138] Further references Figure 7 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an information extraction device, which is similar to Figure 3 The method embodiments shown correspond.
[0139] like Figure 7 As shown, the information extraction device 700 provided in this embodiment includes: a splitting unit 701, a business determination unit 702, and an extraction unit 703. The splitting unit 701 can be configured to split the obtained document to be processed to obtain at least two document fragments. The business determination unit 702 can be configured to determine the extracted business information of each document fragment based on the at least two document fragments. The extraction unit 703 can be configured to use an information processing device to process the extracted business information of each document fragment to obtain a topic extraction result of each document fragment.
[0140] In this embodiment, in the information extraction device 700, the specific processing of the splitting unit 701, the business determination unit 702, and the extraction unit 703 and the technical effects thereof can be referred to respectively. Figure 3 The relevant descriptions of step 301, step 302, and step 303 in the corresponding embodiment are not repeated here.
[0141] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0142] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0143] Figure 8 A schematic block diagram of an example electronic device 800 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.
[0144] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0145] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0146] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 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 801 performs the various methods and processes described above, such as information processing methods or information retrieval methods or information extraction methods. For example, in some embodiments, the information processing method or information retrieval method or information extraction method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the information processing method or information retrieval method or information extraction method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the information processing method or the information retrieval method or the information extraction method in any other appropriate manner (eg, by means of firmware).
[0147] 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), load 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.
[0148] 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 information processing device, or an information retrieval device, or an information extraction device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. 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.
[0149] 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 equipment, 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.
[0150] 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).
[0151] 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.
[0152] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0153] 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.
[0154] 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, the method comprising: Based on the acquired business information to be processed, determine the model prompt word information; Determining model access credential information based on the model prompt word information; Based on the model prompt word information and the model access credential information, matching a model server of a target large language model in a preset model server cluster; The model prompt word information is processed by the target large language model in the model server to obtain a processing result of the business information to be processed.
2. The method according to claim 1, wherein: The step of determining the model prompt word information based on the acquired business information to be processed includes: Obtain pending business information; Based on the service information to be processed, determine the terminal identification and prompt word name; Sending the terminal identifier and the prompt word name to a management terminal, where the management terminal is used to manage the large language model in each model server in the model server cluster; Receive the model prompt word information including the template annotation information and the prompt word template sent by the management terminal.
3. The method according to claim 2, wherein: The template annotation information includes: model type, and the determining of model access credential information based on the model prompt word information includes: Sending the model type to the management terminal, so that the management terminal selects and sends model access credential information based on the model type; The model access credential information is received.
4. The method according to claim 2, wherein: The template annotation information includes: user identification and model type; the determining of model access credential information based on the model prompt word information also includes: Sending the user identifier to the management terminal so that the management terminal generates an encryption key of the user based on the user identifier, and the management terminal selects a model name of the large language model based on the model type; Receive model access credential information including the model name and the encryption key sent by the management terminal.
5. The method according to claim 1, wherein: The model prompt word information includes: model type, model parameters; the model access credential information includes: model type, encryption key; the model server that matches the target large language model in the preset model server cluster based on the model prompt word information and the model access credential information includes: Determining a large language model to be matched based on the model type and the model parameters; Determine at least one model server corresponding to the large language model to be matched in a preset model server cluster; Sending a service request carrying the encryption key to the at least one model server; In response to receiving the authentication pass information sent by the model server, the model server is used as the model server of the target large language model.
6. The method according to claim 1, wherein: The model prompt word information includes: a prompt word template, and the processing result of the business information to be processed by processing the model prompt word information through the target large language model in the model server includes: Sending the prompt word template to the model server; In response to detecting an output result output by the target large language model in the model server, the output result is used as a processing result of the business information to be processed.
7. The method according to claim 6, wherein: The model prompt word information also includes: a recall weight of at least one recall strategy, and the processing of the model prompt word information by the target large language model in the model server to obtain the processing result of the business information to be processed includes: The recall weight of the at least one recall strategy is sent to the model server, so that the target large language model in the model server processes the prompt word template based on the recall weight of the at least one recall strategy.
8. An information retrieval method, the method comprising: Obtaining enhanced business information of the initial question to be retrieved; The enhanced business requirement information is processed using the information processing method described in any one of claims 1 to 7 to obtain an enhanced question for the initial question; Based on the initial question and the enhanced question, matching the question to be processed in the question knowledge base; Based on the problem to be processed, obtain question-and-answer business information; The question-and-answer business information is processed using the information processing method described in any one of claims 1 to 7 to obtain the answer text of the question to be processed.
9. The method according to claim 8, wherein: The question-and-answer service information obtained based on the question to be processed includes: Determine a recall strategy for the pending problem in the problem knowledge base and a weight of the recall strategy; Question and answer service information is determined based on the questions to be processed, the recall strategy, and the weight.
10. An information extraction method, the method comprising: Splitting the obtained document to be processed to obtain at least two document fragments; Based on the at least two document fragments, determining the extracted business information of each document fragment; The information processing method described in any one of claims 1 to 7 is used to process the extracted business information of each document fragment to obtain the topic extraction result of each document fragment.
11. An information processing system, the system comprising: An agent terminal, a management terminal and a model server cluster, each model server in the model server cluster includes a large language model, and the management terminal is used to manage the large language models in each model server in the model server cluster; The agent terminal determines the model prompt word information through the management terminal based on the acquired business information to be processed; Based on the model prompt word information, determining model access credential information through the management terminal; based on the model prompt word information and the model access credential information, matching a model server of a target large language model in the model server cluster; The model prompt word information is processed by the target large language model in the model server to obtain a processing result of the business information to be processed.
12. The system according to claim 11, wherein: The agent terminal is also used to send the processing result to the management terminal; The management terminal is further used to determine the tracking observation result of the target large language model based on the processing result.
13. An information processing device, the device comprising: A prompt determination unit, configured to determine model prompt word information based on the acquired business information to be processed; a credential determination unit configured to determine model access credential information based on the model prompt word information; A service matching unit, configured to match a model server of a target large language model in a preset model server cluster based on the model prompt word information and the model access credential information; The processing unit is configured to process the model prompt word information through the target large language model in the model server to obtain a processing result of the business information to be processed.
14. An information retrieval device, comprising: An acquisition unit, configured to acquire enhanced business information of the initial question to be retrieved; an enhancement unit, configured to process the enhanced business requirement information using the information processing device according to claim 13 to obtain an enhanced question for the initial question; A question matching unit, configured to match a to-be-processed question in the question knowledge base based on the initial question and the enhanced question; An obtaining unit is configured to obtain question-answering service information based on the question to be processed; The question-and-answer unit is configured to process the question-and-answer business information using the information processing device described in claim 13 to obtain the answer text of the question to be processed.
15. An information extraction device, comprising: A splitting unit is configured to split the acquired document to be processed to obtain at least two document fragments; A business determination unit, configured to determine the extracted business information of each document fragment based on the at least two document fragments; The extraction unit is configured to use the information processing device described in claim 13 to process the extracted business information of each document fragment to obtain a topic extraction result of each document fragment.
16. An electronic device, characterized in that: include: 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 12.
17. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 12.
18. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Large model cue word verification processing method and device
CN117131529A
Extensible large language model calling method and device based on graph database knowledge enhancement
CN117235220A
Model calling method and device, electronic equipment and storage medium
CN117973523A
Cited By
Method for discovering network hot topics in science and technology field
CN118897894A
Data processing method and device, equipment and storage medium
CN119622760A
Service configuration scheme generation method and device, computer equipment and storage medium
CN119814546A
Business configuration scheme generation method and device, computer device, and storage medium
CN119814546B
RAG-based electric power communication management file assisted compilation method and system
CN120234405A
