Pls do not use /delete_document API endpoint

This commit is contained in:
yangdx 2025-06-24 11:26:38 +08:00
parent 5ae945c1e5
commit 8b6dcfb6eb

View file

@ -1376,10 +1376,14 @@ def create_document_routes(
dependencies=[Depends(combined_auth)], dependencies=[Depends(combined_auth)],
summary="Delete a document and all its associated data by its ID.", summary="Delete a document and all its associated data by its ID.",
) )
# TODO This method needs to be modified to be asynchronous (please do not use)
async def delete_document( async def delete_document(
delete_request: DeleteDocRequest, delete_request: DeleteDocRequest,
) -> DeleteDocByIdResponse: ) -> DeleteDocByIdResponse:
""" """
This method needs to be modified to be asynchronous (please do not use)
Deletes a specific document and all its associated data, including its status, Deletes a specific document and all its associated data, including its status,
text chunks, vector embeddings, and any related graph data. text chunks, vector embeddings, and any related graph data.
It is disabled when llm cache for entity extraction is disabled. It is disabled when llm cache for entity extraction is disabled.