From 66340c722704daa9686908f283795389a2dbc280 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Mon, 6 Apr 2026 11:48:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(lightrag):=20=E4=BF=AE=E6=94=B9=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=80=BC=E4=BB=A5=E5=85=81=E8=AE=B8=20LightRAG=20?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BA=8C=E6=AC=A1=E5=88=87=E5=88=86=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E8=B6=85=E9=99=90=20=20Fix=20#554?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package/yuxi/knowledge/implementations/lightrag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/package/yuxi/knowledge/implementations/lightrag.py b/backend/package/yuxi/knowledge/implementations/lightrag.py index 09bdb67c..bf725b28 100644 --- a/backend/package/yuxi/knowledge/implementations/lightrag.py +++ b/backend/package/yuxi/knowledge/implementations/lightrag.py @@ -56,7 +56,7 @@ class LightRagKB(KnowledgeBase): delimiter = "\n<|YUXI_CHUNK_DELIM|>\n" payload = delimiter.join(chunk["content"] for chunk in chunks if chunk.get("content")) - return payload, delimiter, True + return payload, delimiter, False # 允许 LightRAG 基于进行二次切分,避免超限 def delete_database(self, db_id: str) -> dict: """删除数据库,同时清除Milvus和Neo4j中的数据"""