LangChain vector store storage solution
P粉306523969
P粉306523969 2024-03-26 12:57:23
0
1
582

This is my first time to cooperate with LangChain. For data security reasons, I want to confirm the storage situation of langchain's vector storage. I am using HNSWLib vector store and it mentions that it is an in-memory store. What does it mean? Does Langchain/Vector Store store any data on its servers?

https://js.langchain.com/docs/modules/indexes/vector_stores/integrations/hnswlib https://github.com/nmslib/hnswlib

P粉306523969
P粉306523969

reply all(1)
P粉212971745

HNSWLib stores data on the server where the project is located. So if you host your server to vercel, the vector store will run in memory on the vercel server. You can test whether this logic is true when executing await vectorStore.save(directory); which will generate the vector file in the project directory.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template