From 86a0aa1f9f429c5026b3485685ff4f7fcb047634 Mon Sep 17 00:00:00 2001 From: lixiangcheng1 Date: Thu, 19 Mar 2026 15:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix]Nested=20query=20of=20folder=20kno?= =?UTF-8?q?wledge=20base=20retrieve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/core/rag/nlp/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/core/rag/nlp/search.py b/api/app/core/rag/nlp/search.py index 56f6ba47..f6f04e3b 100644 --- a/api/app/core/rag/nlp/search.py +++ b/api/app/core/rag/nlp/search.py @@ -146,7 +146,7 @@ def _retrieve_for_knowledge( return results, chat_model, embedding_model # Folder 类型:递归处理子知识库 - if db_knowledge.type == knowledge_model.KnowledgeType.Folder: + if db_knowledge.type == knowledge_model.KnowledgeType.FOLDER: children = knowledge_repository.get_knowledges_by_parent_id(db=db, parent_id=db_knowledge.id) for child in children: if not (child and child.chunk_num > 0 and child.status == 1):