Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

update dataset index struct (#1012)

Jyong915e26527b2c
diff --git a/api/commands.py b/api/commands.py
index 66fee26ea55..aa1634c7d50 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: