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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix tidb metadata filter (#16237)
Jyonga8879057c0bc
diff --git a/api/core/rag/datasource/vdb/tidb_on_qdrant/tidb_on_qdrant_vector.py b/api/core/rag/datasource/vdb/tidb_on_qdrant/tidb_on_qdrant_vector.pyindex 2b050283322..ae4baeb17e7 100644--- a/api/core/rag/datasource/vdb/tidb_on_qdrant/tidb_on_qdrant_vector.py+++ b/api/core/rag/datasource/vdb/tidb_on_qdrant/tidb_on_qdrant_vector.py@@ -328,16 +328,13 @@ class TidbOnQdrantVector(BaseVector):)document_ids_filter = kwargs.get("document_ids_filter")if document_ids_filter:- should_conditions = []- for document_id_filter in document_ids_filter:- should_conditions.append(+ if filter.must:+ filter.must.append(models.FieldCondition(key="metadata.document_id",- match=models.MatchValue(value=document_id_filter),+ match=models.MatchAny(any=document_ids_filter),))- if should_conditions:- filter.should = should_conditions # type: ignoreresults = self._client.search(collection_name=self._collection_name,query_vector=query_vector,@@ -382,16 +379,13 @@ class TidbOnQdrantVector(BaseVector):)document_ids_filter = kwargs.get("document_ids_filter")if document_ids_filter:- should_conditions = []- for document_id_filter in document_ids_filter:- should_conditions.append(+ if scroll_filter.must:+ scroll_filter.must.append(models.FieldCondition(key="metadata.document_id",- match=models.MatchValue(value=document_id_filter),+ match=models.MatchAny(any=document_ids_filter),))- if should_conditions:- scroll_filter.should = should_conditions # type: ignoreresponse = self._client.scroll(collection_name=self._collection_name,scroll_filter=scroll_filter,