From 915e26527b2ce6e4c8ed0e19c5a1ad93a5055c72 Mon Sep 17 00:00:00 2001 From: Jyong <76649700+JohnJyong@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:52:33 +0800 Subject: [PATCH] update dataset index struct (#1012) Co-authored-by: jyong --- api/commands.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/commands.py b/api/commands.py index 66fee26ea5..aa1634c7d5 100644 --- a/api/commands.py +++ b/api/commands.py @@ -351,6 +351,12 @@ def create_qdrant_indexes(): embeddings=embeddings ) if index: + index_struct = { + "type": 'qdrant', + "vector_store": {"class_prefix": dataset.index_struct_dict['vector_store']['class_prefix']} + } + dataset.index_struct = json.dumps(index_struct) + db.session.commit() index.create_qdrant_dataset(dataset) create_count += 1 else: