Home  >  Q&A  >  body text

LangChain vector store storage solution

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粉306523969P粉306523969207 days ago453

reply all(1)I'll reply

  • P粉212971745

    P粉2129717452024-03-27 00:04:08

    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.

    reply
    0
  • Cancelreply