The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
[Improvement] add delete functionality to zilliz DB (#912)
Deven Patel0533da72d723
diff --git a/docs/components/vector-databases.mdx b/docs/components/vector-databases.mdxindex ccb5dc668..db1983167 100644--- a/docs/components/vector-databases.mdx+++ b/docs/components/vector-databases.mdx@@ -138,7 +138,7 @@ app = App.from_config(yaml_path="config.yaml")vectordb:provider: zillizconfig:- collection_name: 'zilliz-app'+ collection_name: 'zilliz_app'uri: https://xxxx.api.gcp-region.zillizcloud.comtoken: xxxvector_dim: 1536diff --git a/embedchain/vectordb/zilliz.py b/embedchain/vectordb/zilliz.pyindex f0f25eb11..7779f3449 100644--- a/embedchain/vectordb/zilliz.py+++ b/embedchain/vectordb/zilliz.py@@ -222,3 +222,16 @@ class ZillizVectorDB(BaseVectorDB):if not isinstance(name, str):raise TypeError("Collection name must be a string")self.config.collection_name = name++ def delete(self, keys: Union[list, str, int]):+ """+ Delete the embeddings from DB. Zilliz only support deleting with keys.+++ :param keys: Primary keys of the table entries to delete.+ :type keys: Union[list, str, int]+ """+ self.client.delete(+ collection_name=self.config.collection_name,+ pks=keys,+ )