|
|
61db0aa9b8
|
feat: 对话摘要+段落按需读取+think标签解析修复
- chat.py: ChatSession 新增 summary/summary_up_to_message_id 字段
- rag_service.py: Prompt 支持历史摘要+最近5轮原文拼接
- model_service.py: 新增 summarize() 方法,复用已启用模型生成摘要
- chat_service.py: 集成对话历史传递,8轮后触发摘要生成
- feishu_service.py: 段落级按需读取,按标题匹配+关键词打分+top5文档
摘要策略:
- 保留最近5轮原文保证追问连续性
- 更早历史由模型压缩成摘要(<=300字)
- 摘要失败不阻断主流程
飞书读取优化:
- 每个知识库最多读5个相关文档
- 每文档提取top10相关段落
- 按原文顺序拼接,不截断
Fix: _extract_openai_answer 重命名为 _extract_gemini_answer
避免同名函数覆盖导致MiniMax模型被错误解析为Gemini响应
|
2026-07-08 17:49:52 +08:00 |
|
|
|
efd03ff9df
|
Add deployment tuning and chat load test
|
2026-07-08 17:45:18 +08:00 |
|
|
|
6464c61396
|
Document deployment tuning phase
|
2026-07-08 17:39:35 +08:00 |
|
|
|
c68af6f806
|
Cache Feishu retrieval data in Redis
|
2026-07-08 17:39:04 +08:00 |
|
|
|
70466a6a31
|
Document Redis Feishu cache scope
|
2026-07-08 17:36:44 +08:00 |
|
|
|
23d5f42972
|
Add Redis-backed chat queue
|
2026-07-08 17:36:20 +08:00 |
|
|
|
db1d83631b
|
Document Redis concurrency phase
|
2026-07-08 17:28:02 +08:00 |
|
|
|
812ae80536
|
Add async Feishu retrieval for chat RAG
|
2026-07-08 17:26:10 +08:00 |
|
|
|
7a6068590e
|
Document async Feishu retrieval plan
|
2026-07-08 17:21:56 +08:00 |
|
|
|
72bd2e1e02
|
Use async model streaming for chat
|
2026-07-08 17:20:29 +08:00 |
|
|
|
1aab53cb37
|
Document async model streaming plan
|
2026-07-08 17:16:38 +08:00 |
|
|
|
211cb6207e
|
Document async optimization split
|
2026-07-08 17:15:15 +08:00 |
|
|
|
465a481e7a
|
Stream chat completions from model providers
|
2026-07-08 17:13:53 +08:00 |
|
|
|
d476c54580
|
Document streaming optimization phase
|
2026-07-08 17:07:12 +08:00 |
|
|
|
6f3bbd3803
|
Implement chat queue fallback
|
2026-07-08 16:57:40 +08:00 |
|
|
|
10b6de0622
|
Document concurrency optimization plan
|
2026-07-08 16:48:51 +08:00 |
|
|
|
925ef0238d
|
Support Feishu file node retrieval
|
2026-07-08 12:29:21 +08:00 |
|
|
|
7811e3ed1f
|
Document Feishu file node retrieval issue
|
2026-07-08 12:26:22 +08:00 |
|
|
|
13185ab42b
|
Align user chat with agent model flow
|
2026-07-08 12:18:38 +08:00 |
|
|
|
35011d2679
|
Document user chat agent alignment
|
2026-07-08 12:15:07 +08:00 |
|
|
|
fb0bbc346b
|
Fix Feishu wiki child node retrieval
|
2026-07-08 12:08:23 +08:00 |
|
|
|
7be5dde1db
|
Support Feishu credentials in system settings
|
2026-07-08 12:03:37 +08:00 |
|
|
|
aed6d8ffbf
|
Document Feishu credentials in settings
|
2026-07-08 12:00:41 +08:00 |
|
|
|
9c76be70fe
|
Document Feishu credential configuration
|
2026-07-08 11:59:04 +08:00 |
|
|
|
eda2c5af76
|
Clarify chat retrieval failures
|
2026-07-08 11:55:22 +08:00 |
|
|
|
ac72b6a94a
|
Implement scoped real knowledge retrieval
|
2026-07-08 11:46:09 +08:00 |
|
|
|
ca50fa437c
|
Document scoped real knowledge retrieval
|
2026-07-08 11:42:59 +08:00 |
|
|
|
6ecdc8011d
|
Show all system settings explicitly
|
2026-07-08 11:35:52 +08:00 |
|
|
|
4b3ea7baa4
|
Document explicit system settings page
|
2026-07-08 11:34:15 +08:00 |
|
|
|
cd01e45fbd
|
Implement admin Excel import settings and chat preview
|
2026-07-07 19:05:52 +08:00 |
|
|
|
d18d9fe9d8
|
Document admin import settings and preview changes
|
2026-07-07 18:53:19 +08:00 |
|
|
|
29f25dd767
|
Implement student roster login gating
|
2026-07-07 18:45:07 +08:00 |
|
|
|
4f11d8632c
|
Document student roster login requirement
|
2026-07-07 18:40:21 +08:00 |
|
|
|
84da551cbe
|
Fix model delete confirmation dialog styles
|
2026-07-07 18:35:19 +08:00 |
|
|
|
03b1810a90
|
Implement open knowledge access scope
|
2026-07-07 18:32:01 +08:00 |
|
|
|
8d5d36c5eb
|
Document open knowledge access scope
|
2026-07-07 18:26:06 +08:00 |
|
|
|
7be9847d65
|
Complete admin operations management
|
2026-07-07 13:55:10 +08:00 |
|
|
|
da262f4596
|
Separate agent tuning from model setup
|
2026-07-07 13:31:20 +08:00 |
|
|
|
dada4aafcd
|
Add quick LLM provider setup
|
2026-07-07 13:12:27 +08:00 |
|
|
|
bcdf91c85d
|
Optimize admin web bundle
|
2026-07-07 13:03:00 +08:00 |
|
|
|
55b7c5b0ea
|
Complete admin model management
|
2026-07-07 12:58:26 +08:00 |
|
|
|
08c301c136
|
Complete admin chat records
|
2026-07-07 12:17:23 +08:00 |
|
|
|
08dd371480
|
Add V2 phase six verification assets
|
2026-07-06 18:14:36 +08:00 |
|
|
|
62eeb3186c
|
Add V2 admin console
|
2026-07-06 18:13:08 +08:00 |
|
|
|
301661e7b4
|
Add V2 external service providers
|
2026-07-06 18:03:29 +08:00 |
|
|
|
86cbed2437
|
Complete V2 user H5 flow
|
2026-07-06 18:00:21 +08:00 |
|
|
|
207340973c
|
Add V2 RAG answer skeleton
|
2026-07-06 17:55:22 +08:00 |
|
|
|
96742de07b
|
Add V2 local dev compose
|
2026-07-06 17:45:24 +08:00 |
|
|
|
e9f3db9ab2
|
Add Vue user H5 client
|
2026-07-06 17:34:37 +08:00 |
|
|
|
17cba7cf61
|
Scaffold V2 backend foundation
|
2026-07-06 17:25:06 +08:00 |
|