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.

fix: add RedisCloud search module check (#3192)

lazakrisz5ea2d56d88fd
diff --git a/docs/changelog.mdx b/docs/changelog.mdx
index 0e87c7cab..0357ef3b8 100644
--- a/docs/changelog.mdx
+++ b/docs/changelog.mdx
@@ -520,6 +520,11 @@ mode: "wide"
<Tab title="TypeScript">
+<Update label="2025-08-04" description="v2.1.37">
+**New Features:**
+- **OSS:** Added `RedisCloud` search module check
+</Update>
+
<Update label="2025-07-08" description="v2.1.36">
**New Features:**
- **Client:** Added `structured_data_schema` param to `add` method.
diff --git a/mem0-ts/package.json b/mem0-ts/package.json
index e069b9fc8..161577c69 100644
--- a/mem0-ts/package.json
+++ b/mem0-ts/package.json
@@ -1,6 +1,6 @@
{
"name": "mem0ai",
- "version": "2.1.36",
+ "version": "2.1.37",
"description": "The Memory Layer For Your AI Apps",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/mem0-ts/src/oss/src/vector_stores/redis.ts b/mem0-ts/src/oss/src/vector_stores/redis.ts
index 7678b82f0..9bf957bc3 100644
--- a/mem0-ts/src/oss/src/vector_stores/redis.ts
+++ b/mem0-ts/src/oss/src/vector_stores/redis.ts
@@ -254,7 +254,11 @@ export class RedisDB implements VectorStore {
for (let i = 0; i < module.length; i += 2) {
moduleMap.set(module[i], module[i + 1]);
}
- return moduleMap.get("name")?.toLowerCase() === "search";
+ const moduleName = moduleMap.get("name");
+ return (
+ moduleName?.toLowerCase() === "search" ||
+ moduleName?.toLowerCase() === "searchlight"
+ );
});
if (!hasSearch) {