The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Harrison/redis (#2588)
Harrison Chase2f49c9653272
diff --git a/langchain/vectorstores/redis.py b/langchain/vectorstores/redis.pyindex 1c28b4e28c..4b2f7452a4 100644--- a/langchain/vectorstores/redis.py+++ b/langchain/vectorstores/redis.py@@ -27,11 +27,13 @@ REDIS_REQUIRED_MODULES = [def _check_redis_module_exist(client: RedisType, modules: List[dict]) -> None:"""Check if the correct Redis modules are installed."""- installed_modules = client.info().get("modules", [])- installed_modules = {module["name"]: module for module in installed_modules}+ installed_modules = client.module_list()+ installed_modules = {+ module[b"name"].decode("utf-8"): module for module in installed_modules+ }for module in modules:if module["name"] not in installed_modules or int(- installed_modules[module["name"]]["ver"]+ installed_modules[module["name"]][b"ver"]) < int(module["ver"]):error_message = ("You must add the RediSearch (>= 2.4) module from Redis Stack. "