Skip to content

Commit e6dab8e

Browse files
Load persisted vector store by default (#753)
* load persisted vector stores by default, restoring previous behavior * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 07efe62 commit e6dab8e

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)