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 mivlus delete by ids error (#2573)
Jyongfc64cdee64e9
diff --git a/api/core/rag/datasource/vdb/field.py b/api/core/rag/datasource/vdb/field.pyindex 6a594a83ca7..dc400dafbb0 100644--- a/api/core/rag/datasource/vdb/field.py+++ b/api/core/rag/datasource/vdb/field.py@@ -7,4 +7,4 @@ class Field(Enum):GROUP_KEY = "group_id"VECTOR = "vector"TEXT_KEY = "text"- PRIMARY_KEY = " id"+ PRIMARY_KEY = "id"diff --git a/api/core/rag/datasource/vdb/milvus/milvus_vector.py b/api/core/rag/datasource/vdb/milvus/milvus_vector.pyindex bb12ef1b56f..0fc8ed5a265 100644--- a/api/core/rag/datasource/vdb/milvus/milvus_vector.py+++ b/api/core/rag/datasource/vdb/milvus/milvus_vector.py@@ -124,7 +124,12 @@ class MilvusVector(BaseVector):def delete_by_ids(self, doc_ids: list[str]) -> None:- self._client.delete(collection_name=self._collection_name, pks=doc_ids)+ result = self._client.query(collection_name=self._collection_name,+ filter=f'metadata["doc_id"] in {doc_ids}',+ output_fields=["id"])+ if result:+ ids = [item["id"] for item in result]+ self._client.delete(collection_name=self._collection_name, pks=ids)def delete(self) -> None:alias = uuid4().hex