mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-15 19:35:00 +00:00
minor fixes
This commit is contained in:
parent
a04ed7f0d7
commit
040a665ebb
3 changed files with 3 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ class VectorDB:
|
|||
|
||||
|
||||
# if db folder exists and is not empty:
|
||||
if os.path.exists(self.db_dir) and len(os.listdir(self.db_dir)) > 0:
|
||||
if os.path.exists(self.db_dir) and files.exists(self.db_dir,"index.faiss"):
|
||||
self.db = FAISS.load_local(
|
||||
folder_path=self.db_dir,
|
||||
embeddings=self.embedder,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue