Update docstring for adelete_by_doc_id method clarity
This commit is contained in:
parent
8a0098996c
commit
074f0c8b23
1 changed files with 3 additions and 2 deletions
|
|
@ -2571,11 +2571,12 @@ class LightRAG:
|
||||||
return found_statuses
|
return found_statuses
|
||||||
|
|
||||||
async def adelete_by_doc_id(self, doc_id: str) -> DeletionResult:
|
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.
|
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
|
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:
|
Args:
|
||||||
doc_id (str): The unique identifier of the document to be deleted.
|
doc_id (str): The unique identifier of the document to be deleted.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue