Skip to content

Commit

Permalink
Load persisted vector store by default (#753)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
dlqqq and pre-commit-ci[bot] authored Apr 26, 2024
1 parent 07efe62 commit e6dab8e
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 e6dab8e

Please sign in to comment.