This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-10 22:53:37 -06:00
1 parent 2a6e671f54
commit 89922cc9d5
2 files changed
+13 -4

No files matched your search

+2
View File
@@ -381,6 +381,8 @@ async def reindex_knowledge_files(
)
try:
# Force the KB add path to use stored SQL content instead of stale file-{id} chunks.
# process_file recreates file-{id} only when that stored content exists.
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)