From 55221116b7081a63d16a84f09d4599ae2b4bdb96 Mon Sep 17 00:00:00 2001 From: wangdl Date: Sat, 6 Jun 2026 14:12:44 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20rag-chat=20=E6=97=A5=E5=BF=97=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20kbId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- src/modules/rag-chat/rag-chat.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/rag-chat/rag-chat.service.ts b/src/modules/rag-chat/rag-chat.service.ts index e7018f3..dddb8d9 100644 --- a/src/modules/rag-chat/rag-chat.service.ts +++ b/src/modules/rag-chat/rag-chat.service.ts @@ -52,6 +52,7 @@ export class RagChatService { }); // Retrieve knowledge base context + this.logger.log(`RAG: kbId=${session.knowledgeBaseId}, content preview: ${content.substring(0, 30)}`); 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}`);