fix: add RedisCloud search module check (#3192)

Co-authored-by: Saket Aryan <94069182+whysosaket@users.noreply.github.com>
This commit is contained in:
lazakrisz
2025-08-04 22:08:07 +05:30
committed by GitHub
co-authored by Saket Aryan
parent 7d1d0ca806
commit 5ea2d56d88
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -520,6 +520,11 @@ mode: "wide"
<Tab title="TypeScript"> <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"> <Update label="2025-07-08" description="v2.1.36">
**New Features:** **New Features:**
- **Client:** Added `structured_data_schema` param to `add` method. - **Client:** Added `structured_data_schema` param to `add` method.
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "mem0ai", "name": "mem0ai",
"version": "2.1.36", "version": "2.1.37",
"description": "The Memory Layer For Your AI Apps", "description": "The Memory Layer For Your AI Apps",
"main": "./dist/index.js", "main": "./dist/index.js",
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
+5 -1
View File
@@ -254,7 +254,11 @@ export class RedisDB implements VectorStore {
for (let i = 0; i < module.length; i += 2) { for (let i = 0; i < module.length; i += 2) {
moduleMap.set(module[i], module[i + 1]); 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) { if (!hasSearch) {