This commit is contained in:
Timothy J. Baek 2024-10-03 22:24:05 -07:00
parent b291271df3
commit e9b68524e8

View File

@ -208,6 +208,7 @@ def remove_file_from_knowledge_by_id(
detail=ERROR_MESSAGES.NOT_FOUND,
)
Files.delete_file_by_id(form_data.file_id)
VECTOR_DB_CLIENT.delete(
collection_name=knowledge.id, filter={"file_id": form_data.file_id}
)