Service execution method and device, storage medium and electronic equipment
By deploying policy code in the basic business code and generating and executing target business code, the problem of time-consuming modification of filtering conditions in the existing technology is solved, improving business execution efficiency and improving flexibility.
Patent Information
- Application Number
- CN202411517570.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-07
AI Technical Summary
When modifying business screening conditions in the prior art, it is necessary to rewrite business code, which takes a long time and leads to low business execution efficiency.
By obtaining business policy information and behavior data, deploying policy code in the basic business code according to the configuration file, generating target business code, and executing the code to determine the target user and execute the business.
It reduces the time-consuming process when modifying filter conditions, improves business execution efficiency, and dynamically adjusts business strategies to respond to user needs more flexibly.
Smart Images

Figure CN119396893A_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of computer technology, and in particular to a service execution method, device, storage medium, and electronic device. Background Art
[0002] At present, when executing business, enterprises can send users content that they are interested in based on their actual needs, so as to improve the user experience. Since the actual needs of different users are often different, the content that needs to be sent to them is also often different. In order to meet the actual needs of specified users, specified users can be screened out from the user group to send corresponding content to the screened specified users.
[0003] In the prior art, business codes that directly define specified screening conditions are often used for screening. However, when the screening conditions need to be modified, the business code needs to be rewritten, which is time-consuming and results in low business execution efficiency. Summary of the invention
[0004] This specification provides a service execution method, device, storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.
[0005] This manual adopts the following technical solutions:
[0006] This specification provides a service execution method, including:
[0007] Acquire business policy information and various behavior data, wherein the business policy information includes screening conditions, and the screening conditions are used to screen out users with specified behavior data, and the behavior data is used to characterize specific behavior characteristics of users;
[0008] According to the configuration file corresponding to the business policy information, the policy code corresponding to the business policy information is deployed in the preset basic business code to obtain the target business code;
[0009] The target service code is executed to determine a user having the specified behavior data as a target user according to the screening condition and each behavior data, and to execute a service for the target user.
[0010] Optionally, the service policy information also records the execution time required for service execution;
[0011] The step of executing the service for the target user specifically includes:
[0012] When the execution time arrives, the service is executed for the target user.
[0013] Optionally, the method further comprises:
[0014] Obtaining feedback information provided by the target user;
[0015] The service policy information is adjusted according to the feedback information, so as to execute the service according to the adjusted service policy information.
[0016] Optionally, the step of adjusting the service policy information according to the feedback information to perform service execution according to the adjusted service policy information specifically includes:
[0017] According to the feedback information, adjusting the screening condition included in the business policy information to obtain an adjusted screening condition;
[0018] The target user is re-determined according to the adjusted screening condition and each behavior data, so as to perform business to the re-determined target user.
[0019] Optionally, the step of deploying the policy code corresponding to the business policy information in a preset basic business code according to the configuration file corresponding to the business policy information to obtain the target business code specifically includes:
[0020] According to the configuration file corresponding to the business policy information, the policy code corresponding to the business policy information is deployed in the preset basic business code to obtain the business code to be adjusted;
[0021] The business code to be adjusted and the prompt statement are input into a preset large language model, so that the large language model adjusts the business code to be adjusted according to the prompt statement to obtain a target business code.
[0022] Optionally, the step of deploying the policy code corresponding to the business policy information in a preset basic business code according to the configuration file corresponding to the business policy information to obtain the target business code specifically includes:
[0023] The configuration file corresponding to the business policy information is input into a pre-trained code generation model, so that the code generation model generates a policy code corresponding to the business policy information deployed in a preset basic business code according to the configuration file.
[0024] Optionally, the step of training the code generation model specifically includes:
[0025] Obtaining a sample configuration file, a standard policy code corresponding to the sample configuration file, and a standard execution efficiency value;
[0026] Inputting the sample configuration file into a code generation model to be trained, so that the code generation model to be trained generates a policy code to be adjusted corresponding to the sample configuration file;
[0027] According to the deviation between the policy code to be adjusted and the standard policy code, a first loss value is determined, and the policy code to be adjusted is executed by a preset executor to obtain an actual execution efficiency value, and according to the deviation between the actual execution efficiency value and the standard execution efficiency value, a second loss value is determined, wherein the greater the deviation between the policy code to be adjusted and the standard policy code, the greater the first loss value, the greater the actual execution efficiency value is greater than the standard execution efficiency value, and the smaller the second loss value;
[0028] The code generation model to be trained is trained according to the first loss value and the second loss value.
[0029] This specification provides a service execution device, including:
[0030] Acquisition module: used to acquire business policy information and various behavior data. The business policy information contains screening conditions, which are used to screen out users with specified behavior data. The behavior data is used to characterize specific behavior characteristics of users.
[0031] Deployment module: used to deploy the policy code corresponding to the business policy information in the preset basic business code according to the configuration file corresponding to the business policy information, and obtain the target business code;
[0032] Execution module: used to execute the target business code to determine the user with the specified behavior data as the target user according to the screening conditions and the various behavior data, and execute the business for the target user.
[0033] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned service execution method is implemented.
[0034] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned service execution method when executing the program.
[0035] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0036] The business execution method provided in this specification can obtain business policy information and various behavior data, wherein the business policy information includes screening conditions. According to the configuration file corresponding to the business policy information, the policy code corresponding to the business policy information is deployed in the preset basic business code to obtain the target business code, and execute the target business code to determine the user with the specified behavior data as the target user according to the screening conditions and various behavior data, and execute the business for the target user.
[0037] It can be seen from this that when using the above method to execute business, there is no need to use business codes with defined specified filtering conditions for filtering as in the prior art. Instead, the corresponding configuration files can be flexibly configured to deploy corresponding policy codes in the basic business code to execute the business, thereby greatly reducing the time spent on modifying the filtering conditions and improving execution efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0039] Figure 1 A flowchart of a service execution method provided in this specification;
[0040] Figure 2 A schematic diagram of a model training process provided in this manual;
[0041] Figure 3 A schematic diagram of a business strategy provided for this specification;
[0042] Figure 4 A schematic diagram of a service execution device provided in this specification;
[0043] Figure 5 A method corresponding to the Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0045] At present, when executing business, enterprises can send content of interest to users based on the actual needs of users, so as to enhance the user experience. Since the actual needs of different users are often different, the content that needs to be sent to them is often different. In order to meet the actual needs of specified users, specified users can be screened out from the user group to send corresponding content to the screened specified users. In the prior art, business codes that directly define specified screening conditions are often used for screening. However, when the screening conditions need to be modified, the business code needs to be rewritten, which is time-consuming and leads to low business execution efficiency.
[0046] Therefore, this specification provides a service execution method, which can effectively solve the problems in the prior art.
[0047] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0048] Figure 1 A flowchart of a service execution method provided in this specification includes the following steps:
[0049] S101: Acquire business policy information and various behavior data, wherein the business policy information includes screening conditions, and the screening conditions are used to screen out users with specified behavior data, and the behavior data is used to characterize specific behavior characteristics of the user.
[0050] The execution subject of the service execution method involved in this specification can be a terminal device such as a desktop computer, a laptop computer, etc., or a client installed in the terminal device, or a server. The following only takes the server as an execution subject as an example to illustrate the service execution method in the embodiment of this specification.
[0051] In this specification, the server can read the configuration file corresponding to the business policy information, and then deploy the policy code corresponding to the business policy information in the basic business code, and determine the target user by executing the corresponding code to perform business (such as information push business) on the target user.
[0052] To this end, the server may first obtain business policy information and various behavior data. The behavior data may be used to characterize specific behavior characteristics of the user, for example, the number of times the user logs in, the length of time the user is online, the number of times the user participates in a specified activity, the time of the user's last login, etc.
[0053] The business policy information may include screening conditions, which are used to screen out users with specified behavior data. For example, the screening conditions may include: the number of times a user has participated in a specified activity more than three times, the user has been online for more than one hour, the user has not logged in within the last three days, the number of items redeemed by the user in the activity is greater than five, etc. Alternatively, the screening conditions may be a combination of multiple conditions, such as: the user has been online for more than one hour and has participated in a specified activity more than three times, the user has been online for more than one hour and has not participated in a specified activity, etc.
[0054] The above-mentioned business policy information can be set by the management personnel according to the actual business scenario, and this specification does not list the specific contents of the business policy information one by one. Moreover, in actual applications, a policy interface for setting business policy information can be displayed to the management personnel, so that the management personnel can configure the business policy information through the interface, thereby obtaining the corresponding business policy information. For example, the management personnel can touch the selection control provided by the policy interface to select specific policy information from the drop-down list to complete the configuration of the business policy information. For another example, the management personnel can directly input specific business policy information through the policy interface to complete the configuration of the business policy information.
[0055] In addition, the above-mentioned behavior data can be obtained from a preset user portrait system, or can also be obtained from a database that pre-stores the behavior data of each user, etc., and this manual does not limit this here.
[0056] S102: deploying a policy code corresponding to the business policy information in a preset basic business code according to a configuration file corresponding to the business policy information, to obtain a target business code.
[0057] The server can deploy the policy code corresponding to the business policy information in the preset basic business code according to the configuration file corresponding to the business policy information, and obtain the target business code, so as to determine the target user by subsequently executing the target business code, wherein the basic business code can be a program code that can implement basic business logic.
[0058] In actual application, the server can often generate policy codes corresponding to the configuration files to deploy the policy codes in the basic business codes.
[0059] The server can input the configuration file corresponding to the business policy information into a pre-trained code generation model, and then enable the code generation model to generate the policy code corresponding to the business policy information according to the configuration file, so as to deploy the policy code in the basic business code.
[0060] In the process of training the above code generation model, two different loss values can be used to train the code generation model to be trained. For details, please refer to the following Figure 2 .
[0061] Figure 2 A schematic diagram of a model training process provided in this manual.
[0062] Depend on Figure 2 It can be seen that the sample configuration file, the standard policy code corresponding to the sample configuration file, and the standard execution efficiency value can be obtained first, wherein the execution efficiency value can be used to measure the execution speed and resource consumption of the code, and the standard execution efficiency value can be, for example, a standard value corresponding to the execution speed and resource consumption of the code pre-set by the management personnel. Then, the sample configuration file can be input into the code generation model to be trained to generate the policy code to be adjusted corresponding to the sample configuration file through the code generation model to be trained. Furthermore, the first loss value can be determined based on the deviation between the policy code to be adjusted and the standard policy code. The deviation between the policy code to be adjusted and the standard policy code is positively correlated with the first loss value, that is, the greater the deviation between the policy code to be adjusted and the standard policy code, the greater the first loss.
[0063] Furthermore, the policy code to be adjusted is executed through a preset executor (e.g., CPython, GraalVM JavaScript, etc.) to obtain an actual execution efficiency value, and a second loss value is determined according to the deviation between the actual execution efficiency value and the standard execution efficiency value. When the actual execution efficiency value is greater than the standard execution efficiency value, the second loss value is smaller. The server can train the code generation model to be trained by gradually reducing the first loss value and the second loss value as the training target.
[0064] It can be seen from the above training process that since the standard policy code that needs to be referenced is set during the training process, it can be ensured that the functions of the policy code generated by the trained code generation model meet the actual needs, and on this basis, by allowing the actual execution efficiency value of the policy code generated by the code generation model to continuously be greater than the preset standard execution efficiency value, it can be ensured that the trained code generation model can generate code that meets the functional requirements, and on the basis of the generated code meeting the basic execution efficiency, it can explore policy codes with better execution efficiency, so that in the process of using the final target business code to execute the business, the business efficiency can be greatly improved.
[0065] Of course, in addition to generating the policy code through the code generation model as described above, the configuration file may also be parsed through a preset parsing code to parse out the policy code corresponding to the business policy information.
[0066] It should be noted that in actual applications, the basic business code and the policy code generated by the configuration file corresponding to the business policy information may be incomplete, contain logical errors, syntax errors, etc. Therefore, corresponding adjustments can be made to ensure that the target business code can run accurately.
[0067] Specifically, the policy code corresponding to the business policy information can be deployed in the preset basic business code according to the configuration file corresponding to the business policy information to obtain the business code to be adjusted. Furthermore, the business code to be adjusted and the prompt statement can be input into the preset large language model (such as GTP-4), so that the large language model adjusts the business code to be adjusted according to the prompt statement to obtain the target business code. For example, the prompt statement can be "Please check the logic and syntax format of the current business code, and adjust the code with logical errors and syntax errors."
[0068] Of course, in addition to the above methods, the server can also adjust the basic business code and the policy code corresponding to the business policy information respectively, and obtain the target code according to the adjusted code. For example, the server can input the policy code generated according to the configuration file and the prompt statement "Please check the logic and syntax format of the current policy code, and make corresponding adjustments to the incorrect code." into the large language model, so that the large language model adjusts the policy code and obtains the adjusted policy code.
[0069] At the same time, the basic business code and the prompt statement "Please check the logic and syntax format of the current basic business code, and make corresponding adjustments to the error code found." can also be input into the large language model, so that the large language model can adjust the basic business code to obtain the adjusted basic business code. Furthermore, the adjusted policy code can be deployed in the adjusted basic business code to obtain the target business code.
[0070] S103: Execute the target service code to determine a user with the specified behavior data as a target user according to the screening condition and each behavior data, and execute the service for the target user.
[0071] The server can execute the target service code and can determine the user with the specified behavior data as the target user according to the screening conditions and various behavior data. That is, by executing the target service code, the target user that meets the screening conditions can be determined, and then the service can be executed for the target user.
[0072] Of course, in this specification, the service policy information also records the execution time required for service execution, and the service can be executed according to the execution time, that is, when the execution time is reached, the service is executed for the corresponding target user.
[0073] In actual application, a business policy can contain only one business. Of course, multiple businesses can also be merged into the same business policy. In other words, a business policy information can contain policy information for different businesses. Correspondingly, different businesses can often correspond to different screening conditions, and different target users can be screened out. In addition, different businesses can correspond to different execution times. For details, please refer to the following Figure 3 .
[0074] Figure 3 A schematic diagram of a business strategy provided for this specification.
[0075] Depend on Figure 3 It can be seen that three different businesses can be merged into the same business policy. The current business policy information contains three different filtering conditions, which can filter out three different users. For the login reminder information push service, users who have not logged in in the past seven days can be filtered out based on various behavioral data, and the service can be executed at 17:00 every day. For the user activity progress information push service, users who have participated in redemption activities more than three times can be filtered out based on various behavioral data, based on users who have not logged in in the past seven days, and the service can be executed at 17:30 every day. For the redemption activity push service, users who have participated in redemption activities can be blocked based on users who have not logged in in the past seven days, that is, users who have not logged in in the past seven days and have not participated in redemption activities can be filtered out, and the service can be executed at 18:00 every day.
[0076] certainly, Figure 3 It is just a form of business strategy. In actual application, business strategies containing different screening conditions can be formulated according to actual needs to screen out corresponding target users. For example, in addition to screening out target users based on various behavioral data, you can also screen out target users based on user attribute information (such as screening out target users whose mobile phone account operator is A).
[0077] In addition, the executed service may not be consistent with the actual needs of the target user. For this reason, the server can also obtain feedback information provided by the target user. For example, the feedback information can be the evaluation information of the target user on the current target service. Then, the service strategy can be adjusted accordingly according to the feedback information, so as to execute the service according to the adjusted service.
[0078] Specifically, the server can adjust the screening conditions included in the service strategy information according to the feedback information to obtain the adjusted screening conditions. Furthermore, the target users can be re-determined according to the adjusted screening conditions and various behavior data to perform services for the re-determined target users. For example, if users who are online for no more than ten minutes have a poor evaluation of the redemption activity push service, a condition "users who are online for more than ten minutes" can be added to the screening conditions, that is, users who are online for no more than ten minutes can be blocked and the information push service will not be performed for them.
[0079] In addition to adjusting the screening conditions, the specific business strategy corresponding to the business strategy information can also be adjusted based on the feedback information. For example, if the target user has a poor evaluation of the redemption activity push service, the redemption rules in the redemption activity can be optimized and adjusted, and the appearance of each redemption item included in the redemption activity can be beautified.
[0080] Of course, in addition to being used in executing information push services, the above method can also be used in detecting user anomalies. For example, users who log in frequently can be screened out and identified as abnormal users, and then corresponding control measures can be taken for abnormal users.
[0081] It can be seen from this that when using the above method to execute business, there is no need to use business codes with defined specified filtering conditions for filtering as in the prior art. Instead, the corresponding configuration files can be flexibly configured to deploy corresponding policy codes in the basic business code to execute the business, thereby greatly reducing the time spent on modifying the filtering conditions and improving execution efficiency.
[0082] In addition, in the above method, the basic business code where the policy code is deployed can also be adjusted, which greatly avoids syntax errors, logical errors, etc. in the code and greatly improves the accuracy of business execution.
[0083] In addition, in the process of training the code generation model to be trained, in addition to gradually reducing the deviation between the policy code to be adjusted and the standard policy code as the training goal, the training can also be carried out with the goal of gradually making the actual execution efficiency value of the policy code to be adjusted greater than the standard execution efficiency value. Furthermore, when the trained code generation model is used to generate policy code, the execution efficiency of the policy code can be higher on the basis of the relatively accurate generated policy code, thereby improving the accuracy and efficiency of business execution.
[0084] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding service execution device, such as Figure 4 shown.
[0085] Figure 4 A schematic diagram of a service execution device provided in this specification includes:
[0086] Acquisition module 401: used to acquire business policy information and various behavior data, wherein the business policy information includes screening conditions, and the screening conditions are used to screen out users with specified behavior data, and the behavior data is used to characterize specific behavior characteristics of users;
[0087] Deployment module 402: used to deploy the policy code corresponding to the business policy information in the preset basic business code according to the configuration file corresponding to the business policy information, and obtain the target business code;
[0088] Execution module 403: used to execute the target service code to determine the user with the specified behavior data as the target user according to the screening condition and the various behavior data, and execute the service for the target user.
[0089] Optionally, the service policy information also records the execution time required for service execution;
[0090] The execution module 403 is specifically used to: execute the service for the target user when the execution time arrives.
[0091] Optionally, the device further includes: a feedback module 404;
[0092] The feedback module 404 is specifically used to: obtain feedback information provided by the target user; and adjust the service policy information according to the feedback information, so as to perform service according to the adjusted service policy information.
[0093] Optionally, the feedback module 404 is specifically used to: adjust the filtering conditions contained in the business policy information according to the feedback information to obtain adjusted filtering conditions; re-determine the target user according to the adjusted filtering conditions and the various behavior data to perform business on the re-determined target user.
[0094] Optionally, the deployment module 402 is specifically used to: deploy the policy code corresponding to the business policy information in the preset basic business code according to the configuration file corresponding to the business policy information, and obtain the business code to be adjusted; input the business code to be adjusted and the prompt statement into the preset large language model, so that the large language model adjusts the business code to be adjusted according to the prompt statement to obtain the target business code.
[0095] Optionally, the deployment module 402 is specifically used to: input the configuration file corresponding to the business policy information into a pre-trained code generation model, so that the code generation model generates a policy code corresponding to the business policy information deployed in a preset basic business code according to the configuration file.
[0096] Optionally, the deployment module 402 is specifically used to: obtain a sample configuration file, a standard policy code corresponding to the sample configuration file, and a standard execution efficiency value; input the sample configuration file into the code generation model to be trained, so that the code generation model to be trained generates a policy code to be adjusted corresponding to the sample configuration file; determine a first loss value based on the deviation between the policy code to be adjusted and the standard policy code, and execute the policy code to be adjusted through a preset executor to obtain an actual execution efficiency value, and determine a second loss value based on the deviation between the actual execution efficiency value and the standard execution efficiency value, wherein the greater the deviation between the policy code to be adjusted and the standard policy code, the greater the first loss value, the greater the actual execution efficiency value is greater than the standard execution efficiency value, and the smaller the second loss value; train the code generation model to be trained based on the first loss value and the second loss value.
[0097] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 The business execution method shown.
[0098] This manual also provides Figure 5 The one shown corresponds to Figure 1 A schematic diagram of the electronic device. Figure 5 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The business execution method shown.
[0099] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0100] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0101] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0102] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0103] For the convenience of description, the above device is described by dividing it into various units according to its functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0104] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0105] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0106] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0108] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0109] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0110] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0111] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0112] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0113] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0114] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0115] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A service execution method, characterized in that: include: Acquire business policy information and various behavior data, wherein the business policy information includes screening conditions, and the screening conditions are used to screen out users with specified behavior data, and the behavior data is used to characterize specific behavior characteristics of users; According to the configuration file corresponding to the business policy information, the policy code corresponding to the business policy information is deployed in the preset basic business code to obtain the target business code; The target service code is executed to determine a user having the specified behavior data as a target user according to the screening condition and each behavior data, and to execute a service for the target user.
2. The method according to claim 1, characterized in that The business strategy information also records the execution time required for business execution; The step of executing the service for the target user specifically includes: When the execution time arrives, the service is executed for the target user.
3. The method according to claim 1, characterized in that The method further comprises: Obtaining feedback information provided by the target user; The service policy information is adjusted according to the feedback information, so as to execute the service according to the adjusted service policy information.
4. The method according to claim 3, characterized in that The step of adjusting the service policy information according to the feedback information to perform service execution according to the adjusted service policy information specifically includes: According to the feedback information, adjusting the screening condition included in the business policy information to obtain an adjusted screening condition; The target user is re-determined according to the adjusted screening condition and each behavior data, so as to perform business to the re-determined target user.
5. The method according to claim 1, characterized in that The step of deploying the policy code corresponding to the business policy information in the preset basic business code according to the configuration file corresponding to the business policy information to obtain the target business code specifically includes: According to the configuration file corresponding to the business policy information, the policy code corresponding to the business policy information is deployed in the preset basic business code to obtain the business code to be adjusted; The business code to be adjusted and the prompt statement are input into a preset large language model, so that the large language model adjusts the business code to be adjusted according to the prompt statement to obtain a target business code.
6. The method according to claim 1, characterized in that The step of deploying the policy code corresponding to the business policy information in the preset basic business code according to the configuration file corresponding to the business policy information to obtain the target business code specifically includes: The configuration file corresponding to the business policy information is input into a pre-trained code generation model, so that the code generation model generates a policy code corresponding to the business policy information deployed in a preset basic business code according to the configuration file.
7. The method according to claim 6, characterized in that The step of training the code generation model specifically includes: Obtaining a sample configuration file, a standard policy code corresponding to the sample configuration file, and a standard execution efficiency value; Inputting the sample configuration file into a code generation model to be trained, so that the code generation model to be trained generates a policy code to be adjusted corresponding to the sample configuration file; According to the deviation between the policy code to be adjusted and the standard policy code, a first loss value is determined, and the policy code to be adjusted is executed by a preset executor to obtain an actual execution efficiency value, and according to the deviation between the actual execution efficiency value and the standard execution efficiency value, a second loss value is determined, wherein the greater the deviation between the policy code to be adjusted and the standard policy code, the greater the first loss value, the greater the actual execution efficiency value is greater than the standard execution efficiency value, and the smaller the second loss value; The code generation model to be trained is trained according to the first loss value and the second loss value.
8. A service execution device, characterized in that: include: Acquisition module: used to acquire business policy information and various behavior data. The business policy information contains screening conditions, which are used to screen out users with specified behavior data. The behavior data is used to characterize specific behavior characteristics of users. Deployment module: used to deploy the policy code corresponding to the business policy information in the preset basic business code according to the configuration file corresponding to the business policy information, and obtain the target business code; Execution module: used to execute the target business code to determine the user with the specified behavior data as the target user according to the screening conditions and the various behavior data, and execute the business for the target user.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Control instruction generation method and device, electronic equipment and storage medium
CN120755866A