Skip to content

Commit

Permalink
Fixed docstring in faiss.py for load_local (#5440)
Browse files Browse the repository at this point in the history
# Fix for docstring in faiss.py vectorstore (load_local)

The doctring should reflect that load_local loads something FROM the
disk.
  • Loading branch information
luckyduck authored and vowelparrot committed May 31, 2023
1 parent 6ba8fcc commit add07a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/vectorstores/faiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit add07a3

Please sign in to comment.