A method, device, equipment and medium for recommending instruments based on multi-agent
The instrument recommendation method through multi-agent collaboration solves the problem that a single large language model is difficult to understand the complex intentions of users, achieves more accurate instrument recommendation results, and improves the accuracy and user satisfaction of the recommendation system.
Patent Information
- Application Number
- CN202411074910.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-07
AI Technical Summary
In the existing technology, a single large language model is used to generate instrument recommendation results, which makes it difficult to fully understand the user's complex intentions and background information, resulting in inaccurate recommendation results.
Using a multi-agent-based instrument recommendation method, research topics and research methods are gradually generated through the cooperation of research topic recommendation agents, research method recommendation agents, test method recommendation agents, and instrument recommendation agents, and accurate generation is generated based on the research methods. instrument recommendation results. This method includes obtaining user-input test materials and research directions, generating research topics, obtaining relevant literature, generating material testing methods and experimental design methods, and finally generating instrument recommendation results based on the research topics, research methods, and experimental design methods.
The accuracy of instrument recommendation results is improved. User needs can be more comprehensively understood through multi-agent collaboration, and more accurate and relevant instrument recommendation results can be generated.
Smart Images

Figure CN118585710B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a multi-agent based instrument recommendation method, device, equipment and medium. Background Art
[0002] With the rapid development of the Internet and big data, the application scope of personalized recommendation systems has become increasingly extensive. In the field of modern research, recommendation results are usually generated by analyzing the historical interaction data between users and items. Whether the recommendation results can be accurately generated has become an important factor affecting the user experience.
[0003] In the prior art, instrument recommendation results are usually generated directly through a single large language model.
[0004] However, existing technologies that generate instrument recommendation results through a single large language model often find it difficult to fully understand the user's complex intentions and background information, resulting in inaccurate recommendation results. Summary of the invention
[0005] The present invention provides a multi-agent based instrument recommendation method, device, equipment and medium, which can improve the accuracy of instrument recommendation results.
[0006] In the first aspect, an embodiment of the present invention provides an instrument recommendation method based on a multi-agent, which is applied to a multi-agent recommendation system. The multi-agent recommendation system includes a research topic recommendation agent, a research method recommendation agent, a test method recommendation agent and an instrument recommendation agent. The multi-agent instrument recommendation method includes: obtaining test materials, research directions and actual application scenarios of test materials input by a user; generating a research topic according to the user's attribute information, as well as the test materials, research directions and actual application scenarios of test materials through a research topic recommendation agent; obtaining literature related to the research topic through a research method recommendation agent, and generating at least one research method based on the research topic and the literature; generating material testing methods and experimental design methods corresponding to the research topic through a test method recommendation agent; generating instrument recommendation results corresponding to each research method according to the research topic, research method, material testing method and experimental design method through an instrument recommendation agent.
[0007] Optionally, before generating a research topic through a research topic recommendation agent according to the user's attribute information, as well as test materials, research directions and actual application scenarios of test materials, it also includes: generating comprehensive text information according to the test materials, research directions and actual application scenarios of test materials; obtaining instrument information in a pre-built instrument library, and determining the text semantic similarity between each instrument information and the comprehensive text information; sorting each instrument in the instrument library according to the text semantic similarity to obtain an instrument sequence, and determining a target key-value pair corresponding to the instrument sequence; generating instrument recommendation results corresponding to each research method according to research topics, research methods, material testing methods and experimental design methods through an instrument recommendation agent, specifically including: generating instrument recommendation results corresponding to each research method according to research topics, research methods, material testing methods, experimental design methods and target key-value pairs through an instrument recommendation agent.
[0008] Optionally, the instrument recommendation agent is configured with a large language model including an attention mechanism network; wherein the target key-value pairs are used as key input parameters of the attention mechanism network.
[0009] Optionally, the instruments in the instrument library are sorted according to the text semantic similarity to obtain an instrument sequence, including: sorting the text semantic similarities in ascending or descending order to obtain a similarity sorting result; obtaining the two text semantic similarities with the largest values in the similarity sorting result, and arranging the instruments corresponding to the two text semantic similarities with the largest values at the beginning and end positions of a preset empty sequence; updating the position closest to the beginning position in the preset empty sequence to the beginning position, and updating the position closest to the end position in the preset empty sequence to the end position; removing the two text semantic similarities with the largest values from the similarity sorting result, and returning to execute the operation of obtaining the two text semantic similarities with the largest values in the similarity sorting result, until the arrangement of the instrument information in the instrument library is completed.
[0010] Optionally, through a research method recommendation agent, literature related to the research topic is obtained, and at least one research method is generated based on the research topic and the literature, including: through a research method recommendation agent, literature related to the research topic is obtained, and the current research method is generated based on the research topic and the literature; through a research method recommendation agent, the current key-value pair corresponding to the current research method is cached as a preceding association feature; through a research method recommendation agent, the next research method corresponding to the current research method is generated based on the research topic, the literature and the cached preceding association features; through a research method recommendation agent, the next key-value pair corresponding to the next research method is concatenated with the current key-value pair to obtain an updated current key-value pair; through a research method recommendation agent, the next research method is used as the current research method, and the step of caching the current key-value pair corresponding to the current research method as a preceding association feature is returned to be executed through a research method recommendation agent until all research methods are generated.
[0011] Optionally, after generating instrument recommendation results corresponding to each research method according to the research topic, research method, material testing method and experimental design method through the instrument recommendation agent, it also includes: adding the research method and the instrument recommendation results matching the research method to a pre-set instrument recommendation template to obtain at least one combined recommendation item; and displaying each combined recommendation item to the user as an item.
[0012] Optionally, the multi-agent based instrument recommendation method also includes: repeatedly executing the multi-agent based instrument recommendation method for the same set of test materials, research directions and actual application scenarios of the test materials input by the user, and obtaining a set of recommended instruments obtained by each execution; counting the occurrence frequency of each recommended instrument according to each recommended instrument set, and when a recommended instrument with an abnormal occurrence frequency is identified, adjusting the model parameters of the large language model in the instrument recommendation agent; returning to execute the operation of the multi-agent based instrument recommendation method for the same set of test materials, research directions and actual application scenarios of the test materials input by the user, and repeatedly executing the operation until the adjustment end conditions are met.
[0013] In the second aspect, an embodiment of the present invention also provides an instrument recommendation device based on a multi-agent, which is applied to a multi-agent recommendation system. The multi-agent recommendation system includes a research topic recommendation agent, a research method recommendation agent, a test method recommendation agent and an instrument recommendation agent. The multi-agent instrument recommendation device includes: a data acquisition module, which is used to obtain test materials, research directions and actual application scenarios of test materials input by a user; a research topic generation module, which is used to generate a research topic through a research topic recommendation agent according to the user's attribute information, as well as test materials, research directions and actual application scenarios of test materials; a research method generation module, which is used to obtain literature related to the research topic through a research method recommendation agent, and generate at least one research method based on the research topic and the literature; a test method generation module, which is used to generate material testing methods and experimental design methods corresponding to the research topic through a test method recommendation agent; an instrument recommendation module, which is used to generate instrument recommendation results corresponding to each research method through an instrument recommendation agent according to the research topic, research method, material testing method and experimental design method.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the multi-agent-based instrument recommendation method provided in any embodiment of the present invention.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to implement the multi-agent-based instrument recommendation method of any embodiment of the present invention when executed.
[0016] The technical solution of the embodiment of the present invention, through multiple intelligent agents, gradually generates research topics and research methods corresponding to the research direction, and generates instrument recommendation results based on the research methods, avoiding the existing technology of generating instrument recommendation results only through a large language model, which can only generate instrument recommendation results directly based on the research direction, resulting in inaccurate instrument recommendation results, thereby improving the accuracy of the instrument recommendation results.
[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a flowchart of a multi-agent based instrument recommendation method provided according to Embodiment 1 of the present invention;
[0020] Figure 2 is a flowchart of another multi-agent-based instrument recommendation method provided according to Embodiment 2 of the present invention;
[0021] Figure 3 is a flow chart of a method for pre-sorting instrument information provided according to an embodiment of the present invention;
[0022] Figure 4 is a flow chart of a method for generating a research method provided in an embodiment of the present invention;
[0023] Figure 5 is a flowchart of a preferred multi-agent-based instrument recommendation method provided according to an embodiment of the present invention;
[0024] Figure 6 is a structural schematic diagram of a multi-agent-based instrument recommendation device provided according to Embodiment 3 of the present invention;
[0025] Figure 7 It is a schematic diagram of the structure of an electronic device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. Embodiment 1
[0028] Figure 1 It is a flowchart of a multi-agent based instrument recommendation method provided according to the first embodiment of the present invention. This embodiment is applicable to the situation where research directions and instruments are recommended when the research directions are known. The method can be executed by a multi-agent based instrument recommendation device. The multi-agent based instrument recommendation device can be implemented in the form of hardware and / or software. The multi-agent based instrument recommendation device can be configured in an electronic device such as a computer.
[0029] This embodiment discloses a multi-agent-based instrument recommendation method, which is applied to a multi-agent recommendation system, which includes a research topic recommendation agent, a research method recommendation agent, a test method recommendation agent, an instrument recommendation agent, and an information center agent. The multi-agent recommendation system can determine whether the agents can interact with each other through predefined protocols and semantic rules, and optimize the performance of each agent based on user feedback information. The information center agent can be used to collect and distribute the output information of each interactive agent. Figure 1 As shown, the multi-agent based instrument recommendation method includes:
[0030] S110, obtaining test materials, research directions and actual application scenarios of the test materials input by the user.
[0031] In this embodiment, the test material may be a material that the user wants to study and test. The research direction may be a research direction for the test material. The actual application scenario of the test material may be used to reflect the purpose of the test material.
[0032] S120. Generate a research topic through a research topic recommendation agent according to the user's attribute information, as well as test materials, research directions, and actual application scenarios of the test materials.
[0033] In this embodiment, a large language model is configured in the instrument recommendation agent. The user's attribute information may include the user's interests, needs, preferences, etc.
[0034] In this step, specifically, the user's attribute information, as well as the test materials, research directions and actual application scenarios of the test materials can be used as input data and input into the research topic recommendation agent for processing to obtain a research topic.
[0035] For example, assuming that the test material input by the user is lithium cobalt oxide positive electrode material, the research direction is to improve the cycle stability of the material to extend the material life, and the actual application scenario is lithium battery, then the research topic generated by the research topic recommendation intelligent agent is to explore the impact of the optimization of lithium battery positive electrode materials (lithium cobalt oxide as an example) on life.
[0036] S130. Acquire literature related to the research topic through a research method recommendation agent, and generate at least one research method based on the research topic and the literature.
[0037] In this embodiment, a large language model is configured in the research method recommendation agent. The research method can be a method for achieving a research topic.
[0038] In this step, specifically, after acquiring the expertise and latest research progress in the field of materials science related to the research topic (i.e., the literature related to the research topic) through the research method recommendation agent, at least one research method can be generated according to the research topic and the literature.
[0039] Continuing with the previous example, when the research topic is to explore the impact of the optimization of lithium battery positive electrode materials (for example, lithium cobalt oxide) on life, a research method generated can be to use synchrotron X-ray diffraction, UV-visible absorption spectroscopy and scanning electron microscopy to conduct detailed characterization of the crystal structure, light absorption properties and surface morphology of lithium cobalt oxide films, and use synchrotron radiation sources and multi-beam interferometry technology to improve measurement accuracy and data reliability.
[0040] S140. Generate material testing methods and experimental design methods corresponding to research topics through testing method recommendation agents.
[0041] In this step, specifically, the research topic can be used as input data and input into the test method recommendation agent for processing to obtain the material testing method and experimental design method corresponding to the research topic. The test method recommendation agent is configured with a large language model.
[0042] S150. Generate instrument recommendation results corresponding to each research method through the instrument recommendation intelligent agent according to the research topic, research method, material testing method and experimental design method.
[0043] In this embodiment, a large language model is configured in the instrument recommendation agent. The instrument recommendation result may include the instrument used to implement the research method, the purpose of the instrument, and the reason for recommending the instrument.
[0044] In this step, specifically, each time a new research method is generated, the research topic, research method, material testing method and experimental design method can be used as input data and input into the instrument recommendation intelligent agent for processing to obtain an instrument recommendation result corresponding to the new research method.
[0045] Continuing with the previous example, when the new research method is to characterize the crystal structure, light absorption properties and surface morphology of lithium cobalt oxide thin films in detail by synchrotron X-ray diffraction, UV-visible absorption spectroscopy and scanning electron microscopy, the recommended instrument result is X-ray diffractometer and its related information.
[0046] Optionally, while the instrument recommendation agent generates instrument recommendation results corresponding to the current research method, the research method recommendation agent can generate the next research method corresponding to the current research method, that is, the research method recommendation agent and the instrument recommendation agent can be operated in parallel.
[0047] The technical solution of this embodiment provides an instrument recommendation method based on multi-agents, by obtaining the test materials, research directions and actual application scenarios of the test materials input by the user; through the research topic recommendation agent, a research topic is generated according to the user's attribute information, as well as the test materials, research directions and actual application scenarios of the test materials; through the research method recommendation agent, literature related to the research topic is obtained, and at least one research method is generated according to the research topic and the literature; through the test method recommendation agent, a material testing method and an experimental design method corresponding to the research topic are generated; through the instrument recommendation agent, a technical means is used to generate instrument recommendation results corresponding to each research method according to the research topic, research method, material testing method and experimental design method, respectively, which solves the problem that the existing technology of generating instrument recommendation results through a single large language model is difficult to fully understand the user's complex intentions and background information, resulting in inaccurate recommendation results, and improves the accuracy of the instrument recommendation results. Embodiment 2
[0048] Figure 2 It is a flowchart of another multi-agent-based instrument recommendation method provided according to Example 2 of the present invention. This embodiment is a further optimization and expansion based on the above embodiments, and can be combined with various optional technical solutions in the above implementation methods.
[0049] like Figure 2 As shown, the present embodiment discloses a multi-agent based instrument recommendation method, comprising:
[0050] S210, obtaining the test materials, research directions and actual application scenarios of the test materials input by the user, and generating comprehensive text information according to the test materials, research directions and actual application scenarios of the test materials.
[0051] S220: Obtain instrument information in a pre-built instrument library, and determine the text semantic similarity between each instrument information and the comprehensive text information.
[0052] In this embodiment, the instrument information may include the instrument name and instrument function, etc.
[0053] In this step, specifically, the text semantic similarity between each instrument information and the comprehensive text information can be determined by a text semantic similarity measurement method or a deep semantic matching model. The text semantic similarity measurement method may include a word embedding method and a text vectorization method.
[0054] S230 , sorting the instruments in the instrument library according to the text semantic similarity to obtain an instrument sequence, and determining a target key-value pair corresponding to the instrument sequence.
[0055] In this step, specifically, a forward method, a reverse method or a lateral method can be used to sort the instruments in the instrument library according to the text semantic similarity to obtain an instrument sequence. Then, the target key-value pair corresponding to the instrument sequence can be determined, and the above instrument sequence can be cached. The forward method is as follows: Sort the instruments in the instrument library in descending order according to the text semantic similarity to ensure that the most relevant instrument information is presented first. The reverse method is as follows: Sort the instruments in the instrument library in ascending order according to the text semantic similarity to place the less relevant instrument information at the front of the sequence, thereby ensuring the fairness of the recommendation results. The lateral method is as follows: Place highly relevant instrument information at the beginning and end of the instrument sequence according to the text semantic similarity.
[0056] Figure 3 The present invention provides a flowchart of a method for pre-sorting instrument information according to an embodiment of the present invention.
[0057] In an alternative implementation, Figure 3 As shown, S230 may specifically include:
[0058] S231 , sorting the semantic similarities of the texts in ascending or descending order to obtain a similarity sorting result.
[0059] S232. Obtain the two text semantic similarities with the largest values in the similarity sorting results, and arrange the instruments corresponding to the two text semantic similarities with the largest values at the beginning and the end of the preset empty sequence.
[0060] In this step, specifically, the instrument corresponding to the text semantic similarity with the largest value can be arranged at the beginning of the preset empty sequence, and the instrument corresponding to the text semantic similarity with the second largest value can be arranged at the end of the preset empty sequence. Alternatively, the instrument corresponding to the text semantic similarity with the largest value can be arranged at the end of the preset empty sequence, and the instrument corresponding to the text semantic similarity with the second largest value can be arranged at the beginning of the preset empty sequence. This embodiment does not limit this.
[0061] S233: Update the position closest to the beginning position in the preset empty sequence as the beginning position, and update the position closest to the ending position in the preset empty sequence as the ending position.
[0062] S234: remove the two text semantic similarities with the largest values from the similarity sorting result, and return to execute S232.
[0063] In this step, specifically, the two text semantic similarities with the largest values can be removed from the similarity sorting result, and the operation of obtaining the two text semantic similarities with the largest values in the similarity sorting result is returned to execute until the arrangement of each instrument information in the instrument library is completed, or the length of the instrument sequence reaches the preset sequence length.
[0064] S235. Determine a target key-value pair corresponding to the instrument sequence.
[0065] The advantage of this setting is that by placing highly relevant instrument information at the beginning and end of the instrument sequence, the instrument recommendation agent can pay more attention to the highly relevant instrument information, thereby improving the efficiency and accuracy of instrument recommendation. Secondly, by generating the instrument sequence and the target key-value pairs corresponding to the instrument sequence before generating the research topic, the target key-value pairs can be reused in the instrument recommendation stage, thereby improving the efficiency of instrument recommendation.
[0066] S240. Generate a research topic through a research topic recommendation agent based on the user's attribute information, as well as test materials, research directions, and actual application scenarios of the test materials.
[0067] S250. Through the research method recommendation agent, obtain the literature related to the research topic, and generate at least one research method based on the research topic and the literature.
[0068] Figure 4 It is a flowchart of a research method generation method provided according to an embodiment of the present invention.
[0069] In an alternative implementation, Figure 4 As shown, S250 may specifically include:
[0070] S251. Through the research method recommendation agent, obtain the literature related to the research topic, and generate the current research method based on the research topic and literature.
[0071] In this step, specifically, after obtaining literature related to the research topic through the research method recommendation agent, the current research method can be generated according to the research topic and the literature.
[0072] S252. Recommend an intelligent agent through a research method, and cache the current key-value pair corresponding to the current research method as a preceding associated feature.
[0073] In this step, specifically, the current key-value pair may be stored in a pre-built empty key-value pair to implement caching of the current key-value pair.
[0074] S253. Through the research method recommendation agent, the next research method corresponding to the current research method is generated according to the research topic, literature and cached previous association features.
[0075] In this step, specifically, the research topic, literature, and cached previous correlation features can be used as input data and input into the research method recommendation agent for processing to obtain the next research method corresponding to the current research method.
[0076] S254. Recommend an intelligent agent through research methods, concatenate the next key-value pair corresponding to the next research method with the current key-value pair to obtain an updated current key-value pair.
[0077] S255. Recommend an intelligent agent through the research method, take the next research method as the current research method, and return to execute S252.
[0078] In this step, specifically, an agent can be recommended through research methods, the next research method can be used as the current research method, and the step of returning to execute the step of recommending an agent through research methods and caching the current key-value pair corresponding to the current research method as a preceding associated feature can be performed until all research methods are generated.
[0079] The advantage of this setting is that by storing and reusing the intermediate results generated by the research method recommendation agent during the reasoning process, repeated calculations can be reduced and the generation speed of recommended content can be increased. Secondly, by concatenating the next key-value pair corresponding to the next research method with the current key-value pair, the computational complexity can be reduced (from the quadratic level to the linear level), reducing the consumption of computing resources in the recommendation process, and improving the resource utilization efficiency of the multi-agent recommendation system.
[0080] S260, through the test method recommendation agent, generate material testing methods and experimental design methods corresponding to the research topic.
[0081] S270. Generate instrument recommendation results corresponding to each research direction through the instrument recommendation agent according to the research topic, research method, material testing method, experimental design method and target key-value pairs.
[0082] In this embodiment, optionally, before the instrument recommendation result is generated by the instrument recommendation agent, the performance of the large language model in the instrument recommendation agent can be evaluated by cross-validation technology, that is, by dividing the data set into multiple subsets, training the model on each subset in turn and verifying it on the remaining subsets, so that the evaluation result of the model performance is more reliable. Secondly, before the instrument recommendation result is generated by the instrument recommendation agent, multiple preset neural network models can be evaluated according to model performance indicators (such as precision, recall, and the harmonic mean of precision and recall, etc.) to obtain the large language model in the instrument recommendation agent.
[0083] In this step, specifically, the research topic, research method, material testing method, experimental design method and target key-value pair can be input into the instrument recommendation agent for processing to obtain the instrument recommendation result corresponding to the above research direction. Among them, the instrument recommendation agent is configured with a large language model containing an attention mechanism network. The target key-value pair is used as a key input parameter of the attention mechanism network. Then, the instrument recommendation result can be compared with the instrument information in the instrument library using a similarity metric, and when it is detected that the instrument recommendation result exceeds the category range of the instrument library, the model parameters of the large language model in the instrument recommendation agent are adjusted. Return to execute the operation of inputting the research topic, research method, material testing method, experimental design method and target key-value pair into the instrument recommendation agent for processing until the instrument recommendation result does not exceed the category range of the instrument library.
[0084] The benefit of this setting is that, through the target key-value pairs and the configuration of a large language model containing an attention mechanism network in the instrument recommendation agent, it is possible to prioritize the display of instrument information with high popularity and relevance, thereby increasing the user's click-through rate. Secondly, since the large language model has the advantages of being able to accurately identify the subtle differences in user needs, process input data in various forms such as text and images, update the knowledge base of each agent based on user interaction, apply relevant knowledge in other fields to material testing recommendations, and integrate the latest material research progress and testing methods in real time to ensure the timeliness of recommendations, etc., therefore, by configuring a large language model in the instrument recommendation agent, accurate and up-to-date recommendations can be made for users, thereby improving the performance and user satisfaction of the multi-agent recommendation system.
[0085] In an optional implementation method of an embodiment of the invention, the method also includes: repeatedly executing the multi-agent based instrument recommendation method for the same set of test materials, research directions and actual application scenarios of the test materials input by the user, and obtaining a set of recommended instruments obtained by each execution; according to each set of recommended instruments, counting the occurrence frequency of each recommended instrument, and when a recommended instrument with an abnormal occurrence frequency is identified, adjusting the model parameters of the large language model in the instrument recommendation agent; returning to execute the same set of test materials, research directions and actual application scenarios of the test materials input by the user, repeatedly executing the operation of the multi-agent based instrument recommendation method until the adjustment end condition is met.
[0086] The model parameters may be internal variables of the model learned from the training data, such as weights and biases of deep learning. The end adjustment condition may be that there are no recommended instruments with abnormal frequency of occurrence in the instrument recommendation results. Specifically, if the frequency of occurrence of the recommended instrument is less than a preset frequency threshold, the frequency of occurrence of the recommended instrument is considered abnormal. At this point, the model parameters of the large language model in the instrument recommendation agent may be adjusted.
[0087] The advantage of such a setting is that by identifying the recommended instruments with abnormal occurrence frequencies in the instrument recommendation results and adjusting the model parameters according to the recommended instruments with abnormal occurrence frequencies, the consistency and reliability of the instrument recommendation results can be improved.
[0088] In another optional implementation method of an embodiment of the invention, after the instrument recommendation agent generates instrument recommendation results corresponding to each research method according to the research topic, research method, material testing method and experimental design method, it also includes: adding the research method and the instrument recommendation results matching the research method to a pre-set instrument recommendation template to obtain at least one combined recommendation item; and displaying each combined recommendation item to the user as an item.
[0089] In a specific implementation, an instrument recommendation template may be created based on a library for generating neural text (ie, the Outlines library).
[0090] The advantage of this setting is that by setting the instrument recommendation template, the format and characteristics of the output instrument recommendation results can be closely matched with the format and characteristics of the existing instrument recommendation results, ensuring that the combined recommendation items in the output instrument recommendation results correspond one-to-one with the combined recommendation items in the existing instrument recommendation results.
[0091] The technical solution of this embodiment generates comprehensive text information according to the test materials, research directions and actual application scenarios of the test materials; obtains the instrument information in the pre-built instrument library and determines the text semantic similarity between each instrument information and the comprehensive text information; sorts each instrument in the instrument library according to the text semantic similarity to obtain the instrument sequence and determines the target key-value pair corresponding to the instrument sequence; generates a research topic through a research topic recommendation agent; generates at least one research method through a research method recommendation agent; generates a technical means of instrument recommendation results corresponding to each research direction through an instrument recommendation agent according to the research topic, research method, material testing method, experimental design method and target key-value pair, which solves the problem that the existing technology of generating instrument recommendation results through a single large language model is difficult to fully understand the complex intentions and background information of the user, resulting in inaccurate recommendation results. Secondly, sorting each instrument in the instrument library by text semantic similarity can ensure that high-heat and high-relevance projects are displayed first, so that users can quickly obtain instruments for implementing research methods.
[0092] Figure 5 FIG. 1 is a flowchart of a preferred multi-agent-based instrument recommendation method according to an embodiment of the present invention. Figure 5 As shown, the test materials, research directions and actual application scenarios of the test materials input by the user can be obtained. Through the research topic recommendation agent, a research topic is generated according to the user's attribute information, as well as the test materials, research directions and actual application scenarios of the test materials. Through the research method recommendation agent, the literature related to the research topic is obtained, and the research method is generated based on the research topic and the literature. Then, it is determined whether all research methods have been generated. If so, the steps of obtaining the literature related to the research topic and generating the research method based on the research topic and the literature are returned to the research method recommendation agent until all research methods are generated. Among them, after each new research method is generated, the instrument recommendation agent is used to generate the instrument recommendation result corresponding to the new research method according to the research topic, research method, material testing method and experimental design method. Embodiment 3
[0093] Figure 6 It is a structural diagram of a multi-agent based instrument recommendation device provided according to Example 3 of the present invention. This embodiment is applicable to the situation where research directions and instruments are recommended when the research directions are known. The multi-agent based instrument recommendation device can be implemented in the form of hardware and / or software and can be configured in electronic devices such as computers.
[0094] like Figure 6As shown, the multi-agent-based instrument recommendation device disclosed in this embodiment is applied to a multi-agent recommendation system, which includes a research topic recommendation agent, a research method recommendation agent, a test method recommendation agent and an instrument recommendation agent. The multi-agent-based instrument recommendation device includes: a data acquisition module 61, which is used to obtain the test materials, research directions and actual application scenarios of the test materials input by the user; a research topic generation module 62, which is used to generate a research topic through a research topic recommendation agent according to the user's attribute information, as well as the test materials, research directions and actual application scenarios of the test materials; a research method generation module 63, which is used to obtain literature related to the research topic through a research method recommendation agent, and generate at least one research method based on the research topic and the literature; a test method generation module 64, which is used to generate material testing methods and experimental design methods corresponding to the research topic through a test method recommendation agent; an instrument recommendation module 65, which is used to generate instrument recommendation results corresponding to each research method through an instrument recommendation agent according to the research topic, research method, material testing method and experimental design method.
[0095] The technical solution in this embodiment, through the mutual cooperation of the data acquisition module, the research topic generation module, the research method generation module, the test method generation module and the instrument recommendation module, solves the problem that the existing technology of generating instrument recommendation results through a single large language model is difficult to fully understand the user's complex intentions and background information, resulting in inaccurate recommendation results, thereby improving the accuracy of the instrument recommendation results.
[0096] Optionally, the multi-agent-based instrument recommendation device also includes an instrument information preprocessing module, which includes: a text information generation unit, used to generate comprehensive text information based on test materials, research directions and actual application scenarios of test materials; a semantic similarity determination unit, used to obtain instrument information in a pre-built instrument library, and determine the text semantic similarity between each instrument information and the comprehensive text information; a key-value pair determination unit, used to sort each instrument in the instrument library according to the text semantic similarity, obtain an instrument sequence, and determine a target key-value pair corresponding to the instrument sequence.
[0097] Optionally, the key-value pair determination unit includes: a similarity sorting subunit, used to sort the semantic similarities of each text in ascending or descending order to obtain a similarity sorting result; a data filling subunit, used to obtain the two text semantic similarities with the largest values in the similarity sorting result, and arrange the instruments corresponding to the two text semantic similarities with the largest values at the beginning and end positions of a preset empty sequence; a position updating subunit, used to update the position closest to the beginning position in the preset empty sequence to the beginning position, and update the position closest to the end position in the preset empty sequence to the end position; an instrument sequence generating subunit, used to remove the two text semantic similarities with the largest values from the similarity sorting result, and return to execute the operation of obtaining the two text semantic similarities with the largest values in the similarity sorting result until the arrangement of each instrument information in the instrument library is completed.
[0098] Optionally, the research method generation module 63 includes: a current research method generation unit, which is used to recommend an agent through research methods, obtain literature related to the research topic, and generate the current research method based on the research topic and the literature; an information cache unit, which is used to recommend an agent through research methods, and cache the current key-value pair corresponding to the current research method as a preceding association feature; a next research method generation unit, which is used to recommend an agent through research methods, and generate the next research method corresponding to the current research method based on the research topic, literature and cached preceding association features; a current key-value pair update unit, which is used to recommend an agent through research methods, and concatenate the next key-value pair corresponding to the next research method with the current key-value pair to obtain an updated current key-value pair; a generation unit for all research methods, which is used to recommend an agent through research methods, and use the next research method as the current research method, and return to execute the step of recommending an agent through research methods and caching the current key-value pair corresponding to the current research method as a preceding association feature until all research methods are generated.
[0099] Optionally, the instrument recommendation module 65 is specifically used to: generate instrument recommendation results corresponding to each research method according to the research topic, research method, material testing method, experimental design method and target key-value pairs through the instrument recommendation intelligent agent.
[0100] Optionally, the multi-agent-based instrument recommendation device also includes a recommendation result display module, which includes: a recommendation item generation unit, used to add the research method and the instrument recommendation results matching the research method to a pre-set instrument recommendation template, respectively, to obtain at least one combined recommendation item; a recommendation item display unit, used to display each combined recommendation item as an item to the user.
[0101] Optionally, the multi-agent-based instrument recommendation device also includes a model parameter adjustment module, which includes: an instrument recommendation unit, which is used to repeatedly execute the multi-agent-based instrument recommendation method for the same set of test materials, research directions and actual application scenarios of test materials input by the user, and obtain a set of recommended instruments obtained by each execution; a model parameter adjustment unit, which is used to count the occurrence frequency of each recommended instrument according to each recommended instrument set, and when a recommended instrument with an abnormal occurrence frequency is identified, adjust the model parameters of the large language model in the instrument recommendation agent; a model verification unit, which is used to return to execute the operation of the multi-agent-based instrument recommendation method for the same set of test materials, research directions and actual application scenarios of test materials input by the user, and repeatedly execute the operation until the adjustment end condition is met.
[0102] The multi-agent based instrument recommendation device provided in the embodiment of the present invention can execute the multi-agent based instrument recommendation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in this embodiment, please refer to the description in any method embodiment of this application. Embodiment 4
[0103] Figure 7 FIG. 1 is a schematic diagram showing the structure of an electronic device 10 that can be used to implement an embodiment of the present invention. Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0104] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0105] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a multi-agent-based instrument recommendation method.
[0106] In some embodiments, the multi-agent-based instrument recommendation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the multi-agent-based instrument recommendation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the multi-agent-based instrument recommendation method in any other appropriate manner (e.g., by means of firmware).
[0107] 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.
[0108] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program 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.
[0109] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. 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.
[0110] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0111] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend 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 backend components, middleware components, or frontend 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), a blockchain network, and the Internet.
[0112] A computing 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 client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0113] 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 described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0114] The above specific implementations do not constitute a limitation on the protection scope of the present invention. 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 invention should be included in the protection scope of the present invention.
Claims
1. A multi-agent based instrument recommendation method, characterized in that: Applied to a multi-agent recommendation system, the multi-agent recommendation system includes a research topic recommendation agent, a research method recommendation agent, a test method recommendation agent and an instrument recommendation agent. The multi-agent-based instrument recommendation method includes: Obtain test materials, research directions and actual application scenarios of test materials input by users; Generate a research topic through the research topic recommendation agent according to the attribute information of the user, the test materials, the research direction and the actual application scenario of the test materials; The research method recommendation agent obtains literature related to the research topic, and generates at least one research method based on the research topic and the literature; Generate material testing methods and experimental design methods corresponding to the research topic through the test method recommendation agent; The instrument recommendation agent generates instrument recommendation results corresponding to each research method according to the research topic, research method, material testing method and experimental design method.
2. The multi-agent based instrument recommendation method according to claim 1, characterized in that: Before generating a research topic through the research topic recommendation agent according to the attribute information of the user, the test materials, the research direction and the actual application scenario of the test materials, the following is also included: Generate comprehensive text information based on the test materials, research directions and actual application scenarios of the test materials; Acquire instrument information in a pre-built instrument library, and determine text semantic similarity between each of the instrument information and the comprehensive text information; Sort the instruments in the instrument library according to the text semantic similarity to obtain an instrument sequence, and determine a target key-value pair corresponding to the instrument sequence; Through the instrument recommendation agent, according to the research topic, research method, material testing method and experimental design method, an instrument recommendation result corresponding to each research method is generated, specifically including: The instrument recommendation agent generates instrument recommendation results corresponding to each research method according to the research topic, research method, material testing method, experimental design method and the target key-value pair.
3. The multi-agent based instrument recommendation method according to claim 2, characterized in that: The instrument recommendation agent is configured with a large language model including an attention mechanism network; Among them, the target key-value pair is used as a key input parameter of the attention mechanism network.
4. The multi-agent based instrument recommendation method according to claim 2, characterized in that: The instruments in the instrument library are sorted according to the text semantic similarity to obtain an instrument sequence, including: Sorting the semantic similarities of the texts in ascending or descending order to obtain a similarity sorting result; Obtaining the two text semantic similarities with the largest values in the similarity sorting results, and arranging the instruments corresponding to the two text semantic similarities with the largest values at the beginning and end of a preset empty sequence; The position closest to the start position in the preset empty sequence is updated as the start position, and the position closest to the end position in the preset empty sequence is updated as the end position; The two text semantic similarities with the largest values are removed from the similarity sorting result, and the operation of obtaining the two text semantic similarities with the largest values in the similarity sorting result is returned to be executed until the arrangement of each instrument information in the instrument library is completed.
5. The multi-agent based instrument recommendation method according to claim 1, characterized in that: The research method recommendation agent is used to obtain literature related to the research topic, and at least one research method is generated according to the research topic and the literature, including: By recommending an agent through the research method, obtaining literature related to the research topic, and generating a current research method based on the research topic and the literature; Recommending an agent through the research method, caching a current key-value pair corresponding to the current research method as a preceding association feature; Generate a next research method corresponding to the current research method through the research method recommendation agent according to the research topic, literature and the cached previous association features; Recommending an agent through the research method, concatenating the next key-value pair corresponding to the next research method with the current key-value pair to obtain an updated current key-value pair; Recommend an agent through the research method, take the next research method as the current research method, and return to execute the step of recommending an agent through the research method, caching the current key-value pair corresponding to the current research method as a preceding associated feature, until all research methods are generated.
6. The multi-agent based instrument recommendation method according to any one of claims 1 to 5, characterized in that: After the instrument recommendation agent generates instrument recommendation results corresponding to each research method according to the research topic, research method, material testing method and experimental design method, the following further includes: Adding the research method and the instrument recommendation results matching the research method to the preset instrument recommendation template respectively to obtain at least one combined recommendation item; Each of the combined recommendation items is presented to the user as an item.
7. The multi-agent based instrument recommendation method according to any one of claims 1 to 5, characterized in that: The multi-agent based instrument recommendation method further includes: For the same set of test materials, research directions and actual application scenarios of the test materials input by the user, the multi-agent-based instrument recommendation method is repeatedly executed multiple times, and a recommended instrument set obtained by each execution is obtained; According to each set of recommended instruments, the occurrence frequency of each recommended instrument is counted, and when a recommended instrument with an abnormal occurrence frequency is identified, a model parameter of a large language model in the instrument recommendation agent is adjusted; Return to execute the same set of test materials, research directions and actual application scenarios of the test materials input by the user, and repeatedly execute the operations of the multi-agent-based instrument recommendation method until the end adjustment conditions are met.
8. An instrument recommendation device based on multi-agent, characterized in that: Applied to a multi-agent recommendation system, the multi-agent recommendation system includes a research topic recommendation agent, a research method recommendation agent, a test method recommendation agent and an instrument recommendation agent, and the multi-agent-based instrument recommendation device includes: The data acquisition module is used to obtain the test materials, research directions and actual application scenarios of the test materials input by the user; A research topic generation module, used to generate a research topic through the research topic recommendation agent according to the user's attribute information, as well as the test materials, research directions and actual application scenarios of the test materials; A research method generation module, used to recommend an agent through the research method, obtain literature related to the research topic, and generate at least one research method based on the research topic and the literature; A test method generation module, used to recommend an intelligent agent through the test method, and generate a material test method and an experimental design method corresponding to the research topic; The instrument recommendation module is used to generate instrument recommendation results corresponding to each research method through the instrument recommendation agent according to the research topic, research method, material testing method and experimental design method.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the multi-agent-based instrument recommendation method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the multi-agent-based instrument recommendation method described in any one of claims 1-7 when executed.
