diff --git a/.gitignore b/.gitignore index 29f655d..5d91ced 100644 --- a/.gitignore +++ b/.gitignore @@ -17,9 +17,10 @@ /start-jdk21.sh /PROJECT_README.md /Java后端开发规范.md +/*.cmd /CORS_Security_Review.md /MCP_Agent_AI升级计划.md - +/*.ps1 /*方案.md /*设计.md /*.py @@ -29,4 +30,8 @@ /StandaloneQwenTest.java /QWEN_INTEGRATION_COMPLETE.md /dependencies.txt -/AI_REPAIR_INTEGRATION.md \ No newline at end of file +/AI_REPAIR_INTEGRATION.md +/AI_MANAGEMENT_UI.md +/BATCH_API_OPTIMIZATION.md +/cookies.txt +/embedding-api-commands.md \ No newline at end of file diff --git a/pom.xml b/pom.xml index 5b59771..b226203 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,12 @@ spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-thymeleaf + + +
+

🚀 快速操作

+
+ +
+
+ + + +
+
+ 💡 向量化任务将处理所有历史工单数据,转换为向量格式便于AI检索 +
+
+ + +
+

📊 系统状态

+
+ Embedding服务 + + + 检查中... + +
+
+ 向量化服务 + + + 正常运行 + +
+
+ 最后更新 + - +
+
+ + +
+

⚡ 向量化进度

+
+
+
+
0%
+
+
+
+
+ 0 + 已处理 +
+
+ 0 + 总数量 +
+
+
+ 任务状态 + 空闲 +
+
+ + +
+

📈 性能指标

+
+ 处理吞吐量 + 0 项/秒 +
+
+ 平均处理时间 + 0 ms +
+
+ 连接池状态 + 0/0 +
+
+ 缓存命中率 + 0% +
+
+ + +
+

📝 操作日志

+
+
+ [系统] AI管理系统已启动,等待操作... +
+
+
+ + +
+
+ + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/ai-management/error.html b/src/main/resources/templates/ai-management/error.html new file mode 100644 index 0000000..e68c761 --- /dev/null +++ b/src/main/resources/templates/ai-management/error.html @@ -0,0 +1,87 @@ + + + + + + AI系统管理 - 错误页面 + + + +
+
⚠️
+

系统错误

+

+
+ 返回首页 + 重新登录 +
+
+ + \ No newline at end of file diff --git a/src/main/resources/templates/ai-management/login.html b/src/main/resources/templates/ai-management/login.html new file mode 100644 index 0000000..c2ff9a9 --- /dev/null +++ b/src/main/resources/templates/ai-management/login.html @@ -0,0 +1,465 @@ + + + + + + AI系统管理 - 用户登录 + + + +
+
+

🤖 AI系统管理

+

DevOps运维管理系统 - AI功能管理界面

+
+ +
+ 💡 温馨提示: +
• UserId登录:无需密码,输入任意用户标识即可登录 +
• 测试建议:可以使用 admintestdemo 等 +
• 或者直接输入您的姓名/工号等标识 +
+ +
+
+ +
+
+ + + +
+ + + + + + + + + +
+ +
+
+ 正在登录中... +
+
+ + + + \ No newline at end of file diff --git a/src/test/java/com/chinaweal/youfool/devops/ai/migration/VectorizationPerformanceIntegrationTest.java b/src/test/java/com/chinaweal/youfool/devops/ai/migration/VectorizationPerformanceIntegrationTest.java index ce3e25b..349bb45 100644 --- a/src/test/java/com/chinaweal/youfool/devops/ai/migration/VectorizationPerformanceIntegrationTest.java +++ b/src/test/java/com/chinaweal/youfool/devops/ai/migration/VectorizationPerformanceIntegrationTest.java @@ -50,7 +50,7 @@ class VectorizationPerformanceIntegrationTest { void testVectorizationConfiguration() { // 创建向量化服务实例进行配置测试 RepairVectorizationService service = new RepairVectorizationService( - null, null, null, null); + null, null, null, null, null); // 测试性能指标获取(默认值) Map metrics = service.getPerformanceMetrics(); @@ -75,7 +75,7 @@ class VectorizationPerformanceIntegrationTest { @DisplayName("测试性能报告生成") void testPerformanceReportGeneration() { RepairVectorizationService service = new RepairVectorizationService( - null, null, null, null); + null, null, null, null, null); String report = service.getPerformanceReport(); @@ -251,7 +251,7 @@ class VectorizationPerformanceIntegrationTest { }; RepairVectorizationService service = new RepairVectorizationService( - null, null, null, null); + null, null, null, null, null); Map metrics = service.getPerformanceMetrics(); for (String expectedMetric : expectedMetrics) {