mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 02:29: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
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user