CHAT-302 P0 | knowledge_item 会话检索范围:只检索当前知识点 #86

Closed
opened 2026-06-06 16:23:22 +08:00 by wangdl · 1 comment
Owner

目标

知识点会话的 loadContext 只检索当前知识点 + 来源资料片段。

检索内容

  • 当前知识点正文
  • 当前知识点来源片段(从 sourceMaterial 取)
  • 当前知识点关联知识点
  • 所属资料摘要(不拿全文)

system prompt

你正在回答当前知识点的问题。优先围绕该知识点解释。如果需要扩展,说明扩展来源。

## 目标 知识点会话的 loadContext 只检索当前知识点 + 来源资料片段。 ## 检索内容 - 当前知识点正文 - 当前知识点来源片段(从 sourceMaterial 取) - 当前知识点关联知识点 - 所属资料摘要(不拿全文) ## system prompt 你正在回答当前知识点的问题。优先围绕该知识点解释。如果需要扩展,说明扩展来源。
wangdl added this to the M7:ChatScope 会话系统 — 学习对象绑定的上下文会话 milestone 2026-06-06 16:23:22 +08:00
Author
Owner

完成情况

loadContextByScope case knowledge_item:

  • 检索范围: 只检索 scopeId 对应的那一个知识点
  • SQL: WHERE id = scopeId AND deletedAt IS NULL
  • 涉及: src/modules/rag-chat/rag-chat.service.ts
## 完成情况 loadContextByScope case knowledge_item: - 检索范围: 只检索 scopeId 对应的那一个知识点 - SQL: WHERE id = scopeId AND deletedAt IS NULL - 涉及: src/modules/rag-chat/rag-chat.service.ts
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/api-server#86
No description provided.