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.

fix: avoid returning unused vectors in TiDB on Qdrant search (#39744)

非法操作0d6b2fc40c23
diff --git a/api/providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py b/api/providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py
index b352243b92a..6c027d1d267 100644
--- a/api/providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py
+++ b/api/providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py
@@ -356,7 +356,7 @@ class TidbOnQdrantVector(BaseVector):
query_filter=filter,
limit=kwargs.get("top_k", 4),
with_payload=True,
- with_vectors=True,
+ with_vectors=False,
score_threshold=kwargs.get("score_threshold", 0.0),
)
docs = []