From 38fa152cc4be17c2f92005ab38c3722d400f562e Mon Sep 17 00:00:00 2001 From: Jyong <76649700+JohnJyong@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:29:55 +0800 Subject: [PATCH] fix update document index technique (#1018) Co-authored-by: jyong --- api/tasks/deal_dataset_vector_index_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tasks/deal_dataset_vector_index_task.py b/api/tasks/deal_dataset_vector_index_task.py index a8690647c2..c92b353097 100644 --- a/api/tasks/deal_dataset_vector_index_task.py +++ b/api/tasks/deal_dataset_vector_index_task.py @@ -65,7 +65,7 @@ def deal_dataset_vector_index_task(dataset_id: str, action: str): documents.append(document) # save vector index - index.add_texts(documents) + index.create(documents) end_at = time.perf_counter() logging.info(