I’d like to propose adding Valkey support to the langchainjs repository as it’s rapidly gaining adoption as a popular open-source alternative to Redis.
While Valkey maintains protocol compatibility with Redis for basic operations, there are several key differences that justify a separate integration. The search modules are not fully compatible at this point, meaning the existing Redis vector store syntax and commands don’t work directly with Valkey’s search implementation. This requires a dedicated implementation that handles Valkey’s specific search module behavior and command structure. Additionally, Valkey’s independent development path means potential feature divergence in the future, making dedicated support valuable for the TypeScript/JavaScript ecosystem.
Would @langchain/valkey be appropriate as an official provider package in the langchain repository? The integration would use valkey-glide library for optimal performance and provide vector store capabilities tailored to Valkey’s search module implementation.
Alternative approach: If the LangChain team prefers, I could develop this as a separate npm package initially, with potential migration to the official providers later.
I’m happy to contribute the implementation following your integration guidelines and would appreciate guidance on the preferred approach.