Unverified Commit 915e2652 authored by Jyong's avatar Jyong Committed by GitHub

update dataset index struct (#1012)

Co-authored-by: 's avatarjyong <jyong@dify.ai>
parent 2d604d93
...@@ -351,6 +351,12 @@ def create_qdrant_indexes(): ...@@ -351,6 +351,12 @@ def create_qdrant_indexes():
embeddings=embeddings embeddings=embeddings
) )
if index: 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) index.create_qdrant_dataset(dataset)
create_count += 1 create_count += 1
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment