From 5ea2d56d88fde5d3090dc0a586b9771534ff4acd Mon Sep 17 00:00:00 2001 From: lazakrisz <39099608+lazakrisz@users.noreply.github.com> Date: Mon, 4 Aug 2025 18:38:07 +0200 Subject: [PATCH] fix: add RedisCloud search module check (#3192) Co-authored-by: Saket Aryan <94069182+whysosaket@users.noreply.github.com> --- docs/changelog.mdx | 5 +++++ mem0-ts/package.json | 2 +- mem0-ts/src/oss/src/vector_stores/redis.ts | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) 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" + +**New Features:** +- **OSS:** Added `RedisCloud` search module check + + **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) {