This commit is contained in:
Timothy Jaeryang Baek
2026-08-11 17:35:05 -06:00
parent 65c3539666
commit 4f9a0ebf71
5 changed files with 192 additions and 44 deletions
+4
View File
@@ -438,6 +438,10 @@ async def reindex_knowledge_base_metadata_embeddings(
"""
knowledge_bases = await Knowledges.get_knowledge_bases()
log.info('Reindexing embeddings for %s knowledge bases', len(knowledge_bases))
try:
await ASYNC_VECTOR_DB_CLIENT.delete_collection(collection_name=KNOWLEDGE_BASES_COLLECTION)
except Exception as e:
log.debug(e)
success_count = 0
for kb in knowledge_bases: