From 074f0c8b23d851204895f23d8fc6fb9a02325256 Mon Sep 17 00:00:00 2001 From: yangdx Date: Sun, 12 Oct 2025 10:12:45 +0800 Subject: [PATCH] Update docstring for adelete_by_doc_id method clarity --- lightrag/lightrag.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index b4345405..d288685e 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -2571,11 +2571,12 @@ class LightRAG: return found_statuses async def adelete_by_doc_id(self, doc_id: str) -> DeletionResult: - """Delete a document and all its related data, including chunks, graph elements, and cached entries. + """Delete a document and all its related data, including chunks, graph elements. This method orchestrates a comprehensive deletion process for a given document ID. It ensures that not only the document itself but also all its derived and associated - data across different storage layers are removed. If entities or relationships are partially affected, it triggers. + data across different storage layers are removed or rebuiled. If entities or relationships + are partially affected, they will be rebuilded using LLM cached from remaining documents. Args: doc_id (str): The unique identifier of the document to be deleted.