refac: audio file handling

This commit is contained in:
Timothy Jaeryang Baek
2025-02-26 13:09:52 -08:00
parent 46ac6f2b29
commit 78a8ef8e66
5 changed files with 23 additions and 48 deletions

View File

@@ -913,7 +913,12 @@ def process_file(
# Update the content in the file
# Usage: /files/{file_id}/data/content/update
VECTOR_DB_CLIENT.delete_collection(collection_name=f"file-{file.id}")
try:
# /files/{file_id}/data/content/update
VECTOR_DB_CLIENT.delete_collection(collection_name=f"file-{file.id}")
except:
# Audio file upload pipeline
pass
docs = [
Document(