Skip to content

Commit

Permalink
Backport PR #753: Load persisted vector store by default (#756)
Browse files Browse the repository at this point in the history
Co-authored-by: david qiu <[email protected]>
  • Loading branch information
meeseeksmachine and dlqqq authored Apr 26, 2024
1 parent b7cb8d9 commit b77bc88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def _load(self):
return

self.index = FAISS.load_local(
INDEX_SAVE_DIR, embeddings, index_name=self.index_name
INDEX_SAVE_DIR,
embeddings,
index_name=self.index_name,
allow_dangerous_deserialization=True,
)
self.load_metadata()
except Exception as e:
Expand Down

0 comments on commit b77bc88

Please sign in to comment.