Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

[Bugfix] fix typo in opensearch db (#1218)

Deven Patel433f99dd7858
diff --git a/embedchain/vectordb/opensearch.py b/embedchain/vectordb/opensearch.py
index e9a4baf11..e21bf2209 100644
--- a/embedchain/vectordb/opensearch.py
+++ b/embedchain/vectordb/opensearch.py
@@ -98,7 +98,7 @@ class OpenSearchDB(BaseVectorDB):
if where:
for key, value in where.items():
- query["bool"]["must"].append({"term": {f"metadata.{key}.keyword": value}})
+ query["query"]["bool"]["must"].append({"term": {f"metadata.{key}.keyword": value}})
# OpenSearch syntax is different from Elasticsearch
response = self.client.search(index=self._get_index(), body=query, _source=True, size=limit)