minor fixes

This commit is contained in:
frdel 2024-09-01 16:39:02 +02:00
parent a04ed7f0d7
commit 040a665ebb
3 changed files with 3 additions and 2 deletions

View file

@ -26,8 +26,9 @@ def initialize():
chat_model = chat_llm,
utility_model = utility_llm,
embeddings_model = embedding_llm,
prompts_subdir = "custom",
# prompts_subdir = "",
# memory_subdir = "",
# knowledge_subdir: str = ""
auto_memory_count = 0,
# auto_memory_skip = 2,
# rate_limit_seconds = 60,

0
memory/.gitkeep Normal file
View file

View file

@ -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,