-
Notifications
You must be signed in to change notification settings - Fork 16k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Redis' object has no attribute 'module_list' #3893
Comments
Which version of the redis python client and LC are you using? I'm not able to reproduce this with unit tests (just added a from_documents test method. Wonder if it's possible module names are colliding in your working env too. |
I have redis server in windows subsystem (ubuntu) and its Redis server v=6.0.16 |
Can you try with the latest redis client version (>=4.5.2) |
sorry for the late reply. I updated the redis version to 4.5.4. When I run the piece of code, it says |
Ok so the redis client version fixed the initial error here. For this one, you don't need to install a different client. You need to run the version of redis that has the search module installed on the database for vector search. (Redis is modular and has different developer capabilities). Did you checkout the link it provided? Here is a docker command to run the correct flavor of redis: docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest |
Hi, I'm also getting the same error. I'm using the below versions of the packages
The docker command also didn't actually solve the issue. Seems there is some dependency conflict between redis and redisearch. redisearch>=2.4 is not available. 2.1.1 is the latest. |
Hey, Same issue ...
The redis client, and redisearch versions are:
The docker image
With the redis stack server version being When executing the command MODULE LIST from the redis cli the list of modules is returned as expected. This appears to be an API incompatibility with the redis python client version that is pinned to python redisearch i.e. as the error says the redis client does not have the module_list method. The python redis client documentation for 3.5.3 is sparse on the subject. It appears that This is a redisearch issues rather than a langchain issues (https://github.com/RediSearch/redisearch-py/blob/master/pyproject.toml) |
Thanks for looking into that. The redisearch client library should not be needed here. All search functionality required has been ported to the standard redis Python client. We need to make sure that any LangChain pin to redisearch is removed in favor of just redis. Will look into this. cc @hwchase17 |
I can't find anywhere in langchain where the https://github.com/RediSearch/redisearch-py (this is deprecated now) |
No, it's just that the error message suggests the user to install redisearch (>=2.4), I'm fixing that in the new PR |
Still not working |
still not working |
Can anybody suggest a solution for this issue .. |
Still facing the same issue while using redis-stack-server docker container: Here is the full trace.
Was really looking forward to using Redis. Seems this issue has been there for a while. I will have to look into other vector DB options soon. |
still not working.. |
these versions resolved my problem:
let me know, |
FYI there is no dependency on You need to make sure search/query featured are enabled on your database... which is built-in if using the free Redis Stack docker image or Redis Enterprise. |
You guys all need to switch to Redis Stack, not just Redis.
|
I was facing the same issue with Conda as my package manager. I was able to resolve the issue by installing langchain-redis==0.1.1 integration package which is mentioned on langchain 0.3 release notes. However, Conda doesn't have that langchain-redis package on any of the channels so ended up installing using pip. I know its a mess to use two package managers in the same environment, but this resolved my issue. |
I'm trying to make a vectorstore using redis and store the embeddings in redis.
When I write the code
rds = Redis.from_documents(docs, embeddings, redis_url="redis://localhost:6379", index_name='test_link')
I get the following error
AttributeError: 'Redis' object has no attribute 'module_list'.
Note: I'm trying to run redis locally on windows subsystem ubuntu.
Please help.
The text was updated successfully, but these errors were encountered: