This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-10 22:47:39 -06:00
1 parent c2107e5bb3
commit 2a6e671f54
2 files changed
+35 -23

No files matched your search

+4
View File
@@ -381,6 +381,10 @@ async def reindex_knowledge_files(
)
try:
file_collection = f'file-{file.id}'
if await ASYNC_VECTOR_DB_CLIENT.has_collection(collection_name=file_collection):
await ASYNC_VECTOR_DB_CLIENT.delete_collection(collection_name=file_collection)
await process_file(
request,
ProcessFileForm(file_id=file.id, collection_name=knowledge_base.id),