gzdaniel commited on
Commit
81145a9
·
1 Parent(s): 22a53ed

Pls do not use /delete_document API endpoint

Browse files
lightrag/api/routers/document_routes.py CHANGED
@@ -1376,10 +1376,14 @@ def create_document_routes(
1376
  dependencies=[Depends(combined_auth)],
1377
  summary="Delete a document and all its associated data by its ID.",
1378
  )
 
 
1379
  async def delete_document(
1380
  delete_request: DeleteDocRequest,
1381
  ) -> DeleteDocByIdResponse:
1382
  """
 
 
1383
  Deletes a specific document and all its associated data, including its status,
1384
  text chunks, vector embeddings, and any related graph data.
1385
  It is disabled when llm cache for entity extraction is disabled.
 
1376
  dependencies=[Depends(combined_auth)],
1377
  summary="Delete a document and all its associated data by its ID.",
1378
  )
1379
+
1380
+ # TODO This method needs to be modified to be asynchronous (please do not use)
1381
  async def delete_document(
1382
  delete_request: DeleteDocRequest,
1383
  ) -> DeleteDocByIdResponse:
1384
  """
1385
+ This method needs to be modified to be asynchronous (please do not use)
1386
+
1387
  Deletes a specific document and all its associated data, including its status,
1388
  text chunks, vector embeddings, and any related graph data.
1389
  It is disabled when llm cache for entity extraction is disabled.