Business alarm method and device, computing equipment, storage medium and program product
By fine-tuning the large language model of the historical data of the business alarm system and providing rule prompt words, the problems of high maintenance cost and inflexibility of business alarms in the existing technology are solved, and flexible and intelligent alarm processing is realized.
Patent Information
- Application Number
- CN202410875821.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-01
AI Technical Summary
The existing business alarm system needs to be configured and maintained by R&D personnel with programming experience, resulting in high maintenance costs and inflexibility, and cannot be maintained by other roles who understand the business.
Fine-tuning and training of large language models are performed by obtaining historical business data, and the fine-tuned model is used to process business data to determine business alarm results, and business alarm rule prompts are provided so that all business-savvy roles can set alarm rules.
It reduces development and maintenance costs, improves the efficiency and accuracy of alarm processing, enhances the intelligence, flexibility and personalization of the business alarm system, and allows non-programmers to participate in the setting of alarm rules.
Smart Images

Figure CN118733403A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a service alarm method, device, computing equipment, computer storage medium and computer program product. Background Art
[0002] Business alarm refers to the detection of business monitoring indicators, and alarm notifications are triggered when they exceed certain thresholds. In the field of "business alarm", many "business alarm rules" are usually configured to sense the operational health of the production system. However, many rules need to be maintained and configured separately. These alarm rules can only be maintained by R&D personnel with programming experience, while other personnel, such as business personnel or other roles that are more familiar with the business, cannot configure them because they do not have programming experience, which increases maintenance and development costs and makes business alarms inflexible. Summary of the invention
[0003] In view of the above problems, the present application is proposed to provide a service alarm method, apparatus, computing device, computer storage medium and computer program product that overcome the above problems or at least partially solve the above problems.
[0004] According to one aspect of the present application, a service alarm method is provided, comprising:
[0005] For any business to be alerted, obtain the historical business data corresponding to the business to be alerted;
[0006] Fine-tune large language models based on historical business data;
[0007] Obtaining business data within a preset time period of the business to be alarmed and the corresponding business alarm prompt rule, wherein the business alarm prompt rule is generated according to the preset business alarm rule prompt words;
[0008] According to the business alarm prompt rules, the fine-tuned large language model is used to process the business data within the preset time to determine the business alarm result corresponding to the business to be alarmed.
[0009] Furthermore, the business alarm prompt rule includes: business alarm level and business alarm prompt condition; the business alarm prompt condition includes: business alarm rule prompt word and parameter condition, and the parameter condition includes reference time, alarm condition threshold and operator corresponding to the alarm condition threshold.
[0010] Further, according to the business alarm prompt rule, the business data within the preset time is processed by using the fine-tuned large language model, and the business alarm result corresponding to the business to be alarmed is further determined, which further includes:
[0011] According to the business alarm rule prompt words and reference time, the fine-tuned large language model is used to process the business data within the preset time to determine the business alarm prompt description result;
[0012] Determine the business alarm result corresponding to the business to be alarmed based on the business alarm prompt description result, alarm condition threshold and operator.
[0013] Furthermore, the business alarm prompt rule includes a plurality of business alarm prompt conditions and a conditional relationship between the plurality of business alarm prompt conditions;
[0014] Determining the business alarm result corresponding to the business to be alarmed according to the business alarm prompt description result, the alarm condition threshold and the operator further includes:
[0015] For any service alarm prompt condition, based on the operator, the service alarm prompt description result is compared with the alarm condition threshold in the service alarm prompt condition;
[0016] According to the multiple comparison results and the conditional relationship between the multiple service alarm prompt conditions, the service alarm result corresponding to the service to be alarmed is determined.
[0017] Furthermore, the method also includes: setting a business alarm prompt rule according to a user's selection operation of a business alarm rule prompt word in a preset rule prompt dictionary, and establishing a mapping relationship between the business and the business alarm prompt rule.
[0018] Furthermore, the business alarm prompt rules also include: alarm frequency, alarm receiver, and alarm contact method;
[0019] The method also includes: sending a business alarm result to an alarm receiver according to the alarm contact method and the alarm frequency.
[0020] According to another aspect of the present application, a service alarm device is provided, including:
[0021] The first acquisition module is adapted to acquire, for any service to be alarmed, historical service data corresponding to the service to be alarmed;
[0022] Fine-tuning module, suitable for fine-tuning large language models based on historical business data;
[0023] The second acquisition module is adapted to acquire the service data of the service to be alarmed within a preset time period and the corresponding service alarm prompt rule, wherein the service alarm prompt rule is generated according to the preset service alarm rule prompt word;
[0024] The determination module is suitable for processing the business data within a preset time according to the business alarm prompt rules using the fine-tuned large language model to determine the business alarm result corresponding to the business to be alarmed.
[0025] According to another aspect of the present application, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0026] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the above-mentioned service alarm method.
[0027] According to another aspect of the present application, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned service alarm method.
[0028] According to another aspect of the present application, a computer program product is provided, comprising at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the above-mentioned service alarm method.
[0029] According to the business alarm method, apparatus, computing device, computer storage medium and computer program product provided in the embodiments of the present application, the maintenance of business alarm prompt rules is opened to all roles that understand the business by providing business alarm rule prompt words, making the setting of business alarm prompt rules more flexible and saving development costs and maintenance costs; on the basis of the large language model, historical business data of specified businesses in the business alarm field are added, and the large language model is fine-tuned and trained. The fine-tuned large language model can calculate various business alarm indicators and provide monitoring indicator calculations and business alarm results for processing various dimensions, thereby improving the efficiency and accuracy of alarm processing, and enhancing the intelligence level, flexibility, personalization and human-computer interaction experience of the business alarm system.
[0030] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0032] Figure 1 A schematic diagram of a process flow of a service alarm method according to an embodiment of the present application is shown;
[0033] Figure 2AA schematic diagram of a process flow of a service alarm method according to another embodiment of the present application is shown;
[0034] Figure 2B This is a schematic diagram of business alarm prompt rules;
[0035] Figure 3A A schematic diagram showing a system architecture provided by another embodiment of the present application is shown;
[0036] Figure 3B Schematic diagram of regular training of alarm rules;
[0037] Figure 4 A schematic diagram showing the structure of a service alarm device according to an embodiment of the present application is shown;
[0038] Figure 5 A schematic diagram of the structure of a computing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0039] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0040] First, the terms involved in one or more embodiments of the present application are explained.
[0041] Large Language Model: Large Language Model, abbreviated as LLM, also known as a large language model, is an artificial intelligence model designed to understand and generate human language.
[0042] Fine-tuning of large language models: Fine-tuning is a technology for optimizing pre-trained models. It is a process of further adjusting model parameters for specific downstream tasks based on pre-trained models. It involves using task-specific data sets to adjust model parameters to improve the performance of the model on new or specific tasks. By training large language models with vertical domain knowledge, large language models are equipped with knowledge in specific fields, and AI capabilities brought by large language models can be enjoyed at very low cost.
[0043] prompt: A "keyword" used to communicate with the model in the field of large language models.
[0044] Prompt engineering: Systematize the prompt words in specific fields and perform prompt engineering before starting a conversation with the big model.
[0045] The inventor of the present application has found that traditional business alarm rules are mainly configured and maintained by developers with programming experience. For example, several business alarm rules are briefly listed below:
[0046] Rule 1:
[0047] Rule name: Transcoding-second conversion year-on-year decrease > 70% (failure); Alarm level: disaster; Platform: alarm; Business: manuscript platform; Application name: main.archive.station-process-job; Trigger conditions: Year-on-year fluctuation > 70, submissions > 110, month-on-month decrease absolute value > 100, month-on-month decrease ratio > 55, year-on-year absolute value < -100; Alarm group: manuscript service; Manuscript service-telephone alarm group
[0048] Rule 2:
[0049] Rule name: Transcoding-Secondary Transcoding-YoY / MoM Fluctuation>70%; Alarm level: Warning; Platform: Alarm; Business: Manuscript Platform; Application name: main.archive.station-process-job; Trigger conditions: Submissions>100, MoM Fluctuation>70, YoY Fluctuation>70; Alarm group: Manuscript Service
[0050] Rule 3:
[0051] Rule name: Transcoding-Secondary conversion-Year-on-year fluctuation>70%; Alarm level: Warning; Attribution platform: alarm; Attribution business: Manuscript platform; Application name: main.archive.station-process-job; Trigger condition: Year-on-year fluctuation>70, submission>100; Custom label: View; Alarm group: Manuscript service
[0052] Rule 4:
[0053] Rule name: transcoding-second conversion-drop 0 (fault); alarm level: disaster; belonging platform: alarm; belonging business: manuscript platform; application name: main.archive.station-process-job; trigger condition: transcoding-second conversion 2min drop 0 <= 1; custom label: view; alarm group: manuscript service; manuscript service-telephone alarm group
[0054] Rule 5:
[0055] Rule name: Transcoding-Secondary conversion-Year-on-year fluctuation>40%; Alarm level: prompt; Attribution platform: alarm; Attribution business: Manuscript platform; Application name: main.archive.station-process-job; Trigger condition: Year-on-year fluctuation>40, submission volume>150; Alarm group: Manuscript service
[0056] Rule 6:
[0057] Rule name: Transcoding-Secondary conversion-YoY and MoM fluctuations>40%; Alarm level: Warning; Platform: Alarm; Business: Manuscript platform; Application name: main.archive.station-process-job; Trigger conditions: Submissions>50, MoM fluctuations>40, YoY fluctuations>40; Alarm group: Manuscript service
[0058] For example, the business alarm rule is: [Transcoding-secondary conversion decreased by >70% year-on-year (failure)], the business alarm rule configuration method is as follows, where the trigger condition configuration (the conditions use AND logic; the alarm topic is currently automatically generated by the system through indicator description, operator, and threshold, and can be previewed through the alarm test)
[0059] Metric Description Rule PromQL Learning Document Operator Threshold
[0060] Indicator description: year-on-year fluctuation; PromQL rule: 100*abs( (
[0062] sum(increase(business_count_videoup_trace_cnt{group=~"transcoding|transcoding behavior",trace_event=~"secondary conversion completed"}[1m]))
[0063] -sum(increase(business_count_videoup_trace_cnt{group=~"transcoding|transcoding behavior",trace_event=~"secondary conversion completed"}[1m]offset 1d)); operator:>; threshold: 70; and
[0064] Indicator description: Contribution; Rule PromQL:
[0065] sum(increase(business_count_videoupArchiveCounter{action="Submit,result="success"}[15s])) Operator:>; Threshold: 110; and
[0066] Indicator description: absolute value of month-on-month decrease; PromQL rule: (sum(increase(business_count_videoup_trace_cnt{group=~"transcoding|transcoding behavior",trace_event=~"secondary conversion completed"}[3m]offset 3m))
[0067] -sum(increase(business_count_videoup_trace_cnt{group=~"transcoding|transcoding behavior",trace_event=~"secondary conversion completed"}[3m]))); operator: >; threshold: 100; and
[0068] Indicator description: month-on-month decrease ratio; PromQL rule: 100*abs( (
[0070] sum(increase(business_count_videoup_trace_cnt{group=~"transcoding|transcoding behavior",trace_event=~"secondary conversion completed"}[3m]))
[0071] -sum(increase(business_count_videoup_trace_cnt{group=~"transcoding|transcoding behavior",trace_event=~"secondary conversion completed"}[3m]offset 5m)); operator:>; threshold: 55; and
[0072] Indicator description: absolute value compared with yesterday; rule PromQL: (
[0073] sum(increase(business_count_videoup_trace_cnt{group=~"transcoding|transcoding behavior",trace_event=~"secondary conversion completed"}[1m]))
[0074] -sum(increase(business_count_videoup_trace_cnt{group=~"transcoding|transcoding behavior",trace_event=~"secondary conversion completed"}[1m]offset 1d)); Operator: <Threshold: -100
[0075] It can be seen from the above business alarm rule configuration method that business alarm rules are relatively complex and are all set based on a certain programming language, which requires heavy engineering support, and has high development and maintenance costs. In addition, the configuration is not flexible and cannot enable people who understand the business to participate in the maintenance of business alarm rules.
[0076] Figure 1 FIG. 1 is a flow chart showing a service alarm method according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0077] Step S101: for any service to be alarmed, obtain historical service data corresponding to the service to be alarmed.
[0078] The business to be alerted refers to a specific business process or system component that has business monitoring and alerting requirements, such as manuscript business, response events of website servers, etc. The historical business data is the business data produced by the business to be alerted in the past, which involves the data of various events of the business in the past.
[0079] In order to enable the large language model to have knowledge of a specific business field, it is necessary to obtain historical business data corresponding to the business to be alarmed. The historical business data is the data produced by the business history. The historical business data of the business to be alarmed can be obtained from a database, industry report, log file, or API interface, which are not listed here one by one.
[0080] Step S102: fine-tune the large language model based on historical business data.
[0081] After obtaining the historical business data corresponding to the business to be alarmed, the large language model can be fine-tuned based on the historical business data. Through fine-tuning training, the large language model has knowledge of specific business fields, so that accurate results can be given in the later stage.
[0082] Step S103, obtaining the service data of the service to be alarmed within a preset time period and the corresponding service alarm prompt rule, wherein the service alarm prompt rule is generated according to the preset service alarm rule prompt words.
[0083] Specifically, the service alarm method provided in this embodiment can regularly inspect the service alarm prompt rules, that is, regularly detect whether the service has the possibility of alarm, so the preset time period here is the time difference between two regular service detection times. The service alarm prompt rule describes the service alarm rule in the form of a text prompt, and the service alarm prompt rule can be generated based on the preset service alarm rule prompt words, and the service alarm rule prompt words are text descriptions that guide the large language model to generate specific content or perform specific tasks.
[0084] Each service to be alarmed has a unique service ID. Therefore, the service data within a preset time period and its corresponding service alarm prompt rule are obtained according to the service ID of the service to be alarmed.
[0085] Step S104, according to the business alarm prompt rule, the fine-tuned large language model is used to process the business data within the preset time to determine the business alarm result corresponding to the business to be alarmed.
[0086] Specifically, after obtaining the business data within the preset time period of the business to be alarmed and the corresponding business alarm prompt rules, the business data within the preset time period and the business alarm prompt rules obtained can be input into the fine-tuned large language model, so that the fine-tuned large language model processes the business data within the preset time according to the business alarm prompt rules. The main purpose here is to understand the intention of the business alarm prompt rules, so as to accurately give the business alarm results corresponding to the business to be alarmed.
[0087] In summary, according to the method provided in this embodiment, for any business to be alerted, the historical business data corresponding to the business to be alerted is obtained; the large language model is fine-tuned and trained according to the historical business data; the business data within the preset time period of the business to be alerted and the corresponding business alarm prompt rules are obtained, wherein the business alarm prompt rules are generated according to the pre-set business alarm rule prompt words; according to the business alarm prompt rules, the business data within the preset time period is processed using the fine-tuned large language model to determine the business alarm result corresponding to the business to be alerted. Through the above method, by providing the business alarm rule prompt words, the maintenance of the business alarm prompt rules is opened to all roles who understand the business, making the setting of the business alarm prompt rules more flexible, saving development costs and maintenance costs; on the basis of the large language model, the historical business data of the designated business in the business alarm field is added, and the large language model is fine-tuned and trained. The fine-tuned large language model can calculate various business alarm indicators and give the monitoring indicator calculation and business alarm results of various dimensions, thereby improving the efficiency and accuracy of alarm processing, and also enhancing the intelligence level, flexibility, personalization and human-computer interaction experience of the business alarm system.
[0088] FIG2 shows a flow chart of a service alarm method according to another embodiment of the present application. As shown in FIG2 , the method includes the following steps:
[0089] Step S201: for any service to be alarmed, obtain historical service data corresponding to the service to be alarmed.
[0090] The business to be alerted refers to a specific business process or system component that has business monitoring and alerting requirements, such as manuscript business, response events of website servers, etc. The historical business data is the business data produced by the business to be alerted in the past, which involves the data of various events of the business in the past.
[0091] In order to enable the large language model to have knowledge of a specific business field, it is necessary to obtain the historical business data corresponding to the business to be alerted. The historical business data is the data produced by the business history. The historical business data of the business to be alerted can be obtained from the database or industry report or log file or API interface, which will not be listed here. Among them, the database may store business data of multiple businesses. The business data of each business can be stored separately or the business data of multiple businesses can be stored together. Each business data corresponds to a business ID. Therefore, the corresponding historical business data can be obtained through the business ID.
[0092] After obtaining the historical business data corresponding to the business to be alarmed, the data can also be preprocessed, mainly to clean the data and remove invalid, repeated or erroneous information; through the above data preprocessing, some key fields and valid data can be cleaned out, where the fields can be expanded according to business needs, but the key information must be available (taking the manuscript business as an example, the status, time and other fields must be available). Table 1 schematically lists the historical business data after data preprocessing:
[0093] Table 1:
[0094] Key fields describe Data Types Length Limit ID Object identifier (e.g. manuscript ID) string|int 64 Name Object name (eg. manuscript name) string 200 Properties A collection of attributes (such as cover, title, description) string|json 5000 Ctime Creation time datetime 64 Mtime Modification time datetime 64 State Current status (such as: creation, first transfer, second transfer, review completed, etc.) int|string 10 extends Extended Information string 5000
[0095] Step S202: fine-tune the large language model based on historical business data.
[0096] After obtaining the historical business data corresponding to the business to be alarmed, the large language model can be fine-tuned based on the historical business data. Through fine-tuning training, the large language model has knowledge of specific business fields, so that accurate results can be given in the later stage.
[0097] Taking the manuscript business as an example, it is necessary to calculate the year-on-year change in manuscripts, year-on-year fluctuation, number of submissions, month-on-month fluctuation, absolute value of month-on-month decrease, month-on-month decrease ratio, absolute value of year-on-year yesterday, etc. Therefore, a large language model can be trained to calculate the above indicators.
[0098] Among them, the common ways to fine-tune the large language model are: fine-tuning the whole model, fine-tuning part of the model, fine-tuning by freezing some layers, fine-tuning by introducing additional learnable parameters, etc. This application does not limit the fine-tuning method adopted. When fine-tuning the large language model, it involves the setting of the fine-tuning model parameters, mainly the selection of the basic large model and whether to integrate the Chinese enhancement model. In this embodiment, the basic model mainly selects Index2.x as the basic large model. Index2.x has strong generalization capabilities and can be suitable for a variety of downstream tasks, such as question-answering models and data analysis models; in addition, the Chinese enhancement model is also integrated in this embodiment. By adding the Chinese enhancement model, the large language model's ability to understand the Chinese language can be improved. The Chinese enhancement model usually optimizes the understanding of Chinese grammar, idiomatic expressions and cultural background.
[0099] Step S203, setting a service alarm prompt rule according to the user's selection operation of a service alarm rule prompt word in a preset rule prompt dictionary, and establishing a mapping relationship between the service and the service alarm prompt rule.
[0100] Specifically, a rule prompt dictionary is maintained in advance, and the rule prompt dictionary stores prompt words for each business alarm rule. The business alarm rule prompt word is a simple prompt text for the rule. The following briefly lists some business alarm rule prompt words and reference time in the rule prompt dictionary:
[0101] Calculate the year-on-year increase in manuscripts per day, using {currentDateTime}; obtain the current number of submissions, using {currentDateTime}; calculate the year-on-year increase in manuscripts per minute, using {currentDateTime}; calculate the year-on-year increase in manuscripts per minute ratio, using {currentDateTime}; calculate the year-on-year absolute value of manuscripts per day, using {currentDateTime}.
[0102] This embodiment can provide the user with a business alarm prompt rule setting page. When the user wants to set the business alarm prompt rule, he can enter the setting page to set the business alarm prompt rule. The user can select the appropriate business alarm rule prompt word from the rule prompt dictionary. The business alarm rule prompt word can be displayed in the form of a drop-down list on the rule setting page. The user can select from the list or search for the appropriate business alarm rule prompt word through keywords to set the business alarm prompt rule.
[0103] Figure 2B This is a diagram for setting a business alarm prompt rule. Figure 2BAs shown, when setting the business alarm prompt rule, the following information needs to be set: indicator description, business alarm rule prompt word, operator, and alarm condition threshold, wherein the indicator description is used to explain what the indicator measures; the business alarm rule prompt word is a text description that guides the large language model to generate specific content or perform specific tasks; the operator is a symbol or keyword used to specify a certain calculation or operation to be performed on one or more operands, wherein the operator includes: >, <, =, ≤, ≥, etc. In this embodiment, the result defined by the business alarm rule prompt word is calculated or operated; the alarm condition threshold defines the value that the business alarm needs to meet, and the specific value can be set according to business needs.
[0104] The indicator description, business alarm rule prompt word, operator, and alarm condition threshold constitute a business alarm prompt condition. The business alarm prompt rule can be composed of one or more business alarm prompt conditions. If it is composed of multiple business alarm prompt conditions, the conditional relationship between the multiple business alarm prompt conditions must also be explained. For example, the conditional relationship between the multiple business alarm prompt conditions is an and relationship, which means that the alarm corresponding to the business alarm prompt rule will be triggered only when multiple business alarm prompt conditions are met.
[0105] When setting business alarm prompt rules, you also need to set the business alarm level corresponding to the business alarm prompt rules. The business alarm level can include: disaster, reminder, warning, and of course other levels, for example, level one, level two, level three, etc., which are not specifically limited here.
[0106] Each business alarm prompt rule will have a unique rule ID. After completing the business alarm prompt rule setting, it is necessary to establish a mapping relationship between the business and the business alarm prompt rule. For example, establish a mapping relationship between the business ID and the business alarm prompt rule ID, so that when an alarm is needed for the business in the future, the business alarm prompt rule ID with a mapping relationship can be queried according to the business ID of the business to be alarmed, and the business alarm prompt rule corresponding to the business alarm prompt rule ID can be obtained.
[0107] Therefore, the business alarm prompt rule includes: business alarm level and business alarm prompt condition; the business alarm prompt condition includes: business alarm rule prompt word and parameter condition, and the parameter condition includes reference time, alarm condition threshold and operator corresponding to the alarm condition threshold.
[0108] It should be noted that this embodiment does not limit the execution order of step S203 and step S201-step S202. Step S203 and step S201 may be executed simultaneously, or step S203 may be executed first and then step S201, or step S201 may be executed first and then step S203.
[0109] Step S204, obtaining the service data of the service to be alarmed within a preset time period and the corresponding service alarm prompting rules.
[0110] Specifically, the service alarm method provided in this embodiment can regularly inspect the service alarm prompt rules, that is, regularly detect whether the service has the possibility of alarm, so the preset time period here is the time difference between two regular service detection times. The service alarm prompt rule describes the service alarm rule in the form of a text prompt, and the service alarm prompt rule can be generated based on the preset service alarm rule prompt words, and the service alarm rule prompt words are text descriptions that guide the large language model to generate specific content or perform specific tasks.
[0111] Each service to be alarmed has a unique service ID. Therefore, the service data within a preset time period and its corresponding service alarm prompt rule are obtained according to the service ID of the service to be alarmed.
[0112] Step S205 , according to the service alarm rule prompt words and reference time, the fine-tuned large language model is used to process the service data within the preset time to determine the service alarm prompt description result.
[0113] The reference time limits the benchmark time for data comparison. The business alarm rule prompt words specifically describe the tasks that need to be performed by the large language model. The business alarm rule prompt words and the reference time are input into the fine-tuned large language model. The fine-tuned large language processes the business data within the preset time according to the business alarm rule prompt words and the reference time to determine the business alarm prompt description result.
[0114] Step S206, determining the service alarm result corresponding to the service to be alarmed according to the service alarm prompt description result, the alarm condition threshold and the operator.
[0115] Specifically, in combination with the operator, the service alarm prompt description result is compared with the alarm condition threshold, and the service alarm result corresponding to the service to be alarmed is determined according to the comparison result.
[0116] For example, the operator is >, then here it is determined whether the business alarm prompt description result is greater than the alarm condition threshold, so as to determine the business alarm result corresponding to the business to be alarmed based on the comparison result. The business alarm result can be the business alarm level in the business alarm prompt rule or no alarm is required. For example, if the business alarm prompt description result is greater than the alarm condition threshold, the business alarm result is the business alarm level in the business alarm prompt rule; if the business alarm prompt description result is less than or equal to the alarm condition threshold, the business alarm result is no alarm is required.
[0117] In an optional implementation manner of the present application, the service alarm prompt rule includes a plurality of service alarm prompt conditions and a conditional relationship between the plurality of service alarm prompt conditions;
[0118] Determining the business alarm result corresponding to the business to be alarmed according to the business alarm prompt description result, the alarm condition threshold and the operator further includes:
[0119] For any service alarm prompt condition, based on the operator, the service alarm prompt description result is compared with the alarm condition threshold in the service alarm prompt condition;
[0120] According to the multiple comparison results and the conditional relationship between the multiple service alarm prompt conditions, the service alarm result corresponding to the service to be alarmed is determined.
[0121] Specifically, a business alarm prompt rule may include multiple business alarm prompt conditions and conditional relationships between the multiple business alarm prompt conditions. Then, for each business alarm prompt condition, a business alarm prompt description result can be obtained. For multiple business alarm prompt conditions, multiple business alarm prompt description results can be obtained. The number of business alarm prompt description results obtained corresponds to the number of business alarm prompt conditions. For any business alarm prompt condition, based on the operator, the business alarm prompt description result is compared with the alarm condition threshold in the business alarm prompt condition to obtain a comparison result of the object, and finally multiple comparison results are obtained. Then, based on the multiple comparison results and the conditional relationship between the multiple business alarm prompt conditions, the business alarm result corresponding to the business to be alarmed is determined.
[0122] For example, the conditional relationship between multiple business alarm prompt conditions is an and relationship. When all the conditions specified by the operator are met, an alarm is triggered, and the business alarm result corresponding to the business to be alarmed is determined to be the corresponding business alarm level; when not all the conditions are met, it is determined that no alarm is needed.
[0123] Step S207: Send the service alarm result to the alarm receiver according to the alarm contact method and alarm frequency.
[0124] Business alarm prompt rules may also include: alarm frequency, alarm recipients, and alarm contact methods; the alarm frequency limits the frequency of sending business alarm notifications to alarm recipients. The alarm frequency can be flexibly set according to business needs, for example, half an hour or 15 minutes, etc.; the alarm recipients refer to which people or devices receive the business alarm results, and the specific alarm recipients can be flexibly set according to business needs; the alarm contact method refers to the method used to convey the business alarm results to the alarm recipients, and the alarm contact methods include: SMS, email, phone, log, etc.
[0125] Therefore, the business alarm results can also be delivered according to the alarm frequency, alarm receiver, and alarm delivery method of the business alarm prompt rules, mainly sending the business alarm results to the alarm receiver according to the alarm delivery method and alarm frequency.
[0126] The following is an example of the manuscript business, and 20 pieces of business data of the manuscript business are given as follows:
[0127] Manuscript 1, creation date: 2024-04-17 10:10:00; Manuscript 2, creation date: 2024-04-17 10:10:01; Manuscript 3, creation date: 2024-04-17 10:10:02; Manuscript 4, creation date: 2024-04-17 10:10:02; Manuscript 5, creation date: 2024-04-18 10:10:02; Manuscript 6, creation date: 2024-04-18 10:11:02; Manuscript 7, creation date: 2024-04-18 11:10:02; Manuscript 8, creation date: 2024-04-19 09:10:02; Manuscript 9, creation date: 2024-04-19 10:10:02; Manuscript 10, creation date: 2024-04-19 10:11:02; Manuscript 11, creation date: 2024-04-19 12:10:02; Manuscript 12, creation date: 2024-04-20 10:10:02; Manuscript 13, creation date: 2024-04-20 11:10:02; Manuscript 14, creation date: 2024-04-20 12:10:02; Manuscript 15, creation date: 2024-04-21 10:10:02; Manuscript 16, creation date: 2024-04-21 10:11:02; Manuscript 17, creation date: 2024-04-2113:10:02; Manuscript 18, creation date: 2024-04-22 10:10:02; Manuscript 19, creation date: 2024-04-22 10:12:02; Manuscript 20, creation date: 2024-04-22 14:10:02
[0128] For manuscript business, you can set business alarm prompt conditions as follows:
[0129] 1. Calculate the daily year-on-year of the manuscript, the time is {checkDateTime}>{threshold}
[0130] Based on the given 20 manuscript data and the base time (2024-04-19 10:10:00), the change in the number of manuscripts between the day before the base time (2024-04-18) and the base time can be calculated.
[0131] The number of manuscripts on the day before the base time (2024-04-18) is 2 (manuscript 5 and manuscript 6, here the statistics are based on the deadline of 10:10:00).
[0132] The number of manuscripts at the base time (2024-04-19 10:10:00) is 3 (manuscript 8, manuscript 9, and manuscript 10).
[0133] Therefore, the change in the number of manuscripts from the day before the base time to the base time is 1(3-2), that is, the number of manuscripts increased by 1 relative to the base time.
[0134] Given 20 manuscript data and the base time (2024-04-19 10:10:00), calculate the daily year-on-year change of the manuscript. Between the base time (2024-04-19 10:10:00) and the previous day (2024-04-18), the number of manuscripts changed by 1. Therefore, the daily year-on-year change of the manuscript is {+1}.
[0135] 2. Parameterize {checkDateTime} and {threshold} and pass in relative time. For example, substitute the condition: checkDateTime = 2024-04-19 10:10:00 > threshold = 1, which sets a business alarm prompt condition.
[0136] Figure 3A A schematic diagram of a system architecture provided by another embodiment of the present application is shown. As shown in FIG3 , the system includes: a prompt management system, an alarm notification system, and an AI platform, wherein the AI platform includes: a large language model, a RAG framework, and a fine-tuning framework (Fine-turning framework).
[0137] Taking the manuscript business as an example, the manuscript data is synchronized to the AI platform, and the RAG framework and Fine-turning framework are used to conduct regular full-scale training of the large language model.
[0138] In the prompt management system, alarm rules are generated based on alarm conditions. After determining the alarm rules corresponding to the manuscript business, regular training tasks can be performed based on the alarm conditions. The alarm conditions can be extracted and the large language model can be called for dialogue to obtain data results. The alarm results are generated based on the data results and other parameter conditions specified in the alarm rules and returned to the alarm notification system. The alarm levels may include: reminder, warning, and disaster.
[0139] An alarm rule may contain multiple alarm conditions, such as Figure 3B As shown, therefore, it is necessary to check all alarm conditions. When all checks are passed, the current alarm rule ends and the alarm notification system can be notified.
[0140] In an optional implementation of the present application, there may be multiple different business areas that require business alerts at the same time. Therefore, an interaction model can be provided to the user, and the user can select the corresponding business area through the interaction module. Therefore, the interaction module is presented on the front end in the form of a dialog box, and the business area options are presented on the front end in the form of buttons.
[0141] In summary, according to the method provided in this embodiment, the maintenance of business alarm prompt rules is opened to all roles that understand the business by providing business alarm rule prompt words, making the setting of business alarm prompt rules more flexible and saving development costs and maintenance costs; on the basis of the large language model, the historical business data of the specified business in the business alarm field is added, and the large language model is fine-tuned and trained. The fine-tuned large language model can calculate various business alarm indicators and give monitoring indicator calculations and business alarm results for processing various dimensions, thereby improving the efficiency and accuracy of alarm processing, and enhancing the intelligence level, flexibility, personalization and human-computer interaction experience of the business alarm system; further, the large language model can be fine-tuned by using historical business in different business fields, and users can select the corresponding large language model as needed to implement business alarms in specified business fields to meet the personalized needs of users.
[0142] Figure 4 FIG. 2 shows a schematic diagram of the structure of a service alarm device according to an embodiment of the present application. Figure 4 As shown, the device comprises:
[0143] The first acquisition module 401 is adapted to acquire, for any service to be alarmed, historical service data corresponding to the service to be alarmed;
[0144] A fine-tuning module 402, adapted to perform fine-tuning training of a large language model based on historical business data;
[0145] The second acquisition module 403 is adapted to acquire the service data of the service to be alarmed within a preset time period and the corresponding service alarm prompt rule, wherein the service alarm prompt rule is generated according to the preset service alarm rule prompt word;
[0146] The determination module 404 is adapted to process the business data within a preset time period using a fine-tuned large language model according to the business alarm prompt rule, and determine the business alarm result corresponding to the business to be alarmed.
[0147] Optionally, the business alarm prompt rule includes: business alarm level and business alarm prompt condition; the business alarm prompt condition includes: business alarm rule prompt word and parameter condition, the parameter condition includes reference time, alarm condition threshold and operator corresponding to the alarm condition threshold.
[0148] Optionally, the determination module is further adapted to: process the business data within a preset time using a fine-tuned large language model according to the business alarm rule prompt words and reference time, and determine the business alarm prompt description result;
[0149] Determine the business alarm result corresponding to the business to be alarmed based on the business alarm prompt description result, alarm condition threshold and operator.
[0150] Optionally, the business alarm prompt rule includes multiple business alarm prompt conditions and conditional relationships between the multiple business alarm prompt conditions;
[0151] The determination module is further adapted to: for any service alarm prompt condition, based on the operator, compare the service alarm prompt description result with the alarm condition threshold in the service alarm prompt condition;
[0152] According to the multiple comparison results and the conditional relationship between the multiple service alarm prompt conditions, the service alarm result corresponding to the service to be alarmed is determined.
[0153] Optionally, the device further comprises: a setting module adapted to set a service alarm prompt rule according to a user's selection operation of a service alarm rule prompt word in a preset rule prompt dictionary;
[0154] The establishment module is suitable for establishing a mapping relationship between services and service alarm prompt rules.
[0155] Optionally, the service alarm prompt rule also includes: alarm frequency, alarm receiver, and alarm contact method;
[0156] The device also includes: a sending module, which is suitable for sending the business alarm result to the alarm receiver according to the alarm contact method and the alarm frequency.
[0157] In summary, according to the device provided in this embodiment, the maintenance of business alarm prompt rules is opened to all roles that understand the business by providing business alarm rule prompt words, making the setting of business alarm prompt rules more flexible and saving development costs and maintenance costs; on the basis of the large language model, historical business data of specified businesses in the business alarm field are added, and the large language model is fine-tuned and trained. The fine-tuned large language model can calculate various business alarm indicators and give monitoring indicator calculations and business alarm results for processing various dimensions, thereby improving the efficiency and accuracy of alarm processing, and enhancing the intelligence level, flexibility, personalization and human-computer interaction experience of the business alarm system.
[0158] An embodiment of the present application provides a non-volatile computer storage medium, which stores at least one executable instruction or computer program, and the executable instruction or computer program can enable a processor to perform operations corresponding to the service alarm method in any of the above method embodiments.
[0159] An embodiment of the present application provides a computer program product, which includes at least one executable instruction or computer program, and the executable instruction or computer program can enable a processor to perform operations corresponding to the service alarm method in any of the above method embodiments.
[0160] Figure 5 A schematic diagram of the structure of an embodiment of a computing device of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the computing device.
[0161] like Figure 5 As shown, the computing device may include: a processor (processor) 502 , a communications interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0162] The processor 502, the communication interface 504, and the memory 506 communicate with each other via the communication bus 508. The communication interface 504 is used to communicate with other devices such as a client or other server network elements. The processor 502 is used to execute the program 510, which can specifically execute the relevant steps in the above-mentioned service alarm method embodiment for a computing device.
[0163] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0164] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0165] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0166] The program 510 can be specifically used to enable the processor 502 to execute the service alarm method in any of the above method embodiments. The specific implementation of each step in the program 510 can refer to the corresponding description in the corresponding steps and units in the above service alarm embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiments, which will not be repeated here.
[0167] The algorithm or display provided here are not inherently related to any specific computer, virtual system or other equipment. Various general systems can also be used together with the teaching based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the present application embodiment is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present application described here, and the above description of specific languages is to disclose the best mode of implementation of the present application.
[0168] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0169] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0170] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0171] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0172] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to the embodiments of the present application. The application can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0173] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be constructed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A service alarm method, comprising: For any service to be alerted, obtain historical service data corresponding to the service to be alerted; Perform fine-tuning training on a large language model based on the historical business data; Acquire the service data of the service to be alerted within a preset time period and the corresponding service alert prompt rule, wherein the service alert prompt rule is generated according to the preset service alert rule prompt word; According to the business alarm prompt rule, the business data within a preset time is processed using the fine-tuned large language model to determine the business alarm result corresponding to the business to be alarmed.
2. The method according to claim 1, wherein: The business alarm prompt rule includes: business alarm level and business alarm prompt condition; the business alarm prompt condition includes: business alarm rule prompt word and parameter condition, and the parameter condition includes reference time, alarm condition threshold and operator corresponding to the alarm condition threshold.
3. The method according to claim 2, wherein: The processing of the service data within a preset time using the fine-tuned large language model according to the service alarm prompt rule to determine the service alarm result corresponding to the service to be alarmed further includes: According to the service alarm rule prompt word and the reference time, the service data within the preset time is processed using the fine-tuned large language model to determine the service alarm prompt description result; The service alarm result corresponding to the service to be alarmed is determined according to the service alarm prompt description result, the alarm condition threshold and the operator.
4. The method according to claim 3, wherein: The service alarm prompt rule includes multiple service alarm prompt conditions and conditional relationships between the multiple service alarm prompt conditions; The determining the service alarm result corresponding to the service to be alarmed according to the service alarm prompt description result, the alarm condition threshold and the operator further includes: For any service alarm prompt condition, based on the operator, compare the service alarm prompt description result with the alarm condition threshold in the service alarm prompt condition; According to the multiple comparison results and the conditional relationship between the multiple service alarm prompt conditions, the service alarm result corresponding to the service to be alarmed is determined.
5. The method according to any one of claims 1 to 4, wherein: The method further comprises: setting a service alarm prompt rule according to a user's selection operation of a service alarm rule prompt word in a preset rule prompt dictionary, and establishing a mapping relationship between the service and the service alarm prompt rule.
6. The method according to any one of claims 1 to 5, wherein: The business alarm prompt rules also include: alarm frequency, alarm receiver, and alarm contact method; The method also includes: sending a service alarm result to an alarm receiver according to the alarm contact mode and the alarm frequency.
7. A service alarm device, comprising: A first acquisition module is adapted to acquire, for any service to be alarmed, historical service data corresponding to the service to be alarmed; A fine-tuning module, adapted to perform fine-tuning training of a large language model according to the historical business data; A second acquisition module is adapted to acquire the service data of the service to be alarmed within a preset time period and the corresponding service alarm prompt rule, wherein the service alarm prompt rule is generated according to a preset service alarm rule prompt word; The determination module is adapted to process the business data within a preset time according to the business alarm prompt rule using a fine-tuned large language model to determine the business alarm result corresponding to the business to be alarmed.
8. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the service alarm method according to any one of claims 1-6.
9. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute an operation corresponding to the service alarm method according to any one of claims 1 to 6.
10. A computer program product, comprising at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the service alarm method according to any one of claims 1 to 6.
Citation Information
Cited By
Short message monitoring and early warning method, device, equipment, medium and program product
CN119342428A
SMS monitoring and early warning methods, devices, equipment, media, and program products
CN119342428B
Method and system for realizing Internet of Things data alarm processing based on large model
CN119544734A
