在使用docker pull redis之后,使用langchain建立向量库时报错:
Redis cannot be used as a vector database without RediSearch >=2.4 Please head to https://redis.io/docs/stack/search/quick_start/to know more about installing the RediSearch module within Redis Stack.
或:
File "C:\Users\username\anaconda3\envs\env\lib\site-packages\redis\connection.py", line 283, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 10061 connecting to localhost:6379. 由于目标计算机积极拒绝,无法连接。.
解决方法:
将dcoker pull redis/redis
变为使用redis-stack-server
启动,即可解决
docker pull redis/redis-stack-server
docker run --restart=always -p 6379:6379 --name redis_name -d redis/redis-stack-server:latest