mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-21 17:54:28 +08:00
fix update document index technique (#1018)
Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
parent
2d9616c29c
commit
38fa152cc4
@ -65,7 +65,7 @@ def deal_dataset_vector_index_task(dataset_id: str, action: str):
|
|||||||
documents.append(document)
|
documents.append(document)
|
||||||
|
|
||||||
# save vector index
|
# save vector index
|
||||||
index.add_texts(documents)
|
index.create(documents)
|
||||||
|
|
||||||
end_at = time.perf_counter()
|
end_at = time.perf_counter()
|
||||||
logging.info(
|
logging.info(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user