implement endpoint to retrieve document statuses

This commit is contained in:
ArnoChen
2025-02-17 01:03:05 +08:00
parent 801a980c03
commit ca85b82a47
2 changed files with 70 additions and 6 deletions

View File

@@ -1254,6 +1254,16 @@ class LightRAG:
"""
return await self.doc_status.get_status_counts()
async def get_docs_by_status(
self, status: DocStatus
) -> dict[str, DocProcessingStatus]:
"""Get documents by status
Returns:
Dict with document id is keys and document status is values
"""
return await self.doc_status.get_docs_by_status(status)
async def adelete_by_doc_id(self, doc_id: str) -> None:
"""Delete a document and all its related data