Skip to content

Commit b77bc88

Browse files
Backport PR #753: Load persisted vector store by default (#756)
Co-authored-by: david qiu <[email protected]>
1 parent b7cb8d9 commit b77bc88

File tree

1 file changed

+4
-1
lines changed
  • packages/jupyter-ai/jupyter_ai/chat_handlers

1 file changed

+4
-1
lines changed

packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ def _load(self):
7676
return
7777

7878
self.index = FAISS.load_local(
79-
INDEX_SAVE_DIR, embeddings, index_name=self.index_name
79+
INDEX_SAVE_DIR,
80+
embeddings,
81+
index_name=self.index_name,
82+
allow_dangerous_deserialization=True,
8083
)
8184
self.load_metadata()
8285
except Exception as e:

0 commit comments

Comments
 (0)