{
"scores": {
"logical_clarity": 9,
"factual_accuracy": 10,
"actionability": 8,
"root_cause_insight": 7
},
"justifications": {
"logical_clarity": "The solution follows a standard 'check-install-verify' workflow, making it logically clear.",
"factual_accuracy": "The use of `dnf install` and the package name `flash-plugin` is entirely correct for a CentOS system.",
"actionability": "It provides executable commands but lacks a final step to verify if the Flash plugin is enabled in the browser.",
"root_cause_insight": "It solves the installation issue but doesn't elaborate on the root cause of why the plugin was missing initially."
},
"final_score": 8.5,
"summary": "A high-quality and viable solution, though slightly lacking in verifiability and deep analysis."
}
AutoOS-Healer智愈内核🧠⚙️
介绍
智愈内核 (Kernel Healer) 是一个为“中国研究生操作系统开源创新大赛”设计的AIOps项目。我们创造性地将大型语言模型(LLM)与操作系统运维(O&M)深度融合,构建了一个具备感知-诊断-决策-执行-验证全闭环能力的自主智能代理,旨在解决现代复杂系统中故障排查的挑战。
🌟 核心亮点 (Core Features)
🤖 协作式多智能体架构 (Collaborative Multi-Agent Architecture)
🧠 RAG 知识增强推理 (RAG-Powered Knowledge-Augmented Reasoning)
⚡️ 高效两阶段智能分诊 (Efficient Two-Stage Intelligent Triage)
🔄 全闭环自愈流程 (End-to-End Self-Healing Loop)
🔬 科学的量化评估 (Scientific & Quantifiable Evaluation)
🏗️ 系统架构 (Architecture)
本项目的核心是基于 LangGraph 构建的协作式多智能体系统。工作流在四个关键角色的智能体之间循环迭代,直至问题解决。
🚀 快速开始 (Getting Started)
1. 环境准备 (Prerequisites)
2. 安装 (Installation)
克隆本代码库:
创建并激活Python虚拟环境:
安装依赖:
配置API密钥:
.env.example
文件为.env
:.env
文件,填入您的API密钥:下载向量数据库的嵌入模型
nomic-embed-text:latest
。auto-os-healer/multi_agent/multi_agent.py
文件中设置Embeddings_model
属性。🛠️ 如何使用 (Usage)
启动主程序,系统将开始实时监控指定的系统日志。当检测到潜在故障时,将自动触发修复流程,你将在log路径下看到实时采集的日志以及分类过后的日志列表,针对于错误日志,我们会将修复方案反馈在/auto-os-healer/solution_realtime这个文件夹下面,并且每个异常日志的处理建议会单独形成一个markdown文件。
auto-os-healer/example_solution.md
文件就是一个处理过后生成的一个样例markdown文件。✅ 运行测试 (Testing)
我们提供了一套科学的评估脚本来验证系统的核心能力。
故障日志识别测试
在
auto-os-healer/logs/test
目录下,有原始的LogHub的日志记录,运行log_classifier_pipeline_test_linux.py
文件,修改里面的日志路径,便可对指定路径的日志进行故障识别。我们针对
Linux_2k.log
进行了再次的二分类标注,因此针对上述分类过后的结果,运行auto-os-healer/logs/data/verify.py
文件,便可得出分类的准确性。修复方案生成质量评估
我们使用
LLM-as-a-Judge
的方法来评估生成方案的质量。脚本位于llm_judge/
目录下。.env
文件中配置了裁判模型(如DeepSeek)的API Key。📈 未来展望 (Roadmap)
👁️ 从“文本”到“多模态”的感知进化:
🌱 从“被动学习”到“主动进化”的能力跃升:
❤️ 致谢 (Acknowledgements)