From add07a3db5112fcacaa2c603d51d337eef770edb Mon Sep 17 00:00:00 2001 From: Jan Brinkmann Date: Tue, 30 May 2023 20:41:00 +0200 Subject: [PATCH] Fixed docstring in faiss.py for load_local (#5440) # Fix for docstring in faiss.py vectorstore (load_local) The doctring should reflect that load_local loads something FROM the disk. --- langchain/vectorstores/faiss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/vectorstores/faiss.py b/langchain/vectorstores/faiss.py index cf170287480f8..26266e04c441c 100644 --- a/langchain/vectorstores/faiss.py +++ b/langchain/vectorstores/faiss.py @@ -496,7 +496,7 @@ def save_local(self, folder_path: str, index_name: str = "index") -> None: def load_local( cls, folder_path: str, embeddings: Embeddings, index_name: str = "index" ) -> FAISS: - """Load FAISS index, docstore, and index_to_docstore_id to disk. + """Load FAISS index, docstore, and index_to_docstore_id from disk. Args: folder_path: folder path to load index, docstore,