From 0d6b2fc40c23b18dc8508de8c5283a67709c26d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Wed, 29 Jul 2026 14:51:18 +0800 Subject: [PATCH] fix: avoid returning unused vectors in TiDB on Qdrant search (#39744) --- .../src/dify_vdb_tidb_on_qdrant/tidb_on_qdrant_vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []