mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 16:59:03 +08:00
update dataset index struct (#1012)
Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
parent
2d604d9330
commit
915e26527b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user