Search enhancement generating recommendation method and device combining system events and intent prediction

By listening to multiple types of system event signals and generating wake-up packets, and using a multimodal large language model for reasoning and hybrid retrieval, the problem of lagging exception handling in existing technologies is solved, achieving automated, rapid exception response and high recall.

CN123178609APending Publication Date: 2026-11-27KYLIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611504388.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the operating environment of localized operating systems and enterprise-specific software, existing technologies struggle to automatically capture abnormal information, lack multimodal signal fusion, resulting in delayed abnormal handling response, low recall hit rate, and a lack of intelligent wake-up mechanism.

Method used

By continuously monitoring multiple types of system event signals, performing deduplication and cooling-off and sliding time window association, generating wake-up packets and injecting them into a multimodal large language model for inference, outputting structured products, and combining them with domain-specific paths for hybrid retrieval and secondary generation, automated anomaly handling is achieved.

Benefits of technology

It enables automatic capture of multimodal context at the moment of an exception, reduces response latency, improves the completeness of exception understanding, and reduces invalid wake-ups by deduplication cooling window, thereby improving recall hit rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178609A_ABST
    Figure CN123178609A_ABST
Patent Text Reader

Abstract

The application discloses a recommendation method, device, electronic equipment and computer readable storage medium for retrieval enhancement combined with system events and intention prediction. The method takes a system event as a link starting point, continuously monitors multiple system event signals to form a discrete event signal stream; performs deduplication cooling, sliding time window association and weighted scoring on the event signal stream, captures transient context when the total score reaches the awakening threshold, and assembles it into an awakening package; inject the awakening package into a multi-modal large language model through a prompt word template for single inference, and output refined information, conclusions containing field attribution and intention, and search words; perform mixed retrieval in the field path according to the field attribution and secondarily generate a solution, and directly output the solution in the general path; finally, reach the user according to the confidence level and write the confirmation feedback into the local long-term memory library. The application moves the retrieval trigger time to the abnormal occurrence moment, which can reduce the retrieval start delay and improve the interaction experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer technology, specifically a method and apparatus for enhancing retrieval and generating recommendations by combining system events and intent prediction. Background Technology

[0002] In environments where localized operating systems and enterprise-specific software coexist, various hardware and software anomalies frequently occur during system operation, such as process errors, service startup failures, resource shortage alarms, and graphical interface error messages. Handling these anomalies often requires the use of local knowledge bases, and the efficiency of this process highly depends on the professional knowledge level of the operators.

[0003] In related technologies, retrieval enhancement generation improves the accuracy of answers by retrieving relevant documents from external knowledge bases as references before generating answers from large language models. However, this processing paradigm usually relies on users actively initiating and accurately describing the problem before the retrieval can be triggered. When users fail to notice the anomaly or cannot accurately describe the problem, the retrieval is difficult to initiate or the recall hit rate is low. The first-hand information of the anomaly, such as the content of the error pop-up, the system call sequence before the lag, and the alarm context, is not automatically captured and retained.

[0004] Monitoring solutions in related technologies can detect anomalies at the numerical indicator level and locate abnormal processes through threshold comparison and indicator analysis, but they can only output conclusions at the structured numerical indicator level. They are difficult to handle scenarios such as abnormal states of graphical interfaces that require semantic understanding and in-depth repair directions for terminal errors. The dimension of anomaly perception is limited to structured numerical indicators.

[0005] Multimodal interaction solutions in related technologies can achieve continuous monitoring and voice interaction through audio channels, but they usually only cover voice interaction scenarios and lack perception channels for non-voice abnormal signals such as screen images, terminal error output, process exit codes, and system resource indicators. It is difficult to associate and fuse multi-source heterogeneous event signals to form a unified abnormal judgment context. Operation and maintenance solutions based on large language models in related technologies usually rely on task status changes reported by data pipelines, which is difficult to automatically capture instantaneous abnormal scenarios and lacks an intelligent wake-up mechanism based on event deduplication, association, and cumulative scoring.

[0006] In summary, the four stages of event capture, semantic understanding, knowledge retrieval, and proactive push are isolated from each other in the relevant technical architecture and lack information sharing. There is no architecture to organically connect them into an end-to-end automated link. As a result, the anomaly handling suffers from technical problems such as delayed retrieval initiation, low recall hit rate, and untimely response. It is necessary to propose new technical solutions to address these issues. Summary of the Invention

[0007] To address the above problems, this invention provides a method and apparatus for enhancing retrieval and generating recommendations by combining system events and intent prediction. To achieve the above objectives, the technical solution adopted by this invention is as follows: According to a first aspect of this application, a retrieval enhancement recommendation generation method combining system events and intent prediction is provided, comprising: S1 continuously monitors multiple types of system event signals and outputs discrete event signal streams; S2, perform deduplication and cooling on the discrete event signal stream and associate it with a sliding time window to obtain event groups, weight score the event groups, and capture transient context and assemble it into a wake-up packet when the total score reaches the wake-up threshold; S3, the wake-up package is injected into the multimodal large language model through the prompt word template for single reasoning, and a structured product containing extracted information, conclusions and solutions is output. The conclusions include domain affiliation, intent and keywords. S4. Routing is performed based on the domain affiliation. The path within the domain performs a hybrid retrieval of vectors and keywords. After the retrieval results are reordered, a solution is generated a second time by the multimodal large language model. The general path directly adopts the solution output by the single inference. S5 outputs recommended content according to confidence level and writes user confirmation feedback to the local long-term memory.

[0008] Preferably, the continuous monitoring of multiple types of system event signals includes monitoring at least two of the following five types of event signals: Process exception event signals are generated when the target process exits with a non-zero exit code, receives an abnormal termination signal, or remains unresponsive for more than a preset duration by subscribing to process exit events through the kernel process event interface. System resource event signals are generated by periodically collecting processor usage, memory usage, and disk space remaining, and when they exceed the corresponding thresholds. Window exception event signals are generated when the title or class name of a new window matches a preset set of exception keywords, detected through the window manager interface. Terminal abnormal event signal, which is generated when the standard error output stream of the associated pseudo terminal device is monitored and a content is found or a preset error pattern is matched. The audio event signal sequentially performs speech activity detection, keyword detection, and speech recognition on the microphone audio stream. When a trigger word is hit, it generates and transcribes the text.

[0009] Preferably, S2 includes: For each arriving event signal, extract its event type field and associated information and combine them into a deduplication key. Within the preset cooling window, do not initiate a new wake-up decision for event signals with the same deduplication key that arrive repeatedly, and accumulate the repetition count of the deduplication key. Within a preset sliding time window, different types of event signals that belong to the same process or arrive within the same time window are merged into a single event group; For each event signal in the event group, the actual score is calculated based on the preset base score and repetition count of its event type, and the sum of the actual scores in the group is taken as the total score of the event group. When the total score reaches the wake-up threshold, the wake-up condition is determined to be met.

[0010] Preferably, when the wake-up condition is met, the desktop screenshot interface is called to capture the screen image of the currently active display, and the operating system version, processor, memory, disk usage and active process list are collected as a system status snapshot. The screen image, system status snapshot and event metadata of the event group are assembled into the wake-up package. After the wake-up package is sent out, the cumulative status of the current event group and each deduplication key is cleared, and subsequent event signals are re-accumulated from zero.

[0011] Preferably, the prompt word template includes a system role and knowledge base domain information area, a current anomaly context area, and an output requirement area; S3 fills the predefined role description text and local knowledge base coverage description into the system role and knowledge base domain information area, fills the event metadata, screen image, and system status snapshot into the current anomaly context area, and fills the limited instructions output according to the three-part structure of extracted information, conclusion, and solution into the output requirement area; the multimodal large language model uses event type as an attention guidance signal to focus on the area and semantic paragraphs related to the event type in the screen image and text.

[0012] Preferably, the path within the domain includes: The intents are sorted in descending order of confidence level. A preset number of intents are selected, their category texts are concatenated into a compound semantic query statement, and a preset number of keywords are concatenated into a keyword query. Intents with confidence levels below a preset value are discarded. The composite semantic query statement is encoded by an embedded model and then subjected to cosine similarity retrieval in the local vector knowledge base. The keyword query is then subjected to exact matching retrieval in the inverted index knowledge base. After deduplicating and merging the two search results, they are weighted and sorted according to normalized scores. Entries with fusion scores below a preset threshold are filtered out, and the top few are selected as candidate knowledge points for secondary generation.

[0013] According to a second aspect of this application, a retrieval enhancement and recommendation generation apparatus combining system events and intent prediction is provided, comprising: The event monitoring module is configured to continuously monitor multiple types of system event signals and output discrete event signal streams; The event aggregation wake-up module is configured to perform deduplication and cooling on the discrete event signal stream and associate it with a sliding time window to obtain event groups, weight score the event groups, and capture transient context and assemble them into a wake-up packet when the total score reaches the wake-up threshold. The multimodal reasoning module is configured to inject the wake-up package into the multimodal large language model through the prompt word template for single reasoning, and output a structured product containing extracted information, conclusions and solutions, wherein the conclusions include domain affiliation, intent and keywords; The retrieval generation module is configured to perform routing based on the domain affiliation. Within the domain, the path performs a hybrid retrieval of vectors and keywords, and after reordering the retrieval results, the solution is generated a second time by the multimodal large language model. The general path directly adopts the solution output by the single inference. The recommendation output feedback module is configured to output recommended content according to confidence level and write user confirmation feedback to the local long-term memory.

[0014] Preferably, the event aggregation wake-up module is further configured to: extract deduplication keys for each event signal; within a preset cooling window, not initiate a new wake-up determination for event signals with the same deduplication key that arrive repeatedly, and accumulate their repetition count; calculate the actual score based on the preset base score of the event type and the repetition count; compare the sum of the actual scores within the group as the total score of the event group with the wake-up threshold; and clear the current event group and the accumulated state of each deduplication key after the wake-up packet is sent out.

[0015] According to a third aspect of this application, an electronic device is provided, the device comprising: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the above-described retrieval enhancement generation recommendation method combining system events and intent prediction.

[0016] According to a fourth aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described retrieval enhancement generation recommendation method combining system events and intent prediction.

[0017] The beneficial effects of this invention include: Taking system events as the starting point of the link, the multimodal context is automatically captured and subsequent processing is triggered when an anomaly occurs. The timing of the retrieval trigger is moved from waiting for user questions to the moment an anomaly occurs, which helps to reduce end-to-end response latency. By using a multimodal large language model to perform scene understanding, domain attribution judgment and intent prediction in a single inference, and skipping indiscriminate retrieval in a general path, it is beneficial to reduce the consumption of computing resources. By using a deduplication cooling window and an accumulation scoring mechanism, the system remains silent during the user's self-processing period and only wakes the user when sufficient evidence has been accumulated, which helps to reduce the number of invalid wake-ups. By using multimodal reasoning to supplement the semantic information of the graphical interface and terminal that the event layer cannot perceive, it is beneficial to improve the completeness of anomaly understanding. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the deployment environment architecture for the retrieval enhancement and recommendation generation method combining system events and intent prediction of the present invention. Figure 2 This is a schematic diagram of the retrieval enhancement and recommendation generation method combining system events and intent prediction of the present invention; Figure 3 This invention provides a retrieval enhancement and recommendation generation device that combines system events and intent prediction. Figure 4 This is a schematic diagram of the structure of an electronic device according to the present invention. Detailed Implementation

[0019] To enable those skilled in the art to better understand the technical solution, the present invention will be described in detail below with reference to embodiments. The description in this part is only exemplary and explanatory, and should not be used to limit the scope of protection of the present invention in any way.

[0020] Example 1 This embodiment provides a retrieval enhancement and recommendation generation method that combines system events and intent prediction, deployed at the application layer of the same terminal device on the target operating system. For example... Figure 1 As shown, this method is implemented using five collaborative processing layers, from bottom to top: an event layer, an aggregation wake-up layer, a large-model inference layer, a retrieval generation layer, and an output layer. The event layer continuously monitors multiple types of deterministic event signals with low processor overhead and outputs discrete event signal streams. The aggregation wake-up layer performs deduplication, association, and weighted scoring on the event signals, triggering transient context capture and assembling a wake-up package when the wake-up conditions are met. The large-model inference layer injects the wake-up package into a multimodal large language model for single-inference using prompt word templates. The retrieval generation layer processes data along two paths based on domain affiliation. The output layer reaches users according to confidence levels and forms a feedback loop. Specific methods are as follows... Figure 2 As shown: Step S1: Continuous monitoring of event signals. The event monitoring module, deployed at the operating system application layer, continuously listens for five types of event signals via system interface polling. For process exception events, the event monitoring module subscribes to system-level process exit events through the kernel process event interface. When a target process exits with a non-zero exit code, a process exception event is generated. When a process receives exception signals such as segmentation faults or abnormal termination, a process termination event is generated. When a process remains unresponsive for more than a preset duration, a process zombie event is generated. For system resource events, the event monitoring module periodically collects processor usage, memory usage, and remaining disk space. When memory usage exceeds a first threshold, remaining disk space falls below a second threshold, or processor usage consistently exceeds a third threshold for more than a preset duration, corresponding resource alarm events are generated.

[0021] For window exception events, the event monitoring module detects new window creation events through the window manager interface. A window exception event is generated when the title or class name of the newly created window matches a preset set of exception keywords. An application unresponsive event is generated when the application window title is detected to have changed to an unresponsive or equivalent state. For terminal exception events, the event monitoring module listens to the standard error output stream of the associated pseudo-terminal device. A terminal exception event is generated when content appears in the standard error output stream. Optionally, lightweight matching is performed on the content of the standard output stream to identify known error patterns. For audio events, the event monitoring module sequentially performs voice activity detection and keyword detection on the audio stream captured by the microphone. When an audio frame is determined to contain a valid voice signal and matches a wake-up word or help keyword in a preset trigger word list, the matched segment is sent to the speech recognition engine for transcription and an audio event is generated. The audio event includes transcribed text. Each event signal contains metadata such as event type, trigger object identifier, indicator value or transcribed text, and timestamp. These are aggregated into a discrete event signal stream and sent to step S2.

[0022] Step S2, Event Aggregation and Wake-up Decision. The event aggregation and wake-up module receives the discrete event signal stream output from step S1 and sequentially executes four processing stages: deduplication and cooling, event association, wake-up scoring, and transient context capture. In the deduplication and cooling stage, the event aggregation and wake-up module extracts the event type field and available association information (such as process name, window title, and terminal identifier) ​​from each arriving event signal and combines them into a deduplication key. Within a preset cooling window, if an event signal with the same deduplication key arrives repeatedly, a new wake-up decision process is not initiated for that event signal, but the repetition count corresponding to that deduplication key is incremented by one, and the repetition count is retained along with the event signal. As one implementation, the cooling window is set to 60 seconds.

[0023] During the event association phase, the event aggregation and wake-up module aggregates arriving discrete event signals according to association rules within a preset sliding time window. Different types of event signals belonging to the same process, or multiple different types of event signals arriving within the time window, are merged into a single event group. The aggregated event group carries the complete fields of all event signals within the group and the repetition count of each signal. As one implementation, the sliding time window is set to 10 seconds.

[0024] During the wake-up scoring phase, the event aggregation wake-up module performs weighted scoring on each event group. The base scores for each event type are preset as follows: audio events: 1.0; process exception events: 0.6; terminal exception events: 0.5; system resource alarm events: 0.4; and window exception events: 0.3. The actual score for each event signal within an event group is calculated using the following formula:

[0025] in, The actual score of the event signal. This is the preset base score for the event type to which the event signal belongs. This is the repeat count of the deduplication key corresponding to the event signal, with a coefficient of 0.2 representing the unit increment of the repeat count relative to the score.

[0026] The total score of an event group is the sum of the actual scores of all event signals within the group, calculated using the following formula:

[0027] in, The total score for the event group. The number of event signals within the event group. This represents the actual score of the i-th event signal within the group.

[0028] When the total score of an event group reaches the wake-up threshold, the event aggregation wake-up module determines that the wake-up condition is met and triggers transient context capture; when the total score is lower than the wake-up threshold, the event group is discarded and no subsequent process is triggered. As one implementation, the wake-up threshold is set to 1. Setting the base score of audio events to the highest value of 1.0 allows the user's proactive voice request for help to serve as a fallback wake-up path for the system when other event channels fail to capture abnormal characteristics, covering abnormal scenarios that are difficult for other event channels to reach.

[0029] During the transient context capture phase, when the wake-up conditions are met, the event aggregation wake-up module captures transient data that the event layer was originally unaware of. This includes capturing the complete screen image of the currently active display by calling the desktop screenshot interface, and collecting the current operating system version, processor usage, memory usage, disk usage, and active process list as a system state snapshot. Terminal buffer contents, command history, and speech-to-text information are already carried in the event metadata by the event signals in step S1 and do not need to be captured again. The event aggregation wake-up module assembles the event metadata of the triggering event group and the transient context snapshot into a wake-up package. The wake-up package contains two top-level fields: event group metadata and transient context snapshot. The event group metadata records the number of events, trigger timestamp, total wake-up score, type of each event, deduplication key, repetition count, base score, actual score, and details. The transient context snapshot records the screen image and system state snapshot. Each data item retains its original timestamp according to its source. After the wake-up package is sent out, the event aggregation wake-up module immediately clears the accumulated state of the current event group and all deduplication keys, i.e., the repetition count is reset to zero, the cooldown window timer is reset, and subsequent event signals are re-accumulated from zero.

[0030] Step S3: Multimodal large language model inference driven by prompt word template. The multimodal inference module maintains a preset three-region prompt word template and injects various data from the wake-up package into the template by replacing placeholders. In the system role and knowledge base domain information region of the template, predefined diagnostic assistant role description text and knowledge base coverage description loaded from the local knowledge base are filled in; in the current anomaly context region of the template, event metadata from step S1, screen images passed in as independent image fields in the form of image links or encodings, and system status snapshots are filled in sequentially; in the output requirement region of the template, constraint instructions output in a three-part structure of extracted information, conclusion, and solution are filled in.

[0031] The multimodal inference module inputs the assembled prompts into a pre-trained multimodal large language model, which then performs a single inference. The multimodal large language model uses the event type in the event metadata as an attention guide signal, focusing on visual regions related to the event type in the input screen image. It prioritizes analyzing semantic paragraphs related to the event type in the terminal buffer text, outputting a structured product. This structured product comprises three parts: an extracted information part containing key process names, complete error message text, exit codes or signal values, operating system version and environment information, operation commands executed on the terminal, and key semantic information from the audio transcription text; a conclusion part containing domain attribution, intent, and search terms, where domain attribution is either within the domain or general, intent is a list containing categories, subcategories, and confidence levels, and search terms are string arrays; and a solution part where the multimodal large language model directly outputs a complete solution text based on its own parameterized knowledge when the domain attribution is general, and returns a null value or a brief placeholder when the domain attribution is within the domain.

[0032] The multimodal reasoning module extracts the value of the domain attribution field from the structured product for routing determination: if the domain attribution is general, the structured product is directly routed to step S5; if the domain attribution is intra-domain, the structured product is routed to step S4. Thus, scene understanding, domain attribution determination, intent prediction, and search term generation are all completed in a single inference step of the multimodal large language model, without requiring additional procedural matching steps.

[0033] Step S4, Knowledge Retrieval and Secondary Generation. The retrieval generation module is activated only when it receives structured products belonging to the domain, and sequentially executes three stages: search term extraction, hybrid retrieval, and secondary large model generation. In the search term extraction stage, the retrieval generation module reads multiple intent items from the structured product conclusions, selects the top few in descending order of confidence, concatenates their category texts into a composite semantic query statement as semantic retrieval input, and simultaneously reads multiple search terms from the conclusions, selecting the top few concatenated with spaces as keyword retrieval input. Intent items with a confidence level below a preset value are discarded. As one implementation, the top 3 intents and top 3 search terms are selected, and intent items with a confidence level below 0.5 are discarded.

[0034] In the hybrid retrieval stage, the retrieval generation module sends semantic queries and keyword queries to two separate retrieval channels: the semantic query, after being encoded by the embedding model, performs a cosine similarity retrieval in the local vector knowledge base, returning the first number of candidate knowledge points; the keyword query performs an exact match retrieval in the inverted index knowledge base, returning the second number of candidate knowledge points. After deduplication and merging, the two results are weighted and sorted according to normalized scores. Entries with fusion scores below a preset threshold are filtered out, and the top few are selected as an ordered list of candidate knowledge points. Each knowledge point includes the content text, source document identifier, and fusion relevance score. As one implementation, the fusion score threshold is set to 0.5, and the top 10 results are selected, with semantic scores and keyword scores each weighted at 0.5.

[0035] In the secondary large model generation stage, the retrieval and generation module merges the structured product with the ordered list of candidate knowledge points to construct secondary generation prompts. The multimodal large language model is required to generate an answer containing problem diagnosis and step-by-step operation guidance based on event scenario information and retrieved domain knowledge points, clearly indicating the source document identifiers of the knowledge points in the answer. This secondary generation can reuse the model instance from step S3 or call an independent model instance. The secondary generated solution includes the problem description text, detailed step-by-step solution, overall confidence score, and a list of cited knowledge point source document identifiers, which are sent to step S5 along with the structured product.

[0036] Step S5: Tiered Recommendation Output and Closed-Loop Feedback. The recommendation output feedback module extracts the confidence value from the recommended content package and compares it with a preset first confidence threshold and a second confidence threshold. It then reaches the user in three differentiated ways: when the confidence level reaches the first confidence threshold, the recommended content actively appears as a pop-up on the top layer of the current desktop; when the confidence level is between the second and first confidence thresholds, a notification appears with a flashing tray icon and a superimposed badge, which the user clicks to display; when the confidence level is below the second confidence threshold, the recommended content is written to a silent recommendation queue, to be displayed when the user actively invokes it. As an implementation, the first confidence threshold is set to 0.9, and the second confidence threshold is set to 0.6. All three levels display the recommendation scheme in the same way, and the interface provides entry points for viewing details and ignoring.

[0037] Regarding interactive feedback collection and long-term memory updates, the recommendation output feedback module continuously monitors interactive events related to the recommended content after it is displayed. When a confirmed useful instruction is captured, the structured summary information and auxiliary decision-making data associated with the current recommendation are encapsulated into memory metadata. After verification by a preset review strategy, this metadata is written to the local long-term memory in an asynchronous, timed batch processing manner. This local long-term memory reuses the vectorized interface and index channel of the knowledge base generated by retrieval enhancement at the storage layer to achieve unified retrieval of memory data and knowledge data. When an instruction to ignore or close is captured, the recommendation output feedback module clears the current context cache and does not trigger any write action, thereby ensuring that the long-term memory only adopts valid feedback explicitly confirmed by the user. When similar events occur subsequently, adopted solutions will be prioritized for recommendation, forming a continuous optimization closed loop of recommendation, adoption, and more accurate recommendations.

[0038] Several key data structures are involved in the data flow process of this embodiment. The wake-up package is a unified data structure output by the event aggregation wake-up module, containing two top-level fields: event group metadata and transient context snapshot. The event group metadata records the number of events, trigger timestamps, total wake-up score, and the type, deduplication key, duplicate count, base score, actual score, and details of each event. The transient context snapshot records screen images and system state snapshots. The structured output of a single inference by the multimodal large language model contains two main fields: extracted information and conclusion. The extracted information includes structured information such as key processes, error types and details, and system environment extracted from the wake-up package. The conclusion includes domain affiliation, intent list, search term array, and solutions that are initially null when within the domain. The ordered list of candidate knowledge points output by the hybrid retrieval includes content text, source document identifiers, and a fusion relevance score for each knowledge point, serving as reference material for secondary generation. The complete solution output by secondary generation includes a problem description, step-by-step solutions, an overall confidence score, and a list of cited source document identifiers. The above data structure is transmitted sequentially along the main data flow line. That is, the system event signal is aggregated to obtain the wake-up package, the prompt word template is assembled and a single reasoning is performed to obtain the structured product, the path in the domain is searched in a mixed way to obtain candidate knowledge points, and the complete answer is obtained through secondary generation. Finally, the hierarchical output reaches the user and the user feedback drives the update of the local long-term memory.

[0039] As an example illustrating the path within the domain, consider the following input scenario: A service restart operation targeting a proprietary service component is performed in a localized operating system. The terminal returns an error message indicating that the control process of this service exited with an error code. This service component is a proprietary service component of this operating system. In event-level processing, terminal anomaly monitoring detects error content in the standard error output stream, and process monitoring detects that the relevant process exited with a non-zero exit code. The event aggregation wake-up module associates the two event signals into the same event group within a sliding time window. In wake-up scoring, the base score for terminal anomaly events is 0.5, and the base score for process anomaly events is 0.6. Both have a repetition count of zero, and the sum of the event group scores of 0.5 and 0.6 is 1.1, reaching the wake-up threshold of 1, thus satisfying the wake-up condition. Transient context capture obtains a screenshot of the terminal window containing the error text and a system state snapshot indicating the operating system version, assembles them into a wake-up package, and sends it to step S3.

[0040] In the large model inference layer processing, the multimodal inference module assembles prompt words and injects descriptions and system environment information covering the scope of the operating system's maintenance knowledge base. The multimodal large language model then performs a single inference to output a structured product. The extracted information portion of the structured product indicates that the key process is the dedicated service, the error type is service startup failure, and the error details are that the control process exited with an error code. The conclusion portion indicates that the domain belongs to the domain, the intent is to troubleshoot the startup failure of the dedicated service with a confidence level of 0.96, and the search terms are the service name and related commands and service startup failure. The solution portion is null. Since the domain belongs to the domain, the structured product is routed to step S4.

[0041] In the retrieval generation layer, the retrieval generation module extracts the intent and search terms, performs a hybrid retrieval, and identifies candidate knowledge points in the operating system's knowledge base, such as the log viewing method for this proprietary service, a checklist of common startup failure configuration files, and steps for troubleshooting security policy conflicts. Since the candidate knowledge points are not empty, a solution containing step-by-step explanations and source citations is generated by the multimodal large language model and sent to step S5 along with the structured output. The overall confidence level is 0.98, reaching the first confidence threshold, and the solution is output as a pop-up window. In this example, the general large language model does not possess the log viewing method and security policy configuration path for this proprietary service; this information only exists in the local operating system knowledge base. Without the hybrid retrieval and secondary generation in step S4, the system would struggle to generate valuable answers. This demonstrates the ability of domain-specific paths to generate domain-specific answers through hybrid retrieval and secondary generation.

[0042] Example 2: Module Composition of the Recommendation Device This embodiment provides a retrieval enhancement and recommendation generation device that combines system events and intent prediction, corresponding to the above method. It is deployed on the same terminal device operating the target operating system. Figure 3 As shown, it includes an event monitoring module, an event aggregation and wake-up module, a multimodal reasoning module, a retrieval generation module, and a recommendation output feedback module; The event monitoring module is configured to continuously monitor multiple types of system event signals and output discrete event signal streams. Its inputs include process event sources at the operating system level, system resource acquisition interfaces, window manager interfaces, pseudo-terminal devices, and audio streams, and its output is discrete event signal streams.

[0043] The event aggregation wake-up module is configured to perform deduplication and cooling, sliding time window association and weighted scoring on discrete event signal streams, and capture transient context and assemble it into a wake-up packet when the total score reaches the wake-up threshold. Its input is discrete event signal stream and its output is wake-up packet. The multimodal reasoning module is configured to inject a wake-up packet into a multimodal large language model through a prompt word template for single-step reasoning and output a structured product. Its input is the wake-up packet, and its output is a structured product containing extracted information and conclusions.

[0044] The retrieval generation module is configured to perform a hybrid retrieval when the domain is classified as within the domain and generate a solution from a multimodal large language model. Its input is a structured product classified as within the domain, and its output is a list of candidate knowledge points and a product containing a complete solution.

[0045] The recommendation output feedback module is configured to output recommended content according to confidence level and write user confirmation feedback into the local long-term memory. Its inputs are structured products and secondary generated products, and its outputs are hierarchical recommendation display and writing to the local long-term memory.

[0046] Each of the above modules corresponds one-to-one with method steps S1 to S5. The modules are sequentially transmitted between each other through the aforementioned wake-up packets, structured products, and other data structures, together realizing an automated link from abnormal signals to solutions.

[0047] Example 3: Direct Output of General Path This embodiment illustrates the processing flow of skipping retrieval and directly outputting when the domain is classified as general. Consider the following input scenario: The terminal executes an installation command for a general software package and returns an error message indicating that the package cannot be located. In the event layer processing, the terminal anomaly monitoring detects error content in the standard error output stream, and the process monitoring detects that the package management process exits with a non-zero exit code. The event aggregation wake-up module associates the two events into the same event group. The base score for the process anomaly event is 0.6, and the base score for the terminal anomaly event is 0.5, for a total score of 1.1, reaching the wake-up threshold, and a wake-up decision is made. Transient context capture obtains a terminal screenshot containing the error text and a system status snapshot indicating the operating system version, memory and disk usage, which are assembled into a wake-up package and sent to step S3.

[0048] In the large-scale model inference layer, the multimodal large language model outputs structured products in a single inference iteration. The extracted information section provides key processes such as package management, error messages such as "unable to locate the package," exit code, and operating system version. The conclusion section provides secondary intents such as "general domain," "package installation failure with a confidence level of 0.91," and "software source configuration problem," and search terms such as "software source update" and "source list." The key difference from in-domain scenarios is that the solution section directly populates complete solution text, such as suggesting updating the software source list before re-installing and providing source configuration check suggestions, rather than null values. Because the domain is general, the structured products are directly routed to step S5, skipping the retrieval in step S4. The recommendation output feedback module extracts a confidence level of 0.91 and outputs it as a pop-up window. This type of general package installation problem belongs to general knowledge, which is fully covered by the parameterized knowledge of the multimodal large language model, and can be generated directly. Triggering a retrieval would increase latency and resource consumption, thus demonstrating the efficiency advantage of skipping the retrieval and directly outputting the general path.

[0049] The automatic selection of the two paths in both Embodiment 1 and this embodiment is determined by the multimodal large language model in step S3 based on the knowledge base coverage description and system environment information in a single inference. The determination is based on whether the abnormal text contains unique entities such as local proprietary component names, internal paths, and customized configurations. If they exist, they are classified as domain-specific and the retrieval path is followed; otherwise, they are classified as general and directly output. This ensures the recall quality of domain-specific issues while avoiding the indiscriminate retrieval overhead of general issues.

[0050] Example 4: Multi-source event fusion and speech signal enhancement This embodiment illustrates the aggregation and association capabilities of multi-source events within a sliding time window and the positive enhancement effect of voice signals on intent confidence. Consider the following input scenario: During the operation of an office software, an error dialog box indicating insufficient disk space pops up, while the microphone captures the user's voice expressing abnormality and confusion. In event layer processing, the window manager detects a new modal dialog box with a title matching the keyword "insufficient disk space," generating a window error event; the system resource monitoring reports that the remaining disk space is below a second threshold, generating a disk alarm event; the audio monitoring, through voice activity detection, keyword detection, and speech recognition processing, hits the trigger word, generating an audio event with accompanying transcribed text. The three event signals reach the event aggregation and wake-up module within the sliding time window and are aggregated into the same event group. In the wake-up scoring, the window error event has a base score of 0.3, the disk alarm event has a base score of 0.4, and the audio event has a base score of 1.0, for a total score of 1.7, reaching the wake-up threshold and being determined as a high-priority wake-up. Transient context capture obtains a screenshot of the office software interface containing the error dialog box and a system status snapshot indicating the remaining disk space, assembles them into a wake-up package, and sends it to step S3.

[0051] In the large model inference layer processing, the multimodal inference module injects event metadata, screen images, and system state snapshots containing speech-to-text transcription. The multimodal large language model outputs a structured product in a single inference iteration, indicating that the domain is within the domain, the intent is disk space cleanup under system storage management, and the confidence level is 0.97. This confidence level is higher than the 0.91 of the general path in Example 3. This is because the multimodal large language model detects the confused semantics and the intent to seek help when encountering an anomaly in the speech when processing audio-to-text transcription, which positively enhances the intent confidence. Simultaneously, the error dialog box in the screen image is a graphical interface element. The event layer can only report the dialog box with the title "Insufficient Disk Space" and the remaining disk space value, without understanding the complete semantics of the dialog box. The multimodal large language model confirms the complete text content within the dialog box through visual understanding, supplementing the graphical interface-level semantic information that the event layer cannot perceive. The structured product is then routed to step S4, where relevant knowledge points for disk cleanup are matched in the operation and maintenance knowledge base. A solution containing step-by-step operation guidance for disk viewing, directory statistics, and cache cleanup is generated and output as a pop-up window.

[0052] Example 5: Accumulated Wake-up Mechanism and Anti-Interference Strategy This embodiment explains, from the opposite perspective of when the system should remain silent, how the deduplication of the cooling window and the cumulative wake-up scoring in step S2 avoid frequent interruptions during the user's self-processing. Consider the following input scenario: The terminal continuously executes syntax checking commands for a configuration file and returns syntax errors. The user repeatedly switches between the terminal and the editor to try to fix it. This pattern repeats four times within two minutes, with each interval insufficient for the cooling window duration. Each error line number is different, but none fails the syntax check. The key difference between this scenario and the aforementioned general path scenario is that the user is actively trying to fix it. The different error line numbers for each command indicate that the user is indeed adjusting the configuration line by line. If the system pops up a recommendation window upon the first failure, it will interrupt the user's workflow, constituting harassment rather than assistance.

[0053] In event-level processing, the event aggregation wake-up module receives consecutive non-zero exit code event signals from the same process within a cooling window, and the extracted deduplication keys are identical. During the first three arrivals, the event aggregation wake-up module performs deduplication cooling. Although a single event has reached the base score of 0.6, the cooling window prevents the wake-up evaluation process, and the system remains silent during this period, without displaying any prompts. Simultaneously, the deduplication key's repetition count accumulates to one, two, and three with each arrival, and the signal strength continues to accumulate in the background. Upon the fourth arrival, the actual score of the event is calculated according to the aforementioned actual score formula, which is the sum of the base score of 0.6 and the repetition count of four multiplied by a coefficient of 0.2, i.e., 1.4. This reaches the wake-up threshold of 1, and the cooling window can no longer suppress the accumulated wake-up demand, automatically triggering wake-up.

[0054] In subsequent processing, transient context capture obtains terminal screenshots and system state snapshots containing error output, assembles them into a wake-up packet, and sends it to step S3. The multimodal large language model receives an event timeline containing four repeated failure records, identifies the repeated trial-and-error operation pattern from the repetition count, outputs a structured product whose domain is classified as general and whose intent is to check for configuration syntax errors, and directly routes it to step S5, outputting recommended content containing standard configuration examples in a pop-up window. This embodiment, together with Embodiments 1 and 4, covers the complete strategy space of the wake-up decision in step S2: Embodiments 1 and 4 verify the fast path of responding immediately upon detecting an anomaly, while this embodiment verifies the anti-interference strategy of remaining silent during user self-processing. The cooling window suppresses wake-up during the first three failures, giving the user sufficient time to self-repair; the cumulative count makes the weight of the same anomaly continuously increase over time, naturally exceeding the threshold and initiating intervention on the fourth time. Both strategies are uniformly implemented within a single event aggregation wake-up module through the same deduplication cooling and cumulative scoring mechanism, without introducing additional rule branches or pattern recognition logic.

[0055] In some embodiments, the present invention also provides an electronic device, such as... Figure 4 As shown, the electronic device includes one or more processors and a storage device. The storage device stores one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the retrieval enhancement and recommendation generation method combining system events and intent prediction as described in any of the foregoing embodiments. The processor can be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, field-programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The storage device can include volatile or non-volatile storage media such as read-only memory, random access memory, flash memory, hard disk, solid-state drive, etc., or combinations of the above storage media. The electronic device may also include input devices and output devices. The input devices may include microphones, keyboards, mice, etc., and the output devices may include displays, speakers, etc., to carry out audio acquisition in the aforementioned event monitoring and desktop display in the aforementioned hierarchical recommendation.

[0056] In some embodiments, the present invention also provides a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the method described in any of the foregoing embodiments. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not assembled into the electronic device. The computer-readable storage medium may be any combination of one or more computer-readable media, and the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may, for example, be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof; more specific examples of a computer-readable storage medium may include an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or a suitable combination of the foregoing.

[0057] It should be noted that, in this document, the terms "comprising," "including," and any other variations are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Specific examples have been used in this document to illustrate the principles and implementation methods of the present invention. These examples are merely for the purpose of helping to understand the method and core ideas of the present invention. The above descriptions are only preferred embodiments of the present invention. It should be pointed out that, due to the limitations of written expression and the objective existence of infinite specific structures, those skilled in the art can make several improvements, modifications, or variations without departing from the principles of the present invention, and can also combine the above technical features in an appropriate manner. These improvements, modifications, variations, or combinations, or the direct application of the concept and technical solution of the present invention to other situations without modification, should all be considered within the scope of protection of the present invention.

Claims

1. A retrieval enhancement and recommendation generation method combining system events and intent prediction, characterized in that, include: S1 continuously monitors multiple types of system event signals and outputs discrete event signal streams; S2, perform deduplication and cooling on the discrete event signal stream and associate it with a sliding time window to obtain event groups, weight score the event groups, and capture transient context and assemble it into a wake-up packet when the total score reaches the wake-up threshold; S3, the wake-up package is injected into the multimodal large language model through the prompt word template for single reasoning, and a structured product containing extracted information, conclusions and solutions is output. The conclusions include domain affiliation, intent and keywords. S4. Routing is performed based on the domain affiliation. The path within the domain performs a hybrid retrieval of vectors and keywords. After the retrieval results are reordered, a solution is generated a second time by the multimodal large language model. The general path directly adopts the solution output by the single inference. S5 outputs recommended content according to confidence level and writes user confirmation feedback to the local long-term memory.

2. The retrieval enhancement and recommendation generation method combining system events and intent prediction according to claim 1, characterized in that, The continuous monitoring of multiple types of system event signals includes monitoring at least two of the following five types of event signals: Process exception event signals are generated when the target process exits with a non-zero exit code, receives an abnormal termination signal, or remains unresponsive for more than a preset duration by subscribing to process exit events through the kernel process event interface. System resource event signals are generated by periodically collecting processor usage, memory usage, and disk space remaining, and when they exceed the corresponding thresholds. Window exception event signals are generated when the title or class name of a new window matches a preset set of exception keywords, detected through the window manager interface. Terminal abnormal event signal, which is generated when the standard error output stream of the associated pseudo terminal device is monitored and a content is found or a preset error pattern is matched. The audio event signal sequentially performs speech activity detection, keyword detection, and speech recognition on the microphone audio stream. When a trigger word is hit, it generates and transcribes the text.

3. The retrieval enhancement and recommendation generation method combining system events and intent prediction according to claim 1, characterized in that, S2 includes: For each arriving event signal, extract its event type field and associated information and combine them into a deduplication key. Within the preset cooling window, do not initiate a new wake-up decision for event signals with the same deduplication key that arrive repeatedly, and accumulate the repetition count of the deduplication key. Within a preset sliding time window, different types of event signals that belong to the same process or arrive within the same time window are merged into a single event group. For each event signal in the event group, the actual score is calculated based on the preset base score and repetition count of its event type, and the sum of the actual scores in the group is taken as the total score of the event group. When the total score reaches the wake-up threshold, the wake-up condition is determined to be met.

4. The retrieval enhancement and recommendation generation method combining system events and intent prediction according to claim 1, characterized in that, When the wake-up condition is met, the desktop screenshot interface is called to capture the screen image of the currently active display, and the operating system version, processor, memory, disk usage and active process list are collected as a system status snapshot. The screen image, system status snapshot and event metadata of the event group are assembled into the wake-up packet. After the wake-up packet is sent out, the cumulative status of the current event group and each deduplication key is cleared, and subsequent event signals are accumulated from zero again.

5. The retrieval enhancement and recommendation generation method combining system events and intent prediction according to claim 1, characterized in that, The prompt word template includes a system role and knowledge base domain information area, a current anomaly context area, and an output requirement area; S3 fills the predefined role description text and local knowledge base coverage description into the system role and knowledge base domain information area, fills the event metadata, screen image, and system status snapshot into the current anomaly context area, and fills the limited instructions output according to the three-part structure of extracted information, conclusion, and solution into the output requirement area; The multimodal large language model uses event type as an attention-guided signal to focus on regions and semantic paragraphs related to the event type in screen images and text.

6. The retrieval enhancement and recommendation generation method combining system events and intent prediction according to claim 1, characterized in that, The paths within the domain include: The intents are sorted in descending order of confidence level. A preset number of intents are selected, their category texts are concatenated into a compound semantic query statement, and a preset number of keywords are concatenated into a keyword query. Intents with confidence levels below a preset value are discarded. The composite semantic query statement is encoded by an embedded model and then subjected to cosine similarity retrieval in the local vector knowledge base. The keyword query is then subjected to exact matching retrieval in the inverted index knowledge base. After deduplicating and merging the two search results, they are weighted and sorted according to normalized scores. Entries with fusion scores below a preset threshold are filtered out, and the top few are selected as candidate knowledge points for secondary generation.

7. A retrieval enhancement and recommendation generation device that combines system events and intent prediction, characterized in that, include: The event monitoring module is configured to continuously monitor multiple types of system event signals and output discrete event signal streams; The event aggregation wake-up module is configured to perform deduplication and cooling on the discrete event signal stream and associate it with a sliding time window to obtain event groups, weight score the event groups, and capture transient context and assemble them into a wake-up packet when the total score reaches the wake-up threshold. The multimodal reasoning module is configured to inject the wake-up package into the multimodal large language model through the prompt word template for single reasoning, and output a structured product containing extracted information, conclusions and solutions, wherein the conclusions include domain affiliation, intent and keywords; The retrieval generation module is configured to perform routing based on the domain affiliation. Within the domain, the path performs a hybrid retrieval of vectors and keywords, and after reordering the retrieval results, the solution is generated a second time by the multimodal large language model. The general path directly adopts the solution output by the single inference. The recommendation output feedback module is configured to output recommended content according to confidence level and write user confirmation feedback to the local long-term memory.

8. The retrieval enhancement generation recommendation system combining system events and intent prediction according to claim 1, characterized in that, The event aggregation wake-up module is further configured to: extract deduplication keys for each event signal; within a preset cooling window, not initiate a new wake-up determination for event signals with the same deduplication key that arrive repeatedly, and accumulate their repetition count; calculate the actual score based on the preset base score of the event type and the repetition count; compare the sum of the actual scores within the group as the total score of the event group with the wake-up threshold; and clear the current event group and the accumulated state of each deduplication key after the wake-up packet is sent out.

9. An electronic device, characterized in that, The device includes: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the retrieval enhancement generation recommendation method combining system events and intent prediction according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the retrieval enhancement generation recommendation method that combines system events and intent prediction according to any one of claims 1 to 6.