Robot calling method and device, electronic equipment, storage medium and program product

Through matching technology based on semantic vectors and keywords, combined with large model recognition, the problem of low accuracy of RPA robot calls is solved, achieving higher recognition accuracy and ease of operation.

CN118735182APending Publication Date: 2024-10-01CHINA MOBILE GROUP ZHEJIANG +2
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410790878.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The problem of low accuracy in existing RPA robot calling methods is mainly because users need to memorize accurate formatting instructions or enter fuzzy robot names, resulting in low matching accuracy and high noise.

Method used

Using a method based on semantic vectors, keywords and predicted instructions, large model recognition is used to match user instructions and robot application descriptions, generate a candidate list, and use prompt words to select the target robot from the list, reducing user operation complexity and noise impact .

Benefits of technology

The accuracy of robot calling is improved, the user operation process is simplified, the accuracy of target robot identification is enhanced, the impact of noise is reduced, and the problem of low accuracy in the existing technology is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735182A_ABST
    Figure CN118735182A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, and provides a robot calling method and device, electronic equipment, a storage medium and a program product, and the method comprises the steps: responding to a user instruction, carrying out the matching of the user instruction and a predefined application description of a robot based on at least one of a semantic vector, a keyword and a prediction instruction, determining a robot candidate list; determining at least one prompt word according to the user instruction and the robot candidate list; the cue word is input to a predetermined large model, the large model is used for determining parameter information corresponding to the user instruction, and at least one target robot is selected from the robot candidate list based on the cue word; and calling the target robot according to the parameter information. According to the method, retrieval is performed based on the user instruction, and then the target robot is obtained by using a large model identification mode, so that a user does not need to accurately memorize a formatting instruction, the noise in the user instruction is reduced, and the identification accuracy of the target robot is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a robot calling method, device, electronic device, storage medium and program product. Background Art

[0002] Robotic Process Automation (RPA) is a technology that uses software automation to transfer tasks that were originally completed by humans to computers. Specifically, the program scripts (i.e., RPA robots) for completing various tasks are predefined first, and then the appropriate RPA robot is selected through interaction between the user and the system to complete the target task. It is particularly suitable for scenarios with high repeatability, strong determinism, and low fault tolerance.

[0003] At present, there are mainly the following methods for calling RPA robots: one is to respond to the formatted instructions (including specific robot names and corresponding parameters) input by the user, parse the formatted instructions, locate the target RPA robot, and call the target RPA robot to perform tasks; the second is to respond to the fuzzy robot name input by the user, return the RPA robot candidate list based on the pre-established RPA robot search system, so that the user can select the target robot in the list and enter the corresponding parameters, and call the target RPA robot to perform tasks. The first calling method requires the user to remember the accurate format. If the formatted instruction is entered incorrectly, the wrong RPA robot will be called, and the accuracy rate will be reduced. The instructions entered by the user in the second calling method are highly flexible and easy to contain noise. The attribute information of the RPA robot also contains a lot of redundant information, and the matching accuracy of the instructions and the RPA robot is low. To this end, it is necessary to propose a robot calling scheme with higher accuracy. Summary of the invention

[0004] The present application provides a robot calling method, device, electronic device, storage medium and program product to solve the defect of low robot calling accuracy in the prior art.

[0005] In a first aspect, the present application provides a robot calling method, comprising: in response to a user instruction, matching the user instruction with a predefined robot application description based on at least one of a semantic vector, a keyword, and a predicted instruction, to determine a robot candidate list; determining at least one prompt word based on the user instruction and the robot candidate list; inputting the prompt word into a predetermined large model, the large model being used to determine parameter information corresponding to the user instruction, and selecting at least one target robot from the robot candidate list based on the prompt word; and calling the target robot based on the parameter information.

[0006] As an embodiment, the matching of the user instructions and a predefined application description of the robot based on at least one of the semantic vectors, keywords and predicted instructions to determine the robot candidate list includes: converting the user instructions into a first semantic vector; and filtering the robot candidate list from all the robots according to the vector distance between the first semantic vector and a second semantic vector corresponding to the predetermined application description.

[0007] As an embodiment, the user instructions and the predefined application description of the robot are matched based on at least one of the semantic vectors, keywords and predicted instructions to determine the robot candidate list, including: converting the keywords of the user instructions into a third semantic vector; and filtering the robot candidate list from all the robots according to the vector distance between the third semantic vector and a fourth semantic vector corresponding to the keywords of the pre-determined application description.

[0008] As an embodiment, the matching of the user instructions with a predefined application description of the robot based on at least one of the semantic vectors, keywords and predicted instructions to determine a robot candidate list includes: matching the user instructions with the predicted instructions corresponding to the predetermined application description, and filtering the robot candidate list from all the robots.

[0009] As an embodiment, the matching of the user instructions with a predefined robot application description based on at least one of the semantic vectors, keywords and predicted instructions to determine the robot candidate list includes: matching the user instructions with a predefined robot application description based on at least two of the semantic vectors, keywords and predicted instructions to obtain a robot recall list; scoring the robots in the robot recall list based on preset quantitative indicators, sorting the robots in the robot recall list according to the scoring results, and obtaining the robot candidate list by screening according to the sorting results.

[0010] As an embodiment, before the step of matching the user instruction with a predefined robot application description based on at least one of semantic vectors, keywords and predicted instructions in response to the user instruction to determine a robot candidate list, or after the step of calling the target robot according to the parameter information, it also includes: inputting the application description into the big model to obtain key sentences of the application description output by the big model; performing keyword extraction on the key sentences of the application description based on a preset natural language processing model to obtain keywords of the application description; and adding the keywords of the application description to the information library of the robot.

[0011] As an embodiment, it also includes: obtaining preset manually labeled data and / or calling the log data generated by the target robot; training the large model according to the manually labeled data and / or the log data, and adjusting the weight of the target parameters of the large model, wherein the target parameters are determined based on a mixed fine-tuning scheme of LoRA and prompt words.

[0012] In a second aspect, the present application also provides a robot calling device, comprising a first determination module, a second determination module, a third determination module and a calling module.

[0013] The first determination module is used to respond to the user instruction and match the user instruction with a predefined application description of the robot based on at least one of the semantic vector, the keyword and the predicted instruction to determine a robot candidate list.

[0014] The second determination module is used to determine at least one prompt word according to the user instruction and the robot candidate list.

[0015] The third determination module is used to input the prompt word into a predetermined large model, and the large model is used to determine parameter information corresponding to the user instruction, and select at least one target robot from the robot candidate list based on the prompt word.

[0016] A calling module is used to call the target robot according to the parameter information.

[0017] In a third aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the robot calling method described above is implemented.

[0018] In a fourth aspect, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the robot calling methods described above.

[0019] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the robot calling methods described above.

[0020] The robot calling method, device, electronic device, storage medium and program product provided by the present application match the user instruction with the application description of the predefined robot based on at least one of the semantic vector, keyword and predicted instruction, determine the robot candidate list, determine the parameter information corresponding to the user instruction through the large model, select at least one target robot from the robot candidate list based on the prompt word, and then call the target robot according to the parameter information. The present application adopts the method of first searching based on the user instruction and then using the large model recognition to obtain the target robot. Compared with the retrieval scheme of formatted instructions and fuzzy robot names, the user does not need to accurately remember the formatted instructions, avoids or reduces the noise in the user instruction, effectively increases the recognition accuracy of the target robot, and thus solves the defect of low robot calling accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0022] Figure 1 This is one of the flowcharts of the robot calling method provided by this application.

[0023] Figure 2 This is the second flowchart of the robot calling method provided by this application.

[0024] Figure 3 It is a flowchart of keyword extraction provided by this application.

[0025] Figure 4 It is a structural schematic diagram of the robot calling device provided in this application.

[0026] Figure 5 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.

[0029] Retrieval Augmented Generation (RAG) is a technology that integrates retrieval and generation in the field of machine learning, enhancing generation through retrieval. A large model question answering system combined with a knowledge base is a typical RAG application. However, almost all large models have poor question answering capabilities in professional fields and are prone to fabrication. Therefore, it is necessary to enhance their question answering capabilities in professional fields by retrieving knowledge bases.

[0030] In order to solve the defect of low robot calling accuracy in the prior art, the present application combines command retrieval and large model recognition (RAG mode) to call the robot. At the same time, the parameter extraction is automatically completed through the information extraction capability of the large model. The robot can be run directly through user instructions without first obtaining the target robot and then entering the operating parameters. The two steps of the existing solution are converted into one step, which simplifies user operations and improves work efficiency.

[0031] The following is attached to the instruction manual Figure 1-Figure 5 The technical solution of this application is described in detail.

[0032] Figure 1 This is one of the flowcharts of the robot calling method provided by this application, such as Figure 1 As shown, the present application provides a robot calling method, comprising the following steps S100 to S400.

[0033] Step S100, in response to the user instruction, the user instruction and the predefined robot application description are matched based on at least one of the semantic vector, keywords and predicted instructions to determine a robot candidate list; the present application has relatively low requirements for user instructions, and the user instructions are highly flexible, and the user does not need to input accurate user instructions corresponding to the robot application description.

[0034] Before step S100, it is necessary to predefine the name and application description of each robot, and generate a semantic vector corresponding to the name and / or application description. Due to the high degree of freedom of user input, user instructions are not only prone to contain redundant words, but also highly colloquial. In addition, the application description of the predefined robot is generally more specific (i.e., contains a lot of information), so it is very easy to cause mismatching and low recall rate (i.e., there is no target robot in the robot candidate list). For this reason, the present application can enhance retrieval in advance through the generation capability of a large model, extract keywords corresponding to the robot from the application description of each robot, or predict the predicted instructions corresponding to the robot that the user may input, and use the keywords and predicted instructions as a supplementary description of the robot.

[0035] Based on at least one of the semantic vectors, keywords and predicted instructions, the user instructions and the pre-defined application description of the robot are matched, and determining the robot candidate list specifically refers to matching at least one of the semantic vectors, keywords and predicted instructions of the user instructions and at least one of the semantic vectors, keywords and predicted instructions of the robot's application description, and combining robots with high matching degrees to obtain the robot candidate list.

[0036] Step S200, determining at least one prompt word according to the user instruction and the robot candidate list; specifically, the prompt word may include selecting a robot that best matches the user instruction from the robot candidate list and extracting parameter information from the user instruction.

[0037] Step S300, input the prompt word to a predetermined large model, the large model is used to determine the parameter information corresponding to the user instruction, and select at least one target robot from the robot candidate list based on the prompt word; specifically, the large model refers to a machine learning model with large-scale parameters and complex computing structure, which can process massive data and complete various complex tasks, such as natural language processing, computer vision, speech recognition, etc., such as GPT-3.5 or GPT-4 models. Parameter information usually refers to the input parameters required when the robot performs an automated task, which can be data types such as text, numbers, dates, etc., and is used to guide the robot to perform specific operations of the task.

[0038] Step S400: calling the target robot according to the parameter information. Specifically, the parameter information is transmitted to the target robot, and the target robot performs the corresponding automation task according to the received parameter information.

[0039] It can be understood that the present application adopts a method of first searching based on user instructions and then using large model recognition to obtain the target robot. It does not require the user to accurately remember the formatted instructions, reduces the noise in the user instructions, and effectively increases the recognition accuracy of the target robot.

[0040] Based on the above embodiment, as an optional embodiment, the user instruction and the predefined robot application description are matched based on at least one of the semantic vector, the keyword and the predicted instruction to determine the robot candidate list, including step S111 and step S112.

[0041] Step S111, converting the user instruction into a first semantic vector; a semantic vector is a mathematical vector used to represent the semantic information of a word or sentence. In the field of natural language processing, a semantic vector usually represents the semantic relationship and meaning of words, phrases or sentences by mapping them into a high-dimensional vector space. In step S111, the user instruction can be converted into the first semantic vector through an open source word vector model.

[0042] Step S112, based on the vector distance between the first semantic vector and the predetermined second semantic vector corresponding to the application description, the robot candidate list is screened from all the robots. The robot candidate list is determined by comparing the vector distances between the first semantic vector and the second semantic vector one by one, and selecting a preset number of robots with small vector distances.

[0043] It can be understood that the present application provides a technical solution for retrieving and matching the user instructions and the pre-defined robot application description based on semantic vectors. The retrieval is first performed based on the user instructions, and then the target robot is acquired by using a large model recognition method. The user does not need to accurately remember the formatted instructions, which reduces the noise in the user instructions and effectively increases the recognition accuracy of the target robot.

[0044] Based on the above embodiment, as an optional embodiment, the user instruction and the predefined robot application description are matched based on at least one of the semantic vector, keywords and predicted instructions to determine the robot candidate list, including step S121 and step S122.

[0045] Step S121, converting the keywords of the user instruction into a third semantic vector; specifically, the keywords of the user instruction can be extracted by reusing the large model, and the keywords of the user instruction can be converted into the third semantic vector through an open source word vector model.

[0046] Step S122, based on the vector distance between the third semantic vector and a predetermined fourth semantic vector corresponding to the keyword of the application description, the robot candidate list is obtained by screening from all the robots. The robot candidate list is determined by comparing the vector distances between the first semantic vector and the second semantic vector one by one, and selecting a preset number of robots with small vector distances.

[0047] It can be understood that the present application performs semantic vector recall through keywords generated by user instructions and robot application descriptions respectively (recall refers to selecting a list of robot candidates that are most relevant to the user instructions from the entire robot information list). Compared with directly generating semantic vectors, the keyword-based approach is more accurate because it reduces the noise of a large amount of redundant words.

[0048] Based on the above embodiment, as an optional embodiment, the user instruction and the predefined robot application description are matched based on at least one of the semantic vector, the keyword and the predicted instruction to determine the robot candidate list, including step S131.

[0049] Step S131, matching the user instruction with a predicted instruction corresponding to a predetermined application description, and obtaining the robot candidate list from all the robots.

[0050] Specifically, a large model can be used to generate instructions that may be input by users corresponding to each robot to obtain predicted instructions. In the process of matching user instructions and predicted instructions, the user instructions and predicted instructions can be converted into semantic vectors, and after determining the vector distance of the semantic vectors, a preset number of robots with a small vector distance are selected to determine the robot candidate list.

[0051] It is understandable that since user instructions and robot application descriptions are essentially asymmetric information, using predicted instructions for semantic matching makes the information on both ends instructions, and therefore more symmetrical, which can further improve the recall rate and the accuracy of the robot candidate list.

[0052] Based on the above embodiment, as an optional embodiment, the user instruction and the predefined robot application description are matched based on at least one of the semantic vector, keywords and predicted instructions to determine the robot candidate list, including step S141 and step S142.

[0053] Step S141, based on at least two of the semantic vectors, keywords and predicted instructions, the user instructions and the predefined application description of the robot are matched to obtain a robot recall list; specifically, the robot is recalled in multiple ways through multiple recall methods such as semantic vectors, keywords and predicted instructions, and each recall method corresponds to a robot recall list.

[0054] Step S142, scoring the robots in the robot recall list based on preset quantitative indicators, sorting the robots in the robot recall list according to the scoring results, and obtaining the robot candidate list by screening according to the sorting results.

[0055] Specifically, the robots in each robot recall list can be scored using quantitative indicators such as vector distance to obtain a scoring result, or the scores can be weighted accumulated (or other merging logics) to obtain a final score, and the final score is used as the scoring result. The robot candidate list is determined based on the top K (K is an integer) robots with the largest scoring results.

[0056] It can be understood that the present application performs multi-way recall through semantic vectors, keywords and predicted instructions. On the basis of semantic vector recall, the application description text of the robot is enhanced (keywords and predicted instructions are extracted) through the generation capability of a large model, and the generated keywords and / or predicted instructions are used for multi-way recall during the retrieval process, thereby improving the recall rate and solving the problem that user instructions and the robot's application descriptions are prone to contain noise, resulting in a low recall rate.

[0057] Figure 2 This is the second flow chart of the robot calling method provided by this application, such as Figure 2 As shown, the present application can be divided into a real-time calling process and an offline calling process. The real-time calling process is the process of calling the robot in response to user instructions, i.e., steps S100 to S400, and the offline calling process is to enhance the retrieval by utilizing the generation capability of the large model. The offline calling process can be performed before or after the real-time calling process. Figure 2 The RPA employee in the example is an RPA robot. The RPA employee information is the information library of all RPA robots. The Top-K employee information is the robot candidate list corresponding to the candidate robot information library. The target RPA employee is the target RPA robot.

[0058] Figure 3 This is a flowchart of keyword extraction provided by this application, such as Figure 3 As shown, based on the above embodiment, as an optional embodiment, in response to the user instruction, matching the user instruction with a predefined application description of the robot based on at least one of the semantic vector, keywords and predicted instructions to determine the robot candidate list, or after calling the target robot according to the parameter information, it also includes steps S1-S3.

[0059] Step S1, input the application description into the big model, and obtain key sentences of the application description output by the big model.

[0060] Step S2, extract keywords from the key sentences of the application description based on a preset natural language processing model to obtain keywords of the application description; and extract keywords by further extracting key phrases using text analysis tools such as HanLP. HanLP is a Java-based natural language processing library that includes a series of modules that support Chinese word segmentation, part-of-speech tagging, named entity recognition, dependency syntax analysis, and other functions.

[0061] Step S3, adding the keywords of the application description to the information base of the robot. The information base of the robot includes the name of the robot, the application description, the keywords of the application description, the semantic vector corresponding to the application description, the semantic vector of the keywords of the application description and the prediction instruction corresponding to the robot.

[0062] Since the keywords extracted directly using tools such as HanLP are relatively trivial, and some words are generated in non-key sentences, which can easily affect the recall process, this application first uses a large model to locate several key sentences from the sentence granularity, and then extracts keywords from the key sentences through tools such as HanLP. Keyword extraction can be completed offline and updated regularly, while keyword extraction of user instructions in keyword recall is performed in real time. Since user instructions are short, they can be directly extracted using tools such as HanLP. Using a large model to predict the instructions that a user may enter to call the robot based on the application description information of the robot can be achieved by manually annotating several samples and designing them into appropriate prompt words with the help of the contextual learning ability of the large model.

[0063] It can be understood that the present application enhances the application description text of the robot (extracting keywords and predicted instructions) through the generation capability of a large model, and applies the generated keywords and / or predicted instructions for multi-way recall during the retrieval process, thereby improving the recall rate and solving the problem that user instructions and the robot's application descriptions are prone to contain noise, resulting in a low recall rate.

[0064] Based on the above embodiment, as an optional embodiment, the robot calling method provided by the present application also includes step a and step b.

[0065] Step a, obtaining preset manually annotated data and / or log data generated by calling the target robot; the manually annotated data is a manually annotated sample, the sample includes a user instruction and its corresponding target robot, and the log data is a real user instruction and its corresponding target robot. Specifically, before the large model is applied to the robot calling method, no log data is generated, then the large model is fine-tuned based on the manually annotated data; after the large model is applied to the robot calling method, log data is generated, then the large model can be fine-tuned according to the log data, or the large model can be fine-tuned according to the log data and the manually annotated data.

[0066] Step b: training the large model according to the manually annotated data and / or the log data, and adjusting the weight of the target parameter of the large model, wherein the target parameter is determined based on a mixed fine-tuning scheme of LoRA and prompt words.

[0067] Low-Rank Adaptation (LoRA) is used to fine-tune large language models. LoRA fine-tuning retains the weights of the pre-trained model and adds trainable layers inside each model module, which significantly reduces the number of parameters that need to be fine-tuned and greatly reduces GPU memory requirements.

[0068] Hint fine-tuning is the process of adapting a large language model to a new task by training a small set of parameters, called hints, to guide the large language model to produce the desired output before the hints are added to the input text.

[0069] This application reuses large models on multiple tasks, and uses large models to accurately identify RPA robots, extract key sentences and parameters, and predict the instructions that users may enter. In order to further improve the effect of large models on various tasks, this application uses a mixed fine-tuning solution of LoRA and prompt words. Compared with prompt word fine-tuning, LoRA fine-tuning has better results, but LoRA fine-tuning does not support multi-task mixing in the same batch reasoning, while prompt word fine-tuning can, so this application uses a mixture to achieve the advantages of both. Robot identification and parameter extraction can fine-tune the model based on log data in the application stage, while key sentence extraction and user instruction prediction require manual or more powerful large models (such as GPT-4 models) to annotate data for fine-tuning.

[0070] It can be understood that this application adopts a mixed fine-tuning solution of Lora and prompt words so as to reuse large models on multiple tasks and control the deployment cost of large models. In addition, this application simplifies the calling process of RPA robots in the current RPA system, and simplifies the entire calling process into a chat mode, which reduces the difficulty of operation and improves the work efficiency of users.

[0071] The robot calling device provided in the present application is described below. The robot calling device described below and the robot calling method described above can be referenced to each other.

[0072] Figure 4 is a schematic diagram of the structure of the robot calling device provided by the present application, such as Figure 4 As shown, the present application also provides a robot calling device, including a first determination module 410, a second determination module 420, a third determination module 430 and a calling module 440.

[0073] The first determination module 410 is used to respond to the user instruction and match the user instruction with a predefined robot application description based on at least one of a semantic vector, a keyword and a predicted instruction to determine a robot candidate list.

[0074] The second determination module 420 is used to determine at least one prompt word according to the user instruction and the robot candidate list.

[0075] The third determination module 430 is used to input the prompt word into a predetermined large model, and the large model is used to determine parameter information corresponding to the user instruction, and select at least one target robot from the robot candidate list based on the prompt word.

[0076] The calling module 440 is used to call the target robot according to the parameter information.

[0077] As an embodiment, the first determination module 410 is also used to: convert the user instruction into a first semantic vector; and filter the robot candidate list from all the robots based on the vector distance between the first semantic vector and a predetermined second semantic vector corresponding to the application description.

[0078] As an embodiment, the first determination module 410 is also used to: convert the keywords of the user instruction into a third semantic vector; and filter the robot candidate list from all the robots based on the vector distance between the third semantic vector and a fourth semantic vector corresponding to a predetermined keyword of the application description.

[0079] As an embodiment, the first determination module 410 is further used to: match the user instruction with a predicted instruction corresponding to a predetermined application description, and filter out the robot candidate list from all the robots.

[0080] As an embodiment, the first determination module 410 is also used to: match the user instructions and the predefined robot application description based on at least two of the semantic vectors, keywords and predicted instructions to obtain a robot recall list; score the robots in the robot recall list based on preset quantitative indicators, sort the robots in the robot recall list according to the scoring results, and obtain the robot candidate list based on the sorting results.

[0081] As an embodiment, it also includes a generation module, which is used to input the application description into the big model to obtain key sentences of the application description output by the big model; extract keywords from the key sentences of the application description based on a preset natural language processing model to obtain keywords of the application description; and add the keywords of the application description to the information library of the robot.

[0082] As an embodiment, it also includes a model fine-tuning module, which is also used to obtain preset manually labeled data and / or call the log data generated by the target robot; train the large model according to the manually labeled data and / or the log data, and adjust the weight of the target parameters of the large model, and the target parameters are determined based on the LoRA and prompt word hybrid fine-tuning scheme.

[0083] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the robot calling method, which includes: in response to the user instruction, matching the user instruction with the application description of the predefined robot based on at least one of the semantic vector, the keyword and the predicted instruction, and determining the robot candidate list; determining at least one prompt word according to the user instruction and the robot candidate list; inputting the prompt word into a pre-determined large model, the large model is used to determine the parameter information corresponding to the user instruction, and selecting at least one target robot from the robot candidate list based on the prompt word; calling the target robot according to the parameter information.

[0084] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0085] On the other hand, the present application also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the robot calling method provided by the above-mentioned methods, which includes: responding to user instructions, matching the user instructions and a predefined application description of the robot based on at least one of semantic vectors, keywords and predicted instructions to determine a robot candidate list; determining at least one prompt word based on the user instructions and the robot candidate list; inputting the prompt word into a predetermined large model, the large model being used to determine parameter information corresponding to the user instructions, and selecting at least one target robot from the robot candidate list based on the prompt word; and calling the target robot based on the parameter information.

[0086] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the robot calling method provided by the above-mentioned methods, the method comprising: in response to a user instruction, matching the user instruction with a predefined application description of the robot based on at least one of a semantic vector, a keyword and a predicted instruction, and determining a robot candidate list; determining at least one prompt word based on the user instruction and the robot candidate list; inputting the prompt word into a predetermined large model, the large model being used to determine parameter information corresponding to the user instruction, and selecting at least one target robot from the robot candidate list based on the prompt word; and calling the target robot based on the parameter information.

[0087] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A robot calling method, characterized in that: include: In response to a user instruction, matching the user instruction with a predefined application description of the robot based on at least one of a semantic vector, a keyword, and a predicted instruction to determine a robot candidate list; Determining at least one prompt word according to the user instruction and the robot candidate list; Inputting the prompt word into a predetermined large model, the large model is used to determine parameter information corresponding to the user instruction, and selecting at least one target robot from the robot candidate list based on the prompt word; The target robot is called according to the parameter information.

2. The robot calling method according to claim 1, characterized in that: The matching of the user instruction with a predefined application description of the robot based on at least one of the semantic vector, the keyword, and the predicted instruction to determine a robot candidate list includes: Converting the user instruction into a first semantic vector; The robot candidate list is obtained by screening from all the robots according to a vector distance between the first semantic vector and a predetermined second semantic vector corresponding to the application description.

3. The robot calling method according to claim 1, characterized in that: The matching of the user instruction with a predefined application description of the robot based on at least one of the semantic vector, the keyword, and the predicted instruction to determine a robot candidate list includes: Converting the keywords of the user instruction into a third semantic vector; The robot candidate list is obtained by screening from all the robots according to a vector distance between the third semantic vector and a predetermined fourth semantic vector corresponding to a keyword in the application description.

4. The robot calling method according to claim 1, characterized in that: The matching of the user instruction with a predefined application description of the robot based on at least one of the semantic vector, the keyword, and the predicted instruction to determine a robot candidate list includes: The user instruction is matched with a predicted instruction corresponding to a predetermined application description, and the robot candidate list is obtained by screening from all the robots.

5. The robot calling method according to any one of claims 1 to 4, characterized in that: The matching of the user instruction with a predefined application description of the robot based on at least one of the semantic vector, the keyword, and the predicted instruction to determine a robot candidate list includes: Matching the user instruction with a predefined application description of the robot based on at least two of the semantic vector, the keyword, and the predicted instruction to obtain a robot recall list; The robots in the robot recall list are scored based on preset quantitative indicators, the robots in the robot recall list are sorted according to the scoring results, and the robot candidate list is obtained by screening according to the sorting results.

6. The robot calling method according to claim 1, characterized in that: Before matching the user instruction with a predefined application description of the robot based on at least one of the semantic vector, the keyword and the predicted instruction in response to the user instruction to determine a robot candidate list, or after calling the target robot according to the parameter information, the method further includes: Input the application description into the large model, and obtain key sentences of the application description output by the large model; Extracting keywords from key sentences in the application description based on a preset natural language processing model to obtain keywords in the application description; The keywords of the application description are added to the information base of the robot.

7. The robot calling method according to claim 1, characterized in that: Also includes: Obtaining preset manually labeled data and / or calling log data generated by the target robot; The large model is trained according to the manually annotated data and / or the log data, and the weight of the target parameter of the large model is adjusted, where the target parameter is determined based on a mixed fine-tuning scheme of LoRA and prompt words.

8. A robot calling device, characterized in that: include: A first determination module is used to respond to a user instruction and match the user instruction with a predefined application description of the robot based on at least one of a semantic vector, a keyword, and a predicted instruction to determine a robot candidate list; A second determination module, configured to determine at least one prompt word according to the user instruction and the robot candidate list; A third determination module, used for inputting the prompt word into a predetermined large model, the large model is used for determining parameter information corresponding to the user instruction, and selecting at least one target robot from the robot candidate list based on the prompt word; A calling module is used to call the target robot according to the parameter information.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the robot calling method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the robot calling method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the robot calling method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • RPA process intelligent generation method and device and computer readable storage medium

    CN122240665A

  • RPA process intelligent generation method and device and computer readable storage medium

    CN122240665B

  • Replay content confirmation method and device, storage medium and program product

    CN122240818A