Use partial reindex for bulk updates

This commit is contained in:
shamoon 2025-04-28 14:05:57 -07:00
parent 62fd722019
commit 3d1ed671fa
No known key found for this signature in database

View File

@ -245,8 +245,10 @@ def bulk_update_documents(document_ids):
ai_config = AIConfig()
if ai_config.llm_index_enabled():
for doc in documents:
llm_index_add_or_update_document()
update_llm_index(
progress_bar_disable=True,
rebuild=False,
)
@shared_task