feat: 前端迁移至Vue并添加RAGAS综合评估报告
主要变更: - 前端框架从React迁移到Vue 3 - 添加RAGAS系统综合评估报告(8系统全维度对比) - 添加Excel系统深度分析、文本系统对比等分析报告 - 新增原始数据加载服务和API端点 - 更新Dashboard文档和TODO进度追踪 评估报告亮点: - ZHTv2-Excel综合性能最佳(0.6271) - KBS系统答案质量最高(correctness=0.7058) - ZHTv2相比v1提升40%+,成功追平KBS - Text vs Excel构建形式深度对比分析 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1933bb3dcb
commit
b023af2b47
72 files changed
+5307
-5722
No files matched your search
+1
-69
@@ -83,21 +83,6 @@ cuishou-rag-v2/
|
||||
│ └── models/
|
||||
│ └── unified.py # 统一数据模型
|
||||
│
|
||||
├── frontend/ # 前端应用
|
||||
│ ├── src/
|
||||
│ │ ├── pages/ # 页面组件
|
||||
│ │ │ ├── OverviewPage.tsx # 全局概览
|
||||
│ │ │ ├── ComparisonPage.tsx # 系统对比
|
||||
│ │ │ ├── VersionComparePage.tsx # 版本对比 ⭐
|
||||
│ │ │ └── QuestionPage.tsx # 问题横评
|
||||
│ │ ├── components/ # 组件
|
||||
│ │ │ └── layout/Layout.tsx # 主布局
|
||||
│ │ ├── services/ # API 封装
|
||||
│ │ │ └── api.ts
|
||||
│ │ └── types/ # 类型定义
|
||||
│ │ └── index.ts
|
||||
│ └── package.json
|
||||
│
|
||||
├── data/
|
||||
│ ├── fullResult/ # 评估结果(实时读取)
|
||||
│ └── test_sets/ # 测试集数据
|
||||
@@ -126,26 +111,6 @@ python -m uvicorn src.api.main:app --host 0.0.0.0 --port 8000 --reload
|
||||
|
||||
API 文档:`http://localhost:8000/docs`
|
||||
|
||||
### 启动前端
|
||||
|
||||
```bash
|
||||
# 进入前端目录
|
||||
cd frontend
|
||||
|
||||
# 安装依赖(首次)
|
||||
npm install
|
||||
|
||||
# 启动开发服务器
|
||||
npm run dev
|
||||
```
|
||||
|
||||
前端将运行在:`http://localhost:5173` 或 `http://localhost:5174`
|
||||
|
||||
### 访问应用
|
||||
|
||||
在浏览器中打开:`http://localhost:5174`
|
||||
|
||||
即可看到完整的 RAG 评估展示界面。
|
||||
|
||||
---
|
||||
|
||||
@@ -212,34 +177,6 @@ GET /api/questions/{id}/rankings # 系统排名
|
||||
|
||||
---
|
||||
|
||||
## 📈 数据示例
|
||||
|
||||
### ZHT vs ZHTv2 版本对比结果
|
||||
|
||||
```
|
||||
整体得分:
|
||||
ZHT (Text): 42.41%
|
||||
ZHTv2 (Text): 60.94%
|
||||
整体提升: +43.69% ✅
|
||||
|
||||
各指标改进:
|
||||
Context Precision: +41.2% (0.60 → 0.85)
|
||||
Context Recall: +86.1% (0.40 → 0.74) ⭐
|
||||
Faithfulness: +13.6% (0.55 → 0.63)
|
||||
Answer Relevance: +46.0% (0.57 → 0.83)
|
||||
Answer Correctness: +46.6% (0.42 → 0.61)
|
||||
|
||||
改进最明显的问题:
|
||||
q001: +93.34% (0.06 → 0.99) ⭐⭐⭐
|
||||
q006: +40.69% (0.06 → 0.46)
|
||||
q004: +29.71% (0.07 → 0.37)
|
||||
|
||||
退化的问题:
|
||||
q002: -14.87% (0.55 → 0.40)
|
||||
q007: -6.24% (0.59 → 0.52)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🎯 使用场景
|
||||
|
||||
@@ -317,12 +254,7 @@ GET /api/questions/{id}/rankings # 系统排名
|
||||
- ✅ 丰富的可视化
|
||||
- ✅ 用户友好的界面
|
||||
|
||||
**项目状态:已完成 ✅**
|
||||
|
||||
**当前运行状态:**
|
||||
- 后端:✅ http://localhost:8000
|
||||
- 前端:✅ http://localhost:5174
|
||||
|
||||
---
|
||||
|
||||
开发完成日期:2026-01-08
|
||||
开发完成日期:2026-01-08
|
||||
Reference in new issue
Block a user