From 4834eae887931db0c51ca89db1e6e8c84fd2643a Mon Sep 17 00:00:00 2001 From: Jyong <76649700+JohnJyong@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:18:52 +0800 Subject: [PATCH] fix enable annotation reply when collection is None (#2877) Co-authored-by: jyong --- api/tasks/annotation/enable_annotation_reply_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tasks/annotation/enable_annotation_reply_task.py b/api/tasks/annotation/enable_annotation_reply_task.py index f3260bbb50..666fa8692f 100644 --- a/api/tasks/annotation/enable_annotation_reply_task.py +++ b/api/tasks/annotation/enable_annotation_reply_task.py @@ -89,7 +89,7 @@ def enable_annotation_reply_task(job_id: str, app_id: str, user_id: str, tenant_ logging.info( click.style('Delete annotation index error: {}'.format(str(e)), fg='red')) - vector.add_texts(documents) + vector.create(documents) db.session.commit() redis_client.setex(enable_app_annotation_job_key, 600, 'completed') end_at = time.perf_counter()