langchain-ai / langchain-redis

MIT License
14 stars 9 forks source link

RedisSemanticCache can not support async redis client #21

Open Silas-Xu opened 2 months ago

Silas-Xu commented 2 months ago

RedisSemanticCache has been very helpful for me, but it does not support async redis client, like this:

from redis.asyncio import Redis
from langchain_redis import RedisSemanticCache

redis: Redis = Redis.from_url(url="...")
redis_cache = RedisSemanticCache(redis_client=redis, embeddings=...)

Although I saw async methods in RedisVLSemanticCache, they were not used in RedisSemanticCache. Is there a follow-up support plan?

bsbodden commented 1 month ago

@Silas-Xu thanks for the report, it's on the roadmap for the library. Stay tuned!