Hi,
I am trying to save faiss database. There is no error but file is not created. Code:
from langchain.vectorstores import FAISS
DB_FAISS_PATH= “./vectorstores”
embeddings = HuggingFaceEmbeddings(model_name=“sentence-transformers/all-MiniLM-L6-v2”,
model_kwargs = {‘device’: ‘cpu’})
db = FAISS.from_documents(texts, embeddings)
db.save_local(DB_FAISS_PATH)
Do I need to create an empty database file or it created by using save_local.
Thanks