Skip to content

Commit

Permalink
Backport PR jupyterlab#753: Load persisted vector store by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq authored and meeseeksmachine committed Apr 26, 2024
1 parent b7cb8d9 commit 9f1a0d7
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 9f1a0d7

Please sign in to comment.