TL;DR
This paper introduces Nissist, an AI copilot designed to help On-Call Engineers (OCEs) mitigate complex cloud incidents more efficiently. By leveraging Large Language Models (LLMs) to process unstructured troubleshooting guides (TSGs) and incident history, Nissist creates a knowledge base that provides proactive, step-by-step mitigation suggestions, significantly reducing the time and effort required from human operators.
What Problem Does This Paper Address?
Operating large-scale cloud services like Microsoft's involves constant vigilance against incidents that can disrupt services, leading to financial losses and reputational damage. While automated systems handle many common issues, complex incidents still demand the expertise of On-Call Engineers (OCEs). To aid OCEs, teams compile Troubleshooting Guides (TSGs) containing crucial knowledge. However, these TSGs are often unstructured, incomplete, and difficult to navigate, leading to "on-call fatigue" and reduced productivity, especially for new hires. Existing automated solutions struggle with the nuanced nature of these complex incidents, and while some research has focused on extracting knowledge from TSGs, the inherent messiness of the documentation limits their effectiveness. This paper aims to bridge this gap by creating a system that can intelligently interpret and utilize this wealth of unstructured knowledge to proactively assist OCEs.
Methods
Nissist employs a multi-agent system powered by LLMs to tackle incident mitigation. The core of the system involves:
- Knowledge Base Construction: Unstructured TSGs and historical incident data are processed by LLMs. The TSGs are first reformatted into structured components (background, terminology, FAQ, flow, appendix) to improve comprehension. This structured information, along with incident mitigation history, is then used to build a knowledge base composed of discrete "knowledge nodes." Each node contains an "intent" (purpose), an "action" (what to do), and a "linker" (connecting to the next step's intent). This node-based structure allows for more precise retrieval and the discovery of cross-TSG mitigation flows.
- Multi-Agent System: This system comprises several specialized agents:
- Intent Interpreter: Understands the OCE's query and clarifies their intent.
- Node Retriever & Selector: Fetches relevant knowledge nodes from the knowledge base based on the clarified intent and selects the most pertinent ones.
- Action Planner: Generates actionable steps by combining information from selected nodes and conversation history. This is a semi-automated process, acknowledging that full automation can be risky for complex incidents.
- Execution Engine: Executes automated actions using available plugins, APIs, or LLM-based code generators.
- Post Processor: Utilizes a fine-tuned LLM (LLaMA2) to review and correct planned strategies based on cloud domain expertise, ensuring more reliable outcomes.
The system operates in an iterative manner, with the execution engine providing insights that feed back into the next round of action planning, mimicking a human's troubleshooting loop.
Datasets
The paper utilizes internal Microsoft data, including:
- Unstructured Troubleshooting Guides (TSGs): The primary source of knowledge for incident mitigation.
- Incident Mitigation History: Records of past incidents and how they were resolved, used to supplement and update TSG knowledge.
No new benchmarks were introduced; instead, the system was evaluated on real-world incidents.
Key Insights and Ideas
- Structured Knowledge from Unstructured Data: LLMs are powerful tools for transforming messy, human-readable TSGs into a structured, machine-interpretable knowledge base. This unlocks the potential of existing documentation that was previously hard to leverage programmatically.
- Node-Based Knowledge Representation: Representing knowledge as discrete, interconnected nodes with defined intents and actions allows for more granular retrieval and the discovery of complex, multi-step mitigation flows, even across different TSGs.
- Semi-Automated Planning for Safety: Recognizing the inherent complexity and potential risks of cloud incidents, Nissist adopts a semi-automated approach to action planning. This balances the efficiency of automation with the critical judgment of human operators, preventing potentially harmful automated actions.
- Cross-TSG Knowledge Discovery: The structured knowledge base enables the system to identify and suggest mitigation steps that might span multiple TSGs, a capability that is difficult for humans to achieve manually due to the sheer volume of documentation.
Key Results
User experiments involving twenty OCEs and five incidents (categorized as simple or hard) demonstrated significant improvements:
- Time to Mitigate (TTM) Reduction: Nissist achieved a remarkable TTM reduction of 98.93% for simple incidents and 94.85% for hard incidents compared to manual mitigation.
- Success Rate (SR): Nissist achieved a full automation SR of 77.19% for simple incidents and 52.63% for hard incidents.
- Human Intervention (IR): Even for hard incidents, human intervention was minimal, averaging 11.28% for simple incidents and 15.79% for hard ones, indicating that OCEs primarily handle the most complex or novel aspects.
- The system also reduced the number of turns required for mitigation.
Limitations and Future Work
- Limitations: The paper acknowledges that not all actions can be automatically executed due to the limitations of the execution engine. This necessitates human intervention for certain steps. The effectiveness of the system is also dependent on the quality and completeness of the initial TSGs and incident history.
- Future Work: The authors suggest further enhancing the system's ability to handle more complex incidents, improving the execution engine's capabilities, and exploring more advanced LLM-based planning strategies. The work also points towards the potential for Nissist to assist in documenting new TSGs by identifying gaps or suggesting improvements based on its knowledge base.
Summary updated