英文:
Vector Stores storage in LangChain
问题
我第一次与LangChain合作。由于数据安全,我想确保langchain的向量存储存储的存储方式。我正在使用HNSWLib向量存储,它提到是一个内存中的存储。这是什么意思?Langchain/向量存储是否在其服务器上存储任何数据?
英文:
I am working with LangChain for the first time. Due to data security, I want to be sure about the storage of langchain's vector store storage. I am using HNSWLib vector store, which mentions it is an in-memory store. What does it mean? Does Langchain/vector stores store any data in its servers?
https://js.langchain.com/docs/modules/indexes/vector_stores/integrations/hnswlib
https://github.com/nmslib/hnswlib
答案1
得分: 3
HNSWLib 将数据存储在托管项目的服务器中。因此,如果您将服务器托管到 Vercel,则您的向量存储将在 Vercel 服务器的内存中运行。您可以通过执行 await vectorStore.save(directory);
来测试此逻辑是否正确,这将在您的项目目录中生成向量文件。
英文:
HNSWLib store data in the server where the project is host. So if you host your server into vercel then your vector store is running in memory in vercel server. You can test this logic if true when you execute await vectorStore.save(directory);
which will generate vector files inside your project directory.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论