From 210b77dda7d2567db9684a684ae6f6bce4f9ecab Mon Sep 17 00:00:00 2001 From: wangmeihua <13383952685@163.com> Date: Fri, 10 Oct 2025 14:39:06 +0800 Subject: [PATCH] rag --- rag/folderinfo.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/rag/folderinfo.py b/rag/folderinfo.py index 5ec2637..ff31f44 100644 --- a/rag/folderinfo.py +++ b/rag/folderinfo.py @@ -145,18 +145,6 @@ where a.orgid = b.orgid "message": f"插入文档失败: {str(e)}", "timings": timings }) - # 记录回滚日志 - rollback_log = { - "transaction_id": transaction_mgr.transaction_id, - "document_id": id, - "realpath": realpath, - "action": "rollback", - "reason": f"插入失败: {str(e)}", - "timestamp": datetime.now().isoformat() - } - with open('/home/wangmeihua/kyrag/logs/rollback.log', 'a') as f: - f.write(f"{json.dumps(rollback_log, ensure_ascii=False)}\n") - # 提供回滚上下文 raise ValueError(str(e)) from e debug(f"最终结果是:{result}") return result