Skip to content

Commit

Permalink
fix enable annotation reply when collection is None (#2877)
Browse files Browse the repository at this point in the history
Co-authored-by: jyong <[email protected]>
  • Loading branch information
JohnJyong and JohnJyong authored Mar 18, 2024
1 parent 01108e6 commit 4834eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/tasks/annotation/enable_annotation_reply_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4834eae

Please sign in to comment.