minor fixes

frdel committed Sep 1, 2024 at 16:39 UTC 040a665ebb476998f94ee6bce3433b0ab244e73b
3 files changed +3 -2
initialize.py
+2 -1
@@ -26,8 +26,9 @@ def initialize():
26 chat_model = chat_llm,
27 utility_model = utility_llm,
28 embeddings_model = embedding_llm,
29 - prompts_subdir = "custom",
29 + # prompts_subdir = "",
30 # memory_subdir = "",
31 + # knowledge_subdir: str = ""
32 auto_memory_count = 0,
33 # auto_memory_skip = 2,
34 # rate_limit_seconds = 60,
memory/.gitkeep
python/helpers/vector_db.py
+1 -1
@@ -42,7 +42,7 @@ class VectorDB:
42
43
44 # if db folder exists and is not empty:
45 - if os.path.exists(self.db_dir) and len(os.listdir(self.db_dir)) > 0:
45 + if os.path.exists(self.db_dir) and files.exists(self.db_dir,"index.faiss"):
46 self.db = FAISS.load_local(
47 folder_path=self.db_dir,
48 embeddings=self.embedder,