Back to All Projects
Case Study·Applied AI

Runbook Copilot

RAG & agent-based infrastructure incident triage system.

A retrieval-augmented, confidence-gated agentic system built for infrastructure incident triage over real Windows Server, Active Directory, Hyper-V, and Proxmox documentation. Grounds remediation guidance in verified enterprise sources instead of raw model recall.

PythonOllamaQdrantLangGraphHuggingFaceModalFastAPIRAGASLlama 3.2 1B
GitHub RepositoryInternal enterprise deployment · Production Hardened
95.5%
Classifier Accuracy
86.6%
Baseline Defect Traced From
7 / 12
Adversarial Bypasses Closed
Human-in-the-Loop
Execution Safeguard
Interactive 3D System TopologyDraggable Procedural Simulation
Mounting Agent Graph 3D...
Problem Context & Objectives
  • •Enterprise IT engineers face ticket fatigue and slow resolution times when triaging complex infrastructure anomalies across disparate hypervisors and directories.
  • •Generic LLMs hallucinate CLI commands and lack real domain runbook context, risking destructive operations on live servers.
  • •Automated triage systems often fail on adversarial inputs or ambiguous tickets where model confidence is dangerously misplaced.
Architectural Execution & Methodology
  • Vectorized real Windows Server, Active Directory, Hyper-V, and Proxmox documentation in Qdrant with hybrid retrieval, grounding every response in verified runbooks.
  • Engineered a confidence-gated LangGraph agent with deterministic branching: Runbook Search, System Status Verification, and Human Escalation.
  • Enforced immediate human escalation upon detection of destructive CLI commands (e.g., disk wipe, volume drops, forced reboots) or low-confidence retrieval score.
  • Conducted adversarial red-teaming: identified 7 of 12 gate bypasses (including prompt injections and role hijacking) and patched every vector.
  • Fine-tuned a Llama 3.2 1B incident classifier with QLoRA (4-bit NF4) on Modal cloud GPUs. Traced an initial 86.6% accuracy plateau to a subtle training labeling defect rather than data scarcity, resolving it to achieve 95.5% held-out accuracy with a leak-proof source-level split.
  • Constructed a RAGAS evaluation harness on real-world-grounded test tickets to quantitatively track faithfulness, answer relevancy, and context precision.
  • Architected a local-first stack (Ollama, Qdrant, HuggingFace) with optional token-authenticated GPU Ollama deployment on Modal, switchable via a single environment variable, served via FastAPI with multi-turn session memory.
Deliverables & Measured Impact
  • ✓Elevated classifier accuracy from 86.6% to 95.5% held-out accuracy.
  • ✓Zero un-escalated destructive commands executed across rigorous red-team test suites.
  • ✓100% reproducible open-source architecture with modular local-or-cloud inference flexibility.