瀏覽代碼

fix update document index technique (#1018)

Co-authored-by: jyong <jyong@dify.ai>
Jyong 1 年之前
父節點
當前提交
38fa152cc4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/tasks/deal_dataset_vector_index_task.py

+ 1 - 1
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(