ioredis VectorStore #4952
-
Checked other resources
Commit to Help
Example CodeN/A. DescriptionDear, I am trying to use the Redis VectorStore and it seems it has been deprecated Is it planned to have Redis Vector Store back using ioredis? Thank you! System InfoLangchain 0.1.30 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @mauriciocirelli, The Redis VectorStore and Redis Chat History were deprecated in favor of encouraging users to adopt the "@langchain/redis" integration package. This move aims to streamline Redis interactions within LangChain.js applications, leveraging Redis for efficient data handling in AI or language processing tasks. Regarding the specific reintroduction of Redis Vector Store functionality using the ioredis package, there's no explicit plan mentioned in the repository. However, the ioredis package is indeed utilized for Redis database interactions, such as data manipulation and key iteration, within the LangChain JS context. For those looking to use Redis as a VectorStore, the "@langchain/redis" integration package is recommended. It's designed as a sample integration for LangChain.js, requiring Node.js version 18 or higher and depending on "@langchain/core" for core functionalities. It's worth noting that the "@langchain/redis" package is currently at version 0.0.2, while LangChain JS is at version 0.1.30, which might pose compatibility considerations. For further details, you can explore the following resources: If you have more questions or need additional clarification, feel free to reach out! -Dosu Sources
|
Beta Was this translation helpful? Give feedback.
-
Hi! I think the biggest issue here is that the interfaces are not compatible with each other. It would be way better if we could create a single RedisClient instance and send it to both constructors. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the confusion... I was mixing ioredis and redis integrations... Now that I have dropped ioredis, the redis integrations to both ChatHistory and VectorStore are compatible and receive the same redis instance. Thank you. |
Beta Was this translation helpful? Give feedback.
Sorry for the confusion... I was mixing ioredis and redis integrations... Now that I have dropped ioredis, the redis integrations to both ChatHistory and VectorStore are compatible and receive the same redis instance.
Thank you.