Revamp documentation structure in mkdocs.yml by reorganizing navigation for improved accessibility. Remove outdated content from previous sections and introduce new topics including detailed guides on assistant management, configuration options, and tool integrations. Enhance API reference documentation with comprehensive error codes and WebSocket protocol details. Add new sections for automated testing, data analysis, and knowledge base management, ensuring a cohesive and user-friendly documentation experience.

This commit is contained in:
Xin Wang
2026-03-01 22:38:50 +08:00
parent 6a46ec69f4
commit 2418df80e5
33 changed files with 3664 additions and 693 deletions

View File

@@ -0,0 +1,59 @@
# 自动化测试
自动化测试帮助评估助手质量,确保对话效果符合预期。
## 概述
![自动化测试](../images/autotest.png)
## 测试类型
### 固定测试
预设问答对进行批量测试:
- 预先准备测试用例
- 支持期望答案对比
- 显示通过/失败状态
### 智能测试
AI 自动生成测试用例:
- 基于知识库内容生成问题
- 多角度覆盖测试
- 发现潜在问题
## 创建测试
### 步骤
1. 进入 **自动化测试** 页面
2. 点击 **新建测试**
3. 选择测试类型
4. 选择要测试的助手
5. 配置测试参数
6. 启动测试
### 测试配置
| 参数 | 说明 |
|------|------|
| 并发数 | 同时进行的测试数量 |
| 超时时间 | 单次对话超时限制 |
| 评分阈值 | 判断通过的分数字 |
## 测试结果
### 评估指标
| 指标 | 说明 |
|------|------|
| 准确率 | 回答正确的比例 |
| 完整度 | 回答信息是否完整 |
| 相关度 | 回复与问题的相关性 |
| 响应时间 | 平均回复耗时 |
### 查看详情
- 单条测试详情
- 错误分析
- 改进建议