Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redis-dataprep: Make Redis connection consistent (#359)
There are both 'from langchain_community.vectorstores import Redis' and 'import redis' in prepare_doc_redis.py. Redis.from_texts_return_keys() is with REDIS_URL as connection, while redis.Redis() takes the combination of REDIS_HOST and REDIS_PORT as connection. When the former and the latter are not the same, it will fail to get data from vector database. Change to use REDIS_URL as the unified way. Signed-off-by: Cathy Zhang <[email protected]> Co-authored-by: Sihan Chen <[email protected]>
- Loading branch information