feat(analytics): Enhance AnalystQueryPage with template and cache hit indicators
- Updated `AnalystQueryPage` to display tags for template hits and cache hits, improving user feedback on query performance. - Adjusted SQL result label to streamline information presentation. - Enhanced documentation to reflect the latest testing baseline with 804 passed tests, indicating improved stability and functionality across the application. This update significantly enhances the user experience by providing clearer insights into query processing and results.
This commit is contained in:
+11
-6
@@ -20,7 +20,12 @@
|
||||
③ Core 模拟库(L0)
|
||||
.\scripts\core\reset.ps1
|
||||
→ 创建 jinrong_core + 28 客户 / 12 产品 / 持仓交易种子
|
||||
(风控演示:再执行 scripts/demo/prepare_risk_demo.sql 刷新测评日期 · PRD §10.2)
|
||||
(风控演示:`.\scripts\demo\prepare_all.ps1` 或 `prepare_risk_demo.sql` · PRD §10.2)
|
||||
|
||||
④b 数据分析问数(可选)
|
||||
mysql … < scripts/agent/migrate-analyst-d07-d11.sql # 若未建 analyst 资产表
|
||||
mysql … < scripts/agent/seed-analyst-metric-dict.sql
|
||||
mysql … < scripts/agent/seed-analyst-query-templates.sql # 模板缓存演示
|
||||
|
||||
④ Agent 共用底座(若库未建)
|
||||
mysql -u root -p < docs/项目框架设计/表设计/01-mysql-共用底座.sql
|
||||
@@ -39,7 +44,7 @@
|
||||
uvicorn app.main:app --reload
|
||||
GET http://127.0.0.1:8000/health → {"status":"ok"}
|
||||
cd web && npm run dev → 5173 代理 8000
|
||||
python -m pytest → 786 passed 1 skipped
|
||||
python -m pytest → 804 passed 1 skipped
|
||||
|
||||
RBAC 联调账号:scripts/dev/rbac-seed-reference.md
|
||||
```
|
||||
@@ -54,13 +59,13 @@ RBAC 联调账号:scripts/dev/rbac-seed-reference.md
|
||||
Client → Gateway(JWT/RBAC) → api/chat → agent_service(LangGraph) → Tools → 存储 → 响应 + audit_log
|
||||
```
|
||||
|
||||
当前:**风控全链路 + Wave 0 共用底座 + 代销平台 v0.1 + AL-09 + 客服 S2 Wave3 部分 + 前端 P0(2026-09-10,`merger`)**。**测试基线:`python -m pytest` → 786 passed 1 skipped** · **`web/` 19 Vitest 绿**。
|
||||
当前:**风控全链路 + Wave 0 共用底座 + 代销平台 v0.1 + AL-09 + 客服 S2 Wave3 + 数据分析 D-06 + 前端 P0 Demo(2026-09-10,`merger`)**。**测试基线:`python -m pytest` → 804 passed 1 skipped** · **`web/` 19 Vitest 绿 · `npm run build` 绿**。
|
||||
|
||||
**下一步(统筹 P1):** 接口契约发群 · 风控前端 polish(台账筛选)· **客服** L1/L2 Redis 热读(风控不做 L1/L2)· customer 阈值 push(未做)。
|
||||
**下一步(统筹 P1):** merger commit · 20 题 battery · 客服验收 · analyst D-09/N-03/N-07 · **客服** L1/L2 Redis(风控不做 L1/L2)。
|
||||
|
||||
**本机已就位状态(2026-09-10):** `.env` 含 `REDIS_URL=redis://127.0.0.1:6380/0`;pytest **786 绿**;客户 Chat SSE 已接 `prepare_customer_stream`。
|
||||
**本机已就位状态(2026-09-10):** `.env` 含 `REDIS_URL=redis://127.0.0.1:6380/0`;pytest **804 绿**;问数 D-06 结果+模板缓存已接;前端四角色 Demo 可 walkthrough。
|
||||
|
||||
**本机已知坑:** `mysql.exe` 不在 PATH;`reset.ps1` 自动化用 `MYSQL_PWD`;**6379 常被 Windows Redis 3.x 占用** → 项目 Docker 映射 **6380**;Milvus 中文路径需英文 `MILVUS_URI`;重装环境后 `python -c "import jose, redis"` 自检。
|
||||
**本机已知坑:** `mysql.exe` 不在 PATH;`reset.ps1` 自动化用 `MYSQL_PWD`;**6379 常被 Windows Redis 3.x 占用** → 项目 Docker 映射 **6380**;Milvus 中文路径需英文 `MILVUS_URI`;问数模板需灌 `seed-analyst-query-templates.sql` 才见蓝色「模板命中」标签;`battery_report.json` **不入库**(`.gitignore`)。
|
||||
|
||||
------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user