wangdl
f4de598d96
fix: rag-chat 传入 outputSchema= RagChatOutputSchema,修复 parsed 为空对象
...
Deploy API Server / build-and-deploy (push) Successful in 42s
parseJson 无 schema 时直接返回 {},导致 resp.parsed?.answer 始终为 null。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:30:53 +08:00
wangdl
69bcd07a0f
debug: rag-chat 日志输出 AI parsed 结构
...
Deploy API Server / build-and-deploy (push) Successful in 43s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:28:35 +08:00
wangdl
55221116b7
debug: rag-chat 日志增加 kbId
...
Deploy API Server / build-and-deploy (push) Successful in 42s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:12:44 +08:00
wangdl
07f2786ab9
fix: 移除 rag-chat 调试日志中的 rawText 引用 (GatewayResponse 无此字段)
...
Deploy API Server / build-and-deploy (push) Successful in 41s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:04:17 +08:00
wangdl
ce43256690
debug: rag-chat sendMessage 添加详细日志定位 AI Gateway 调用失败原因
...
Deploy API Server / build-and-deploy (push) Failing after 21s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 13:56:28 +08:00
wangdl
d7a7611b36
fix: ChatCitation 字段 + BigInt 类型修复
...
Deploy API Server / build-and-deploy (push) Successful in 48s
- ChatCitation.content → excerptText(对齐 Prisma schema)
- ChatCitation.score 不存在→ 移除
- UploadedFile.sizeBytes BigInt → Number() 转换
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-30 08:42:07 +08:00
wangdl
6ab54be309
feat: H0-11 RAG Chat 接入真实检索 + AI 生成管道
...
Deploy API Server / build-and-deploy (push) Failing after 19s
- sendMessage 从 KB 加载知识点内容作为上下文(最多 30 条/4000 字符)
- 通过 AiGatewayService 调用 DeepSeek 生成回答
- AI 回复附带引用来源(ChatCitation)
- AI Gateway 不可用时降级提示
- 知识库为空时引导用户先添加内容
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 19:31:33 +08:00
0c07b59765
fix: add @Optional() to ContentSafetyService in RagChatService
...
Deploy API Server / build-and-deploy (push) Successful in 41s
Same issue as KnowledgeBaseService — NestJS can't resolve
ContentSafetyService in RagChatModule without @Optional().
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:46:30 +08:00
98bc9961ba
feat: M2-07 — RAG Chat module with sessions, messages, citations
...
Deploy API Server / build-and-deploy (push) Failing after 33s
- ChatSession/ChatMessage/ChatCitation Prisma models
- CAPI: create/list sessions, send message, get history, delete
- Admin AAPI: view user sessions and messages
- Content safety integration on user input
- Placeholder RAG pipeline (real pipeline in M3)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:39:14 +08:00