langchainjs
langchainjs copied to clipboard
Redis is not available as a vectorstore
Hello everybody.
I've been using Redis as a vectorstore in the python version of Langchain. Isn't it possible to use it also in the JS version?
If not, does anyone have any suggestions for an alternative that could be deployed with equal simplicity in a docker environment?
Thanks in advance.
You'd have to write an adapter. It shouldn't be hard to do. An alternative, checkout Milvus. It's open source, and ships with a docker setup.
Edit: I'll say if cost/proprietary isn't an issue, Pinecone.io is really great. Basically zero setup time, zero issues with Langchain.
https://milvus.io/ https://js.langchain.com/docs/modules/indexes/vector_stores/integrations/milvus
Thanks for the reply, @actengage.
I'm flirting with Pinecone, but I have an institutional constraint here that prevents me from storing the vectors/contents outside of our private infrastructure.
I'm going to study Milvus...thanks for the tip.
I'm also thinking of contributing to langchainjs by implementing an integration with Redis as vectorstore. It doesn't seem like a big technical challenge to me. Do you think it's worth it?
Absolutely worth it
hi @mmoraisTRT , @tommoor , @actengage , Redis is now available as a VectorStore since Release 0.0.76
Great news, @mvaker. Thanks for letting us know.
Hi, @mmoraisTRT! I'm here to help the LangChain team manage their backlog and I wanted to let you know that we are marking this issue as stale.
From what I understand, the issue was about the unavailability of Redis as a vectorstore in the JS version of Langchain. It seems like there have been some discussions in the comments about potential solutions, such as writing an adapter or using Milvus as an alternative. You mentioned that you were considering contributing to Langchain by implementing an integration with Redis and asked if it's worth it. @tommoor and @jakobsa seemed to think it was worth pursuing.
However, I wanted to let you know that since Release 0.0.76, Redis is now available as a VectorStore. So it seems like the issue has been resolved.
If this issue is still relevant to the latest version of the LangChain repository, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.
Thank you for your understanding and contributions to LangChain!