debug: rag-chat 日志增加 kbId
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 42s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-06 14:12:44 +08:00
parent 07f2786ab9
commit 55221116b7

View File

@ -52,6 +52,7 @@ export class RagChatService {
}); });
// Retrieve knowledge base context // Retrieve knowledge base context
this.logger.log(`RAG: kbId=${session.knowledgeBaseId}, content preview: ${content.substring(0, 30)}`);
const context = await this.loadContext(session.knowledgeBaseId); const context = await this.loadContext(session.knowledgeBaseId);
this.logger.log(`RAG context: isEmpty=${context.isEmpty}, textLen=${context.text.length}, citations=${context.citations.length}, aiGateway=${!!this.aiGateway}`); this.logger.log(`RAG context: isEmpty=${context.isEmpty}, textLen=${context.text.length}, citations=${context.citations.length}, aiGateway=${!!this.aiGateway}`);